ariz
-
Posts
6 -
Joined
-
Last visited
Content Type
Forums
Store
Crowdfunding
Applications
Events
Raffles
Community Map
Posts posted by ariz
-
-
In this case you can also try adding "sync" to mount options
Why didn't you said it before ?
I think it works pretty well too.
Regards.
-
I did some research and some tests...
I can confirm that f2fs is not stable, after mounting I had kernel oops.
My friend successfully using btrfs but on ssd drives (no nand). I think I'll try it in near future.
Also had some good news!
Tests... After system start script generate 300 files in one new directory filled with some text and then restart after short sleep and sync.
System was restarted over 50 times (over 15k files was generated).
1. After clean reboot all files where fine (no zero size files)
2. After unclean reboot (echo b >/proc/sysrq-trigger) there was different results depend on ext mount options
a. commit=600,data=writeback and journal_data_writeback enebled zero size files was ~8-10%
b. commit=5,data=ordered and journal_data_writeback disabled zero size files was ~3%
3. SOLUTION! after writing have to give echo 3 >/proc/sys/vm/drop_caches
Of course it take same time to save all data (depends on the amount of data to write) but on that system it was less then one second.
So, I my case I can use drop_caches after each write (I do not have them too many) or simply execute periodically.
-
Do clean reboots only? What's the purpose of unclean reboots if this causes troubles?
If your board has stability issues why not thinking about fixing the problems first instead of exploring workarounds?
Sometimes You do not know when you will have no power, sometimes its not depend on You. Especially if you give your device to someone who does not understand any electronic devices.
I give users cubie a20 and sometimes they don't have any UPS or another power backup.
-
And what FS should be used by default then? F2FS? Not an option for older kernels + no resize capabilities. BTRFS? Again, mainline is recommended for stability.
And another thing - NAND implementation on allwinner devices sometimes can cause troubles by itself, regardless of filesystem it's formatted to.
I know, its a big problem. I wonder it its possible to use jffs2 or ubifs?
-
Hi,
What do you do to avoid the problem with zero size files or zeroes at the end after unclean reboot on cubie or another device with nand flash on extx filesystem ?
Why do everyone use extx filesystems when its generate these problems ?
a little description ...
http://www.linux-mtd.infradead.org/faq/ubifs.html#L_empty_file
http://www.linux-mtd.infradead.org/faq/ubifs.html#L_end_hole
Thanks,
ariz
Cubieboard2 NAND vs TSD
in Allwinner sunxi
Posted
Hi
Do You know if there are any problems with deploying armbian on cubieboard 2 with TSD instead of NAND ? Do I have to change anything on the system side or is it transparent ?
Adam