maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   applications run in two processes? (https://talk.maemo.org/showthread.php?t=53007)

zimon 2010-05-18 19:53

applications run in two processes?
 
Why many running applications have two processes in my N900, or is this normal (two threads per app?) ?
A bug or a feature?

This is the situation about right after cold reboot:
Code:

Nokia-N900-42-11:~# ps
  PID USER      VSZ STAT COMMAND
    1 root      2364 S    /sbin/init
    2 root        0 SW  [kthreadd]
    3 root        0 SW  [ksoftirqd/0]
    4 root        0 SW  [events/0]
    5 root        0 SW  [khelper]
    6 root        0 SW  [kblockd/0]
    7 root        0 SW  [cqueue]
    8 root        0 SW  [twl4030-irqchip]
    9 root        0 SW  [twl4030-irq]
  10 root        0 SW  [omap2_mcspi]
  11 root        0 SW  [ksuspend_usbd]
  12 root        0 SW  [khubd]
  13 root        0 SW  [pdflush]
  14 root        0 SW  [pdflush]
  15 root        0 SW  [kswapd0]
  16 root        0 SW  [aio/0]
  26 root        0 SW  [ubi_bgt0d]
  27 root        0 SW  [kondemand/0]
  28 root        0 SW  [ubifs_bgt0_0]
  105 root      1664 S    /sbin/udevd --daemon
  211 root        0 SW  [vibra]
  413 root        0 SW  [bluetooth]
  422 root        0 SW  [nokia-av]
  424 root        0 SW  [kmmcd]
  457 root        0 SW  [wl12xx]
  471 root        0 SW  [mmcqd]
  522 root        0 SW  [mmcqd]
  686 root      2688 S    /sbin/klogd -n
  687 root    10308 S <  /sbin/dsme -p /usr/lib/dsme/libstartup.so
  691 root      3884 S    /usr/sbin/sshd -D
  692 root      1620 S    /sbin/syslogd -n
  719 root      3336 S    /usr/sbin/bme_RX-51
  729 messageb  3532 S <  /usr/bin/dbus-daemon --system --nofork
  737 root      3376 S    /usr/libexec/n900-fmrx-enabler --nodaemon
  743 root      3488 S    /usr/sbin/sysinfod --system
  746 root      4716 S    /usr/sbin/alsaped -p 4 -f /usr/share/policy/etc/curre
  750 root      3328 S    /usr/sbin/dbus-scripts --system
  756 root      2436 S    /usr/sbin/sscd -f
  762 haldaemo  4548 S    /usr/sbin/hald --verbose=no --daemon=no --use-syslog
  764 root      8012 S    /usr/sbin/ohmd --no-daemon
  765 root      5312 S <  /sbin/mce --force-syslog
  770 root      3288 S    /usr/sbin/csd -m -p call -p gprs -p info -p net -p si
  771 root    14972 S    /usr/sbin/omap3camd -d /dev/video0 -f /tmp/omap3camd0
  773 pulse    81920 S <  /usr/bin/pulseaudio --system --high-priority
  775 root      3412 S    /usr/sbin/sms-manager
  788 root      3576 S    /usr/sbin/wappushd -b
  792 root        0 SW  [bridge_work-que]
  796 root      3328 S    hald-runner
  806 root        0 SW  [sgx_perf]
  809 root      3996 S    /usr/lib/gconf2/gconfd-2
  836 root      1528 S    /usr/sbin/dsp-manager
  837 root        0 SW  [sgx_misr]
  844 haldaemo  3496 S    hald-addon-gpio: listening on /sys/devices/platform/g
  845 root    24752 S <  /usr/bin/Xorg -logfile /tmp/Xorg.0.log -logverbose 1
  866 root    14728 S    /usr/sbin/omap3camd -d /dev/video1
  883 root      3420 S    /usr/lib/hal/hald-addon-generic-backlight
  892 root      3424 S    hald-addon-input: Listening on /dev/input/event3 /dev
  904 haldaemo  3088 S    hald-addon-mmc: listening on /sys/class/mmc_host/mmc0
  933 root      3416 S    /usr/lib/hal/hald-addon-als
  934 root      3484 S    /usr/lib/hal/hald-addon-bme
  936 root      3436 S    /usr/lib/hal/hald-addon-cpufreq
  954 root      1888 S    /usr/sbin/cellmo-watch
 1019 root    21064 S    /usr/sbin/proximityd
 1038 root        0 SW<  [kjournald]
 1051 root      3344 S    /usr/bin/clockd
 1054 root    23796 S    /usr/bin/signond
 1056 user      6116 S    /usr/sbin/shortcutd
 1080 root      3400 S    /usr/sbin/bluetoothd -n
 1085 root      2088 S    /bin/sh /opt/autodisconnect/autodisconnect-bluetooth-
 1104 user      2832 S    dbus-launch --exit-with-session
 1115 user      3064 S <  /usr/bin/dbus-daemon --fork --print-pid 5 --print-add
 1134 user    40832 S    /usr/bin/maemo-xinput-sounds
 1163 user      3344 S    /usr/bin/profiled
 1164 root      1552 S    rfcomm -S -- listen -1 1 /usr/bin/pnatd {}
 1173 user      3324 S    /usr/bin/ohm-session-agent
 1199 root        0 SW  [krfcommd]
 1281 user      9420 S    python /opt/battery-eye/beyed.py
 1325 root      1976 S    /usr/bin/iphbd
 1332 user    24196 S    /usr/bin/maemo-launcher --send-app-died --booster gtk
 1337 user      3956 S    /usr/sbin/alarmd
 1340 user    12476 S    /usr/lib/sapwood/sapwood-server
 1342 user    28172 S    /usr/bin/systemui
 1380 user      6968 S    /usr/lib/gvfs/gvfsd
 1399 user      7464 S    /usr/lib/gvfs/gvfs-hal-volume-monitor
 1426 user      5524 S    /usr/bin/mission-control
 1442 user    23316 S <  /usr/bin/hildon-sv-notification-daemon
 1445 user      4648 S    /usr/lib/telepathy/telepathy-ring
 1514 user      3936 S    /usr/bin/hildon-status-menu
 1515 user    98.8m S    /usr/bin/hildon-status-menu                         
 1517 user      3936 S    /usr/bin/hildon-home
 1519 user    57156 S    /usr/bin/hildon-home                               
 1520 user      3936 S    /usr/bin/hildon-desktop
 1521 user    64184 S    /usr/bin/hildon-desktop                             
 1527 user      9320 S    /usr/libexec/gnome-vfs-daemon
 1579 user    17320 S    /usr/lib/evolution-data-server/e-addressbook-factory
 1595 root      3692 S    /usr/sbin/headphoned
 1598 root      4136 S    /usr/sbin/wlancond
 1602 root      7968 S    /usr/bin/location-proxy --no-detach
 1603 root    20808 S <  /usr/bin/tonegend -s cept -b 100 -r 20 -D module-stre
 1604 user      2084 S    sh -c /opt/BatteryGraph/bin/BatteryGraphd
 1611 root      2084 S    /bin/sh /usr/bin/run-standalone.sh /usr/bin/actionman
 1614 root      2624 S    /usr/bin/app-detect -p 1
 1623 user    22196 S    /opt/BatteryGraph/bin/BatteryGraphd
 1650 root      6736 S    /usr/bin/actionmanagerdaemon
 1655 root      4592 S    /usr/sbin/icd2 -l2
 1676 root      6572 S    /usr/sbin/hulda
 1684 user    13604 S    /usr/share/foreca-weather/control
 1692 root      6572 S    /usr/sbin/hulda
 1693 user      3936 S    /usr/bin/camera-ui
 1708 user      4620 S    /usr/bin/clipboard-manager
 1711 user    33484 S N  /usr/lib/tracker/trackerd
 1713 user      3936 S    /usr/bin/osso-connectivity-ui-conndlgs
 1715 user    55232 S    /usr/bin/camera-ui                                 
 1719 user    28324 S    /usr/bin/osso-connectivity-ui-conndlgs             
 1722 user      3936 S    /usr/bin/hildon-input-method
 1728 user    40912 S    /usr/sbin/browserd -d
 1729 user    25520 S    /usr/bin/hildon-input-method                       
 1745 user      1524 S    /usr/sbin/temp-reaper
 1767 user      4864 S    /usr/sbin/maesync_controller
 1776 user    10356 S    /usr/bin/mafw-dbus-wrapper mafw-upnp-source
 1778 user    16892 S    /usr/bin/syncd
 1780 user    26096 S    /usr/bin/osso-abook-home-applet                     
 1783 user      9076 S    /usr/bin/mafw-dbus-wrapper mafw-iradio-source
 1789 user      3204 S    /usr/lib/obex/obexd --nodaemon --opp --ftp --pcsuite
 1794 user    41820 S <  /usr/bin/mafw-dbus-wrapper mafw-gst-renderer
 1810 user    17936 S    /usr/bin/mafw-dbus-wrapper mafw-tracker-source
 1882 user    11352 S    python2.5 /opt/espeakcaller/espeakcaller-daemon.py
 1893 root      9192 S    /usr/sbin/ke-recv
 2065 user    14444 S    /usr/libexec/hildon-thumbnailerd
 2157 user      3936 S    /usr/bin/osso-addressbook
 2158 user    28756 S    /usr/bin/osso-addressbook                           
 2167 user      3936 S    /usr/bin/rtcom-call-ui
 2168 user    30880 S    /usr/bin/rtcom-call-ui                             
 2179 user      3936 S    /usr/bin/rtcom-messaging-ui
 2184 user    31828 S    /usr/bin/rtcom-messaging-ui                         
 2198 user    60744 S    /usr/sbin/browserd -s 2198 -n RTComMessagingServer
 2203 user      3936 S    /usr/bin/browser
 2204 user    30464 S    /usr/bin/browser                                   
 2212 user      3936 S    /usr/bin/mediaplayer
 2213 user    33464 S    /usr/bin/mediaplayer                               
 2223 user      3936 S    /usr/bin/image-viewer
 2224 user    34712 S    /usr/bin/image-viewer                               
 2230 user    82060 S    /usr/sbin/browserd -s 2230 -n browserui
 2268 user      3936 S    /usr/bin/Calendar
 2269 user    28628 S    /usr/bin/Calendar                                   
 2276 user      3936 S    /usr/bin/modest -t 30
 2277 user    64416 S    /usr/bin/modest                                     
 2288 user      3936 S    /usr/bin/worldclock
 2289 user    26636 S    /usr/bin/worldclock                                 
 2304 user    21432 S    /usr/bin/intellisyncd -u 29999 -a
 2409 user      3936 S    /usr/bin/controlpanel
 2410 user    27228 S    /usr/bin/controlpanel                               
 2513 haldaemo  3088 S    hald-addon-usb-cable: listening on /sys/devices/platf
 2589 root      3316 S    /usr/sbin/nm-bt-connect /org/bluez/1080/hci0/dev_00_1
 2661 root        0 SW  [kbnepd bnep0]
 2767 root      8248 S    /usr/bin/x11vnc -loop -rfbport 5900
 2810 root    10760 S    /usr/bin/x11vnc -loop -rfbport 5900
 3016 nobody    2132 S    /usr/sbin/dnsmasq -k -i lo -a 127.0.0.1 -z
 3048 user        0 Z    [get]
 3070 root      6444 S    sshd: root@pts/0   
 3074 root      2160 S    -sh
 3109 user    11240 S N  /usr/lib/tracker/tracker-indexer
 3131 root      1952 S    sleep 600
 3140 root      2160 R    ps


zimon 2010-05-19 15:24

Re: applications run in two processes?
 
Any hints what is the cause of this?
Code:

2157 user      3936 S    /usr/bin/osso-addressbook
 2158 user    28756 S    /usr/bin/osso-addressbook                           
 2167 user      3936 S    /usr/bin/rtcom-call-ui
 2168 user    30880 S    /usr/bin/rtcom-call-ui                             
 2179 user      3936 S    /usr/bin/rtcom-messaging-ui
 2184 user    31828 S    /usr/bin/rtcom-messaging-ui                         
 2203 user      3936 S    /usr/bin/browser
 2204 user    30464 S    /usr/bin/browser                                   
 2212 user      3936 S    /usr/bin/mediaplayer
 2213 user    33464 S    /usr/bin/mediaplayer                               
 2223 user      3936 S    /usr/bin/image-viewer
 2224 user    34712 S    /usr/bin/image-viewer                               
 2268 user      3936 S    /usr/bin/Calendar
 2269 user    28628 S    /usr/bin/Calendar
                                                                 
 2288 user      3936 S    /usr/bin/worldclock
 2289 user    26636 S    /usr/bin/worldclock                                 
 2409 user      3936 S    /usr/bin/controlpanel
 2410 user    27228 S    /usr/bin/controlpanel                               
 2767 root      8248 S    /usr/bin/x11vnc -loop -rfbport 5900
 2810 root    10760 S    /usr/bin/x11vnc -loop -rfbport 5900


manvik60 2010-05-19 16:12

Re: applications run in two processes?
 
If you see, all the double process has one common id 3936

ps -ef |grep 3936 will show all the application open right now.

ls -l ls -l /usr/bin/Calendar
lrwxrwxrwx 1 root root 13 Dec 17 12:34 /usr/bin/Calendar -> maemo-invoker

They all point to maemo-invoker. and this maemo-invoker is part of Maemo Launcher. Maemo Launcher is used to launch all application, 1 part being the invoker to start the given program and other being the launcher that initialize most of the data used by program.

zimon 2010-05-19 16:36

Re: applications run in two processes?
 
That 3936 is not ID, but amount of VirtualSiZe (memory) reserved.

But otherwise, your explanation about maemo-invoker makes sense.
So it is I guess normal.

javispedro 2010-05-19 16:43

Re: applications run in two processes?
 
Save for x11vnc, but I guess you where in the middle of a vnc session.

zimon 2010-05-19 17:00

Re: applications run in two processes?
 
Quote:

Originally Posted by javispedro (Post 666326)
Save for x11vnc, but I guess you where in the middle of a vnc session.

I wasn't. Haven't used vnc in a long time.
However PC-connectivity-manager has it enabled when using Bluetooth networking. Maybe it is a bug in PC-connectivity-manager that it has vnc-server started twice?

maemo.it 2010-12-17 16:23

Re: applications run in two processes?
 
1 Attachment(s)
same for me. and I never used vnc and I never installed pc-manager-connectivity. BTW I suppose it's not normal since my cpu percent almost never go down under 500Mhz and red belt mem is almost ever higher then first days after I reflashed (by conky).
and, last but not least, I never saw double processes in no one linux distro I ever used since many years!
Here my screenshot:


All times are GMT. The time now is 19:56.

vBulletin® Version 3.8.8