a simple dd test
dd if=/dev/zero bs=2048 count=10000 of=test.dat
with sync enabled yields 153 kB/s, while it was 21.5MB/s with sync disabled.
This is DM8148 based system running kernel 2.6.37. file system is ext4. data=journal,barrier=1
Many times the users will just pull the plug of system, sometimes the filesystem get corrupted, that's why I am using the sync option. The SSD is connected through SATA interface.
Is there any other way to minimize disk corruption and not reduce the speed to such a ridiculously slow level?
thanks!