Reply
Thread Tools
Estel's Avatar
Posts: 5,028 | Thanked: 8,613 times | Joined on Mar 2011
#1
During today's IRC talk, freemangordon expressed wish for proper comparison of thumb2 memory benefits. By a chance, I had non-thumb device at hand, and per vi_'s idea and request, here is thread for comparing memory usage and plotting conclusions.

For a start, here is my non-thumb output, took from device sitting idle for a few hours, without anything (except terminal, for executing measuring commands) opened:

Top:
Code:
Mem: 227932K used, 7328K free, 0K shrd, 1696K buff, 56404K cached
CPU:  3.0% usr  1.3% sys  0.0% nic 95.6% idle  0.0% io  0.0% irq  0.0% sirq
Load average: 0.29 0.19 0.09 1/208 27341
  PID  PPID USER     STAT   RSS %MEM %CPU COMMAND
27106  1603 user     S    39316 16.6  0.2 /usr/sbin/browserd -s 27106 -n browserui
 1247   864 root     R <  22012  9.3  1.2 /usr/bin/Xorg -logfile /tmp/Xorg.0.log -logverbose 1 -nolisten tcp -noreset -s 0 -core
 2285  1415 user     S    20540  8.7  0.0 /usr/bin/browser
26831  1603 user     S    13892  5.8  0.0 /usr/sbin/browserd -s 26831 -n RTComMessagingServer
 1499  1415 user     S    13476  5.7  0.0 /usr/bin/hildon-home
 1493  1415 user     S    13024  5.5  0.0 /usr/bin/hildon-status-menu
27068  1415 user     S    12152  5.1  0.0 /usr/bin/modest
27185  1415 user     S    12064  5.1  0.2 /usr/bin/osso-xterm
 1502  1415 user     S    11628  4.9  0.7 /usr/bin/hildon-desktop
26870  1415 user     S     8944  3.7  0.0 /usr/bin/rtcom-call-ui
26908  1415 user     S     8172  3.4  0.0 /usr/bin/osso-addressbook
26830  1415 user     S     7696  3.2  0.0 /usr/bin/rtcom-messaging-ui
 2288  1415 user     S     7692  3.2  0.0 /usr/bin/image-viewer
 1592  1415 user     S     6936  2.9  0.0 /usr/bin/osso-connectivity-ui-conndlgs
 1091     1 root     S     6892  2.9  0.0 /usr/sbin/ohmd --no-daemon
 1422   864 user     S     6484  2.7  0.0 /usr/bin/systemui
 2297  1415 user     S     5176  2.2  0.0 /usr/bin/Calendar
 1597   864 user     S     5112  2.1  0.0 /usr/bin/hildon-input-method
 1495   864 user     S     4928  2.0  0.0 /usr/bin/camera-ui
 1588     1 user     S N   2912  1.2  0.0 /usr/lib/tracker/trackerd
 1420   864 user     S     2836  1.2  0.0 /usr/lib/sapwood/sapwood-server
 1603   864 user     S     2720  1.1  0.0 /usr/sbin/browserd -d
 1411     1 user     S     2708  1.1  0.0 python2.5 daemonQNetMan.py
 1849  1415 user     S     2704  1.1  0.0 /usr/bin/osso-abook-home-applet
 1529     1 user     S     2624  1.1  0.0 /usr/lib/evolution-data-server/e-addressbook-factory
 1078     1 pulse    S <   2536  1.0  0.0 /usr/bin/pulseaudio --system --high-priority
 1682   864 user     S <   2504  1.0  0.0 /usr/bin/mafw-dbus-wrapper mafw-gst-renderer
cat /proc/swaps:
Code:
BloodRose:~# cat /proc/swaps
Filename				Type		Size	Used	Priority
/dev/mmcblk1p2                          partition	2242552	68456	-1
free:
Code:
BloodRose:~# free
             total         used         free       shared      buffers
Mem:        235260       213584        21676            0         3520
-/+ buffers:             210064        25196
Swap:      2242552        65136      2177416
/Estel
__________________
N900's aluminum backcover / body replacement
-
N900's HDMI-Out
-
Camera cover MOD
-
Measure battery's real capacity on-device
-
TrueCrypt 7.1 | ereswap | bnf
-
Hardware's mods research is costly. To support my work, please consider donating. Thank You!

Last edited by Estel; 2012-07-26 at 21:56.
 

The Following 8 Users Say Thank You to Estel For This Useful Post:
Posts: 958 | Thanked: 483 times | Joined on May 2010
#2
may also help if you describe a few more things
1. your uptime
2. your usage pattern. from the output, it looks like you use microb quite a bit and don't consume multimedia / audio content very much, no?

so a thumb vs nonthumb memory comparison would need to be with similar uptime and usage patterns to make sense?

just my 2 cents....
 
Posts: 2,102 | Thanked: 1,937 times | Joined on Sep 2008 @ Berlin, Germany
#3
Also i like the general idea to compare 'thumb2 vs. stock', i would suggest to describe the basics (like widgets on the desktops, number of desktops, kernel running, some kind of swap initialization....) to have some ground for the comparison.
 
Posts: 191 | Thanked: 415 times | Joined on Jan 2012
#4
I am interested in these results as well.

The test method is very important, though.

Maybe a good and simpler starting point would be a comparison between stock x thumb2 of post-reboot memory footprint of some flagship apps.

For instance, my browserd is reported by
Code:
ps aux|grep browserd
as using 42780. I have not rebooted and I am on standard CSSU testing, with no open windows (I have not checked if browserd is on thumb2, though).

Even better is to use
Code:
pmap
, as it breaks memory usage of the process and its shared libs.

So we could choose maybe 4 standard apps and post their pmap maps of thumb2 and standard, and that would give a good idea of the differences.

Last edited by caveman; 2012-07-27 at 17:34. Reason: use pmap to map memory
 

The Following User Says Thank You to caveman For This Useful Post:
Posts: 2,290 | Thanked: 4,133 times | Joined on Apr 2010 @ UK
#5
Thanks for the edit with the code box Estel!
__________________

Wiki Admin
sixwheeledbeast's wiki
Testing Squad Subscriber
- mcallerx - tenminutecore - FlopSwap - Qnotted - zzztop - Bander - Fight2048 -


Before posting or starting a thread please try this.
 

The Following User Says Thank You to sixwheeledbeast For This Useful Post:
Posts: 1,141 | Thanked: 781 times | Joined on Dec 2009 @ Magical Unicorn Land
#6
I think would be most useful if we're comparing the same configuration, one with thumb and one without.

If someone has a spare N900 and a few hours to kill, I think a good test would be:

- complete reflash including eMMC
- disable HAM auto-updates so it does not run apt worker in background while we're trying to take readings
- install CSSU (regular)
- reboot and take memory readings after X minutes uptime (to allow tracker to settle)
- install CSSU-thumb
- reboot and take memory readings after same X minutes uptime

This way we are comparing same to same.

It just so happens I have a spare N900 and maybe I'll try this if I find a few hours and someone else does not beat me to it.
 

The Following 6 Users Say Thank You to stlpaul For This Useful Post:
Estel's Avatar
Posts: 5,028 | Thanked: 8,613 times | Joined on Mar 2011
#7
Another approach is to compare memory usage of single processes, as this is what thumb2 is about, yep?

We don't care how much of it is swapped or how many widget's one have in desktop - we have list of thumb2 compiled programs available in thumbs repos, and what interest us, is their memory footprint compared to stock (non-thumb) equivalents.

At least, this sound sane for me, or we will drown into hell of non-comparable results. I know that amount of things I've included in data provided via post 1 exceed it - I did it on request, and was kinda sleepy

So, unless someone have points I've missed, proper scientific approach would be to take list of thumb2 compiled programs (from thumb2 repo) and compare memory used (absolute numbers), when they're in use, with non-thumb2 ones. This way, no need for 2 N900's per test's contributor.

/Estel
__________________
N900's aluminum backcover / body replacement
-
N900's HDMI-Out
-
Camera cover MOD
-
Measure battery's real capacity on-device
-
TrueCrypt 7.1 | ereswap | bnf
-
Hardware's mods research is costly. To support my work, please consider donating. Thank You!
 

The Following User Says Thank You to Estel For This Useful Post:
dr_frost_dk's Avatar
Posts: 1,503 | Thanked: 2,688 times | Joined on Oct 2010 @ Denmark
#8
Posting here, sorry i didn't see this thread but have limited time and have had for some time, else i would contribute more.
Also updating the numbers now that i have installed some of the last programs, but still less then before since i did not use some of them anyway....

Normal N900 that is now taking a rest:
Running Power50
RAM: 147MB
SWAP: 107MB
Total: 254MB

Other N900 that is now primary:
Running cssu3 Thumb 14
RAM: 124MB
SWAP: 81MB
Total: 205MB

But all in all i have only install the basics and contacts, g.talk and skype running.
So memory usage is subject to change, will properly post again in a month or something
 

The Following 7 Users Say Thank You to dr_frost_dk For This Useful Post:
woody14619's Avatar
Posts: 1,455 | Thanked: 3,309 times | Joined on Dec 2009 @ Rochester, NY
#9
Originally Posted by stlpaul View Post
I think would be most useful if we're comparing the same configuration, one with thumb and one without.
Another option would be to use something like backupmenu to clone an existing unit without -thumb, and then ONLY update one of them. That would let you (after the update and a couple reboots for safe measure) do a true apples to apples comparison, including not only the kernel, but any updated executable that have been compiled for thumb that may be part of the base install and running. (Like browser and the like?)

That would, IMHO,be a much cleaner and "fair" comparison, and wouldn't require one to lose the active setup on their day-to-day device.
__________________
Maemo Council Member: May 2012 - November 2012
Hildon Foundation founding member.
Hildon Foundation Board of Directors: March 2013 - Jan 15, 2014
 

The Following 4 Users Say Thank You to woody14619 For This Useful Post:
dr_frost_dk's Avatar
Posts: 1,503 | Thanked: 2,688 times | Joined on Oct 2010 @ Denmark
#10
Originally Posted by woody14619 View Post
Another option would be to use something like backupmenu to clone an existing unit without -thumb, and then ONLY update one of them. That would let you (after the update and a couple reboots for safe measure) do a true apples to apples comparison, including not only the kernel, but any updated executable that have been compiled for thumb that may be part of the base install and running. (Like browser and the like?)

That would, IMHO,be a much cleaner and "fair" comparison, and wouldn't require one to lose the active setup on their day-to-day device.
I am thinking about doing this, just need to learn how to use backupmenu.....


On another note, my now primary N900 with thumb holds power like crazy, getting close to 48hours and still over 50% left (59%) this is of course with my dual scud, but other N900 would be just about dead now, even if it has only been lightly used.

Last edited by dr_frost_dk; 2012-08-07 at 16:07.
 
Reply


 
Forum Jump


All times are GMT. The time now is 02:21.