maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   Background applications (https://talk.maemo.org/showthread.php?t=91691)

marmistrz 2013-10-29 16:04

Background applications
 
Hi,

I noticed a lot of background applications running in the background. camera-ui or rtcom-call-ui - it's obvious, as you need them launched quickly. But there are many others, like modest, image-viewer, Calendar. Which of them can be safely disabled for background (without losing functionality, only losing speed) and which are essential?

Full list of bg stuff on the go (sorted by memory used):
Code:

CPU:  5.1% usr  3.9% sys  0.0% nic 90.8% idle  0.0% io  0.0% irq  0.0% sirq
Load average: 0.00 0.20 0.38 1/188 1969
  PID  PPID USER    STAT  RSS %MEM %CPU COMMAND
 1900  1284 user    S    19684  8.3  0.0 /usr/bin/modest
 1836  1612 user    S    16588  7.0  0.0 /usr/sbin/browserd -s 1836 -n RTComMessagingServer
 1872  1284 user    S    14548  6.1  0.0 /usr/bin/Calendar
 1865  1284 user    S    13576  5.7  0.0 /usr/bin/image-viewer
 1823  1284 user    S    13296  5.6  0.0 /usr/bin/osso-addressbook
 1797  1284 user    S    12756  5.4  0.3 /usr/bin/osso-xterm
 1076  729 root    S <  12416  5.2  2.9 /usr/bin/Xorg -logfile /tmp/Xorg.0.log -logverbose 1 -nolisten tcp -noreset -s 0 -core
 1382  1284 user    S    12416  5.2  0.1 /usr/bin/hildon-status-menu
 1826  1284 user    S    11392  4.8  0.0 /usr/bin/rtcom-call-ui
 1830  1284 user    S    11384  4.8  0.0 /usr/bin/rtcom-messaging-ui
 1389  1284 user    S    11204  4.7  3.8 /usr/bin/hildon-desktop
 1866  1612 user    S    10660  4.5  0.0 /usr/sbin/browserd -s 1866 -n browserui
 1862  1284 user    S    10468  4.4  0.0 /usr/bin/browser
 1301  729 user    S    9724  4.1  0.0 /usr/bin/systemui
 1384  1284 user    S    7160  3.0  0.0 /usr/bin/camera-ui
 1386  1284 user    S    6860  2.9  0.1 /usr/bin/hildon-home
  998    1 root    S    6848  2.9  0.0 /usr/sbin/ohmd --no-daemon
 1571    1 user    S N  4804  2.0  0.0 /usr/lib/tracker/trackerd
 1422    1 user    S    4564  1.9  0.0 /usr/lib/evolution-data-server/e-addressbook-factory
 1594  1284 user    S    4072  1.7  0.0 /usr/bin/osso-connectivity-ui-conndlgs
 1540  1284 user    S    3816  1.6  0.0 /usr/bin/cl-launcher
 1612  729 user    S    3660  1.5  0.0 /usr/sbin/browserd -d
 1589  729 user    S    3648  1.5  0.1 /usr/bin/hildon-input-method

Thanks

vi_ 2013-10-29 16:33

Re: Background applications
 
If you look at the output you will see the stat column states the processes are in 'S' mode. This means they are asleep. They are using no processing power whatsoever.

To stop certain programs autostarting/refusing to die you need to change the 'start with hildon' option in the programs'.desktop' file and possibly stop it being started by that watchdog program that I cannot remember the name of. (the one that reboots the n900 if xorg has crashed >5 times in a row)

marmistrz 2013-10-29 16:41

Re: Background applications
 
Quote:

Originally Posted by vi_ (Post 1383192)
If you look at the output you will see the stat column states the processes are in 'S' mode. This means they are asleep. They are using no processing power whatsoever.

To stop certain programs autostarting/refusing to die you need to change the 'start with hildon' option in the programs'.desktop' file and possibly stop it being started by that watchdog program that I cannot remember the name of. (the one that reboots the n900 if xorg has crashed >5 times in a row)

They don't use CPU, but eat RAM, don't they?

vi_ 2013-10-29 16:46

Re: Background applications
 
They do not use much ram at all. They get swapped out when the thread is sleeping. If you look with htop, you can see how much actual 'real' ram they are using.

I sem to recall I removed image-viewer and possibly something else from the startup list. Image viewer takes a little longer to load but that does not bother me.

marmistrz 2013-10-29 17:36

Re: Background applications
 
Quote:

Originally Posted by vi_ (Post 1383194)
They do not use much ram at all. They get swapped out when the thread is sleeping. If you look with htop, you can see how much actual 'real' ram they are using.

They seem to do use real RAM. According to htop: image-viewer (RES): 8968, modest: 11956.

So roughly 9/12 MB real RAM used. (RES is in KB according to the IBM website: https://www.ibm.com/developerworks/c...top190?lang=en )

bozoid 2013-10-30 02:46

Re: Background applications
 
main reason to get rid of them (if you are really gonna be adamant about it) is to reduce swapping when you load various other apps, or even when a new call or SMS comes in. but aim for the big ones. don't bother very much with the small ones.

i didn't invest time in those processes since there's no documentation on what effects they will have & they seem to affect quite a few things here & there (ie: gets auto restarted, causes some apps to start up slowly, or causes reboots by watchdog). they're not extremely big too, & are really only big after combined.

most of the time, most of them only live in the swap area if not invoked, would not take up any battery & physical memory; just swap memory on emmc storage.

what i did was instead, to disable all daemons that i don't use often (just like what my buddy here did); ie: battery graph, removing many plugins & widgets, disabling any http or sshd servers i may have installed. i typically only use apps that load upon use & completely terminate without background processes upon manual termination.

kh

reinob 2013-10-30 08:34

Re: Background applications
 
@marmistrz

A number of those applications running in the background are started by hildon-desktop if their .desktop file has "X-Maemo-Prestarted=always".

Have a look in /usr/share/applications/hildon and do "grep Prestarted= *.desktop" to have a look.

With "=always" I have { calendar, osso-addressbook, rtcom-call-ui, rtcom-messaging-ui }
With "=never" I have { browser, image-viewer, modest, nokia-maps, worldclock }


All times are GMT. The time now is 09:28.

vBulletin® Version 3.8.8