Author Topic: Processes Started "high Priority"  (Read 1983 times)

daniel3000

  • Hero Member
  • *****
  • Posts: 1003
    • View Profile
    • http://
Processes Started "high Priority"
« on: April 17, 2007, 04:52:17 am »
Hi guys.

I have observed that sometimes the overall system performance of pdaXrom 1.1.0beta3 is not optimal.
For example when pressing the "Menu" button, it takes some seconds until the menu comes up.

Now I know why this is:

On some boots, processes are started "high-priority" -- according to PS output description the "<" which I then see in the "ps" output means that these processes are "not nice" to other users.

In most cases it is enough to reboot and have the normal priority for these processes again.

Any idea why on some bootups these processes are started high-priority and how to avoid that?

Below is the output of "ps ax" on my Zaurus. once with the high-prio processes which cause the lower performance (with the "<" in the ps output) and once without that, taken after a reboot.
It seems that in the bad case everything which runs under or after "X" and including "X" is started high-prio, while in the good case only "X" is started with high priority. But why??

Thanks

daniel

ps output with high-prio tasks:
Code: [Select]
 PID  Uid     VmSize Stat Command
    1 root         76 S   ini  
    2 root            SW  [keventd]
    3 root            RWN [kapm-idled]
    4 root            SW  [off_thread]
    5 root            SW  [battchrgon]
    6 root            SW  [battchrgoff]
    7 root            SW  [sharpsl_bat]
    8 root            SWN [ksoftirqd_CPU0]
    9 root            SW  [kswapd]
   10 root            SW  [bdflush]
   11 root            SW  [kupdated]
   12 root            SW  [rcscan]
   13 root            SW  [rcenirq]
   14 root            SW  [buzzer]
   18 root            SW  [snd_hp]
   20 root            SW  [mtdblockd]
  394 root            SWN [jffs2_gcd_mtd2]
  428 root        220 S   /sbin/syslogd -S
  456 root            SW  [mmcblockd]
  459 root            SW  [sdcardmgr]
  494 root        156 S   /sbin/cardmgr
  532 root          4 S   /usr/sbin/sshd
  539 root        252 S   /usr/sbin/atd /var/spool/at
  553 root            DW  [usbh-moni]
  906 root          4 S   hcid: processing events
  912 root          4 S   /usr/sbin/sdpd
  916 root            SW  [krfcommd]
  934 root            SW< [loop0]
  940 root            SW< [loop1]
  987 root          4 S   /usr/sbin/irattach /dev/ttyS1
  989 root          4 S   -bash
 1094 root          4 S   /bin/sh /usr/X11R6/bin/startx
 1107 root          4 S   xinit /home/root/.xinitrc -- -screen 480x6
 1108 root       4612 R < X :0 -screen 480x640@270 -kb -fp /usr/X11R
 1111 root          4 S < /bin/sh /home/root/.xinitrc
 1123 root        180 S < /usr/bin/gconfd-2 15
 1128 root       2448 S < openbox
 1136 root        144 S < matchbox-panel --no-menu --no-flip --size
 1185 root        628 S < /usr/apps/ROX-Filer/ROX-Filer --pinboard=M
 1201 root        408 S < mb-applet-clock -w
 1202 root        352 S < mb-applet-menu-launcher
 1203 root       1868 S < mb-applet-tasks
 1206 root        500 S < mb-applet-cards
 1207 root        944 S < mb-applet-blanker
 1208 root        476 S < mb-applet-volume
 1209 root        228 S < mb-applet-launcher --desktop /usr/share/ap
 1210 root        300 S < mb-applet-battery
 1211 root        216 S < mb-applet-wireless
 1384 root       1056 S < kopi
 1387 root       4008 S < kapi
 3165 root       1032 S < mrxvt
 3166 root        868 S < bash
 3167 root        892 S < bash
 3169 root          4 S < bash
 3226 root          4 S < smbd -D
29274 root        944 S < sylpheed
25166 root       2332 S < /opt/kdepim-2.2.7/pwmpi
25282 root       1528 S < [smbd]
25968 root        580 R < ps -ax

ps output without the high-prio tasks:
Code: [Select]
 PID  Uid     VmSize Stat Command
    1 root        528 S   ini  
    2 root            SW  [keventd]
    3 root            RWN [kapm-idled]
    4 root            SW  [off_thread]
    5 root            SW  [battchrgon]
    6 root            SW  [battchrgoff]
    7 root            SW  [sharpsl_bat]
    8 root            RWN [ksoftirqd_CPU0]
    9 root            SW  [kswapd]
   10 root            SW  [bdflush]
   11 root            SW  [kupdated]
   12 root            SW  [rcscan]
   13 root            SW  [rcenirq]
   14 root            SW  [buzzer]
   18 root            SW  [snd_hp]
   20 root            SW  [mtdblockd]
  394 root            SWN [jffs2_gcd_mtd2]
  428 root        612 S   /sbin/syslogd -S
  456 root            SW  [mmcblockd]
  459 root            SW  [sdcardmgr]
  494 root        756 S   /sbin/cardmgr
  532 root       1352 S   /usr/sbin/sshd
  539 root        824 S   /usr/sbin/atd /var/spool/at
  563 root            DW  [usbh-moni]
  879 root        552 S   hcid: processing events
  885 root        548 S   /usr/sbin/sdpd
  889 root            SW  [krfcommd]
  895 root       1444 S   smbd -D
  917 root            SW< [loop0]
  923 root            SW< [loop1]
  969 root        476 S   /usr/sbin/irattach /dev/ttyS1
  974 root       1608 S   -bash
 1087 root       1380 S   /bin/sh /usr/X11R6/bin/startx
 1100 root        644 S   xinit /home/root/.xinitrc -- -screen 480x6
 1101 root       8276 S < X :0 -screen 480x640@270 -kb -fp /usr/X11R
 1104 root       1368 S   /bin/sh /home/root/.xinitrc
 1116 root       1836 S   /usr/bin/gconfd-2 15
 1145 root       3992 S   openbox
 1161 root       2112 S   matchbox-panel --no-menu --no-flip --size
 1211 root       5960 S   /usr/apps/ROX-Filer/ROX-Filer --pinboard=M
 1212 root       1884 S   mb-applet-clock -w
 1213 root       2192 S   mb-applet-menu-launcher
 1214 root       4232 S   mb-applet-tasks
 1217 root       3960 S   mb-applet-cards
 1218 root       4224 S   mb-applet-blanker
 1220 root       3896 S   mb-applet-volume
 1221 root       1480 S   mb-applet-launcher --desktop /usr/share/ap
 1222 root       1368 S   mb-applet-battery
 1223 root       1548 S   mb-applet-wireless
 1225 root       3376 S   mrxvt
 1226 root       1772 S   bash
 1227 root       1724 S   bash
 1228 root       1724 S   bash
 1259 root        580 R   ps ax
« Last Edit: April 17, 2007, 04:56:10 am by daniel3000 »
SL-C3200 with weeXpc, based on pdaXrom 1.1.0beta3
HP 200LX with MS-DOS 5.0