![]() |
Re: N900, ohmd, syspart, VM & swap tweaks
Has anyone ever tried the deadline scheduler and:
Code:
echo 1 > /sys/block/mmcblkX/queue/iosched/fifo_batch |
Re: N900, ohmd, syspart, VM & swap tweaks
I'd also like to try the anticipatory scheduler, a lot of the Android guys have been switching over to it...
|
Re: N900, ohmd, syspart, VM & swap tweaks
I considered anticipatory, but it was taken out of the kernel altogether as of 2.6.33 and supposedly CFQ replaced it after 2.6.18. Also I'm never sure whether heuristics are a good idea or not.. I suppose it wouldn't hurt to add it to the config as a module, though.
|
Re: N900, ohmd, syspart, VM & swap tweaks
Ok, I've built the latest BFS from git tree, with both deadline and anticipatory enabled as modules within the config. Everything runs as smoothly as before, with no added overhead. To enable either one of them, you have to echo deadline or anticipatory to /sys/block/mmcblk0/queue/scheduler - this seems to automagically insert the corresponding module (probably best to rmmod if you then change back to noop or cfq at a later date, though, as they stay loaded). I did find a thread regarding anticipatory on Android and found this snippet to be quite interesting:
Quote:
|
Re: N900, ohmd, syspart, VM & swap tweaks
Quote:
|
Re: N900, ohmd, syspart, VM & swap tweaks
Quote:
/j |
Re: N900, ohmd, syspart, VM & swap tweaks
Quote:
|
Re: N900, ohmd, syspart, VM & swap tweaks
Hi all,
I've also been trying to tweak /usr/share/policy/etc/current/syspart.conf One thing I noticed though is, sometimes the values are being applied for a little while, and then it gets overridden again by ohmd. For example, I've tried changing the desktop cpu-shares to say 4096, then i run "stop ohmd" and "start ohmd". For a short time, I can see the value 4096 is being set by cat-ing the corresponding value in /syspart/desktop/cpu.shares But then after a while, ohmd seems to write back the original value 6144 to it. Any ideas? Thanks. |
Re: N900, ohmd, syspart, VM & swap tweaks
Now I don't remember exactly - I worked on that a long ago - but there is a policy file written and compiled in Prolog (?) somewhere read by ohmd - and it's responsible for that.
Long story short, what I remember is that I resigned after a lot of searching. Now I am really short on time for next month, but if you are interested in looking at that I can look for my knowledge and send everything to you - some material found on wikis, irc logs and the like |
Re: N900, ohmd, syspart, VM & swap tweaks
Quote:
Thanks. |
All times are GMT. The time now is 05:26. |
vBulletin® Version 3.8.8