View Single Post
Posts: 230 | Thanked: 302 times | Joined on Oct 2009 @ Helsinki, Suomi (Finland)
#13
Originally Posted by tortoisedoc View Post
Hah.
Funny, I posted somehow related thread on memory consumption a way back (don't have the time to look it up).
The reply I got was "linux uses all the available memory by default".

I also noticed phone lagging VERY much once RAM is 100% full (and swap is necessary). This makes sense as flash is slow(seems to be especially slow on N9 but that is my own opinion).
N9 reserves a portion of RAM for swap (ramzswap) so no flash storage is used by swap as default. If I understand correctly the system compresses pages and then stores them into ramdisk. I don't know what is the performance hit of (de)compressing pages, but it's probably much faster than using flash based swap.

Bit off-topic, but the performance of N9's flash storage seems to vary quite wildly from N9 to another, Maybe Nokia aquired chips from several sources.

For example I have two N9's which give very different results using hdparm.:

Rev. 1603 Serial: 5093798
Code:
~ # for i in {1 2 3}; do hdparm -tT /dev/mmcblk0 2>/dev/null; done

/dev/mmcblk0:
Timing buffer-cache reads:   280 MB in 0.51 seconds = 561679 kB/s
Timing buffered disk reads:   94 MB in 3.00 seconds = 32071 kB/s

/dev/mmcblk0:
Timing buffer-cache reads:   280 MB in 0.50 seconds = 562285 kB/s
Timing buffered disk reads:   95 MB in 3.02 seconds = 32176 kB/s

/dev/mmcblk0:
Timing buffer-cache reads:   302 MB in 0.51 seconds = 604549 kB/s
Timing buffered disk reads:   95 MB in 3.02 seconds = 32137 kB/s
Rev. 1603 Serial: 2354235
Code:
~ # for i in {1 2 3}; do hdparm -tT /dev/mmcblk0 2>/dev/null; done

/dev/mmcblk0:
Timing buffer-cache reads:   138 MB in 0.51 seconds = 276993 kB/s
Timing buffered disk reads:   80 MB in 3.00 seconds = 27297 kB/s

/dev/mmcblk0:
Timing buffer-cache reads:   144 MB in 0.51 seconds = 288364 kB/s
Timing buffered disk reads:   79 MB in 3.02 seconds = 26757 kB/s

/dev/mmcblk0:
Timing buffer-cache reads:   152 MB in 0.51 seconds = 305113 kB/s
Timing buffered disk reads:   81 MB in 3.01 seconds = 27466 kB/s
Even with those differences both devices are equally smooth in normal use. Maybe loading of uncached apps takes slightly longer on serial 2354235, but I wouldn't notice really. Both devices are pretty much lag free unless they are downloading feeds and I'm navigating between views or scrolling the apps/events view at the same time.
 

The Following User Says Thank You to ladoga For This Useful Post: