View Single Post
Posts: 1,746 | Thanked: 2,100 times | Joined on Sep 2009
#198
Originally Posted by shadowjk View Post
Well whatever thing is displaying CPU use to you is stupid and counting the iowait figure as cpu use. Iowait is cpu being idle. It's different from regular idle in that there would be processes wanting to run, but data they need is not in ram.
I should look and see where it's deriving it from. I'm just taking the simple CPU meter from the repos as a reference, since the system is usually too bogged down to get to top in time.

While you're in the browser and the browser eats more and more ram, everything you aren't using gets dropped from memory on a least recently used basis. When the browser then has things it needs on emmc and stalls waiting for it, and you try switch to something else, it's not either in ram anymore.
Right, and as you mentioned later nothing is locked in RAM to protect it from getting swapped out. I'm aware of why it's not responding to taps, it just strikes me as sloppy that such things could be allowed to get pushed out of RAM.

On N810 I was toying with the idea of creating a small daemon with its memory locked (so it can't be dropped from ram) to monitor memory hogs and pause big users of memory if the system slowed down, letting other smaller tasks complete first. It'd give up attempts at multitasking under heavy memory and IO pressure and instead execute everything as batch mode. Unfortunately my N900 with doubly sized RAM compared to N810 arrived before I got to it..
I suppose using something like that to profile Maemo, and lock certain pages in RAM would be useful. The telephony stack and hildon-desktop remaining interactive would be better than allowing the whole thing to come to a screeching halt.