http://kernelslacker.livejournal.com/132087.html
Dave Jones said:
] Next, the default filesystem will be ext3. You really don't want this. Given the journal is in a fixed location on disk, scribbling to it every time a file gets written is a great way to wear out the flash. Go with ext2. (Given that you've only got a few GB of flash anyway, a fsck doesn't take that long should you need to). Additionally, not having to write to the journal means that you're doing less IO, which is obviously a win when it's on such slow media.
[/LIST]
Heh... The story's considerably different. If you were talking traditional flash, this would be the case. However, you're talking an SSD on things like an eeePC. They do wear leveling, which changes where the writes go to the flash at a given time- so pushing out the journal doesn't put it in the same place like it's described. For an SD, it's making it do more work, which is actually ill advised. EXT2 is probably a better idea if you're not formatting it FAT32 for compatibility with everything out there. Now, the NAND will not be able to use anything other than JFFS2, which does journalling, wear-leveling, etc. It's still not a nifty idea to do a raftload of writes to it as it'll shorten the life from 5-10 years to something like 2-ish. Having said this we turn to...
QUOTE
Dave Jones said:
] This should go without saying - no swap. Not only for the flash wear problem in the previous bullet, but also, because it's slow as all hell. If you find you run out of ram and get stuff oom-killed in this setup, well, you probably need to add more ram, or consider a real laptop.
[/LIST]
Not unsound thinking for the NAND. However, putting a swapfile on either an EXT2 or a FAT32 filesystem on your SD/SDHC isn't half bad an idea and will allow the 256Mb to do more for you. Keep in mind, 3D, when it comes available will take from that for textures, etc. so you might need 256Mb of an SD card set aside as swapfile. It won't wear out the flash any faster than one would expect (MLC SSD's have roughly a 10Gb per day throughput for 10+ years before the drive's "done"...SLC SSD's go even further. Ditto the SDHC's...) so it's not a big deal, esp. if you properly back things up every once in a while like you're supposed to anyhow.
QUOTE
Dave Jones said:
] After installing, change the fstab so that everything gets mounted with noatime. Writes to the disk are just painful, so minimising them is the path to success here. It's doubtful that you'll be running anything on an eee that would actually care about atimes anyway.
[/LIST]
Most things won't get broken here- it's used to help things like make, etc. better keep track of when something was accessed. Killing that update to the filesystem will speed things up and won't mess up even makes in many cases if you're crazy like I am and do development things on devices like a Pandora.
QUOTE
mbyte said:
use the "noop" IO/Scheduler with nilfs:
echo noop > /sys/block/sdX/queue/scheduler
Leave the schedulers ALONE. Unless you precisely know what you're doing with the innards of the kernel, you can seriously break other things.
iain.dalton said:
True, but it would be nice to ship it with intelligent defaults.
Indeed. It's the plan.