View Single Post
Posts: 2,152 | Thanked: 1,490 times | Joined on Jan 2006 @ Czech Republic
#40
Originally Posted by eber42 View Post
I've also used OS from original root flash sometime, and i agree it was a bit faster (main difference is large applications start time and boot time)
Hmm, even boot times? That's interesting. I haven't noticed anything like that. Maybe there is some difference in setup? here are my details:

- I'm using ext2 (with noatime) for N8x0. It is pretty stable so ext3 is not needed, For 770 I was using ext3 since it reboots more often. ext2 block size is default (4096), I've experimented with smaller block (to save space with small files) but it was slower. Most probably the bigger block the better (default FAT filesystem on SD cards uses 32kilobytes) but maybe it is not so critical, linux kernel should merge I/O requests for adjacent blocks.

- I'm also using kernel with high-speed (48MHz) sd/mmc mode (on N8x0 it speeds up mmc raw read speed from ~6MB/s to ~10MB/s).

- I have metalayer-crawler disabled (it does a lot of card scanning which takes many minutes after boot or card change, bugzilla link mentioned in previous post).

- I have also lowered priority of mmcqd kernel threads from -5(?) to 0 since with default raised priority it sometimes causes audio skips in playback and may block other threads. 0 was default in kernels before 2.6.18, I never understood why they raised it (bug or feature?). maybe this is the reason why your device freezes when swapping? mmcqd eats a lot of cpu when writing to the card. This can be changed by running renice 0 `pidof mmcqd` as root (in some startup script and when cards are inserted (/usr/sbin/osso-mmc-mount.sh).

- it should also help to change cpu frequency setting from ondemand to performance or raise the minimum frequency (to 330 or even 400) since there is a kernel bug/feature - lower cpu clock lowers also mmc bus clock which slows sd/mmc I/O down when cpu is idle (can happen quite often when CPU waits for data). It can make battery life shorter when cpu is used a lot, it shouldn't make much difference when cpu is idle.

Originally Posted by eber42 View Post
I'll try to put my swap on the small and fast flash memory. Anyone tried this ?
you mean the internal 256MB flash? Well it is not a block device so there is no simple and effective way to swap to it. It would need some FTL that will emulate block device over it.

As for ramzez, thanks for link. Will try.
__________________
Newbies click here before posting. Thanks.

If you really need to PM me with troubleshooting question please consider posting it to the forum instead. It is OK to PM me a link to such post then. Thank you.

Last edited by fanoush; 2009-10-02 at 10:30.
 

The Following 2 Users Say Thank You to fanoush For This Useful Post: