[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Clearing SWAP



Mike Bird wrote:
On Thu May 1 2008 13:43:20 andy wrote:
  
Of 2863MB of SWAP, some 1881MB are being used. This is a capture of top:
    
  
15055 andy      20   0 34520  14m 4896 R   98  1.5   0:01.60 kbuildsycoca
14950 andy      20   0  171m  88m  27m S   55  9.0  15:52.20 iceape-bin
    
<snipped 28 processes>

1) You almost certainly have a lot more than 30 processes running.  Try
   "ps vax" to see what is using all that virtual memory.

2) You almost certainly have a problem with kbuildsycoca.  It's using 98%
   of the mill time of one of your cores.  A reboot may fix the problem.

3) You may also have a problem with iceape-bin, as it's using 55% of the
   mill time of one of your cores.

--Mike Bird


  
Mike

Output of ps vax, as suggested:

$ ps vax
  PID TTY      STAT   TIME  MAJFL   TRS   DRS   RSS %MEM COMMAND
    1 ?        Ss     0:05     30    27  2004   548  0.0 init [2]
    2 ?        S<     0:00      0     0     0     0  0.0 [kthreadd]
    3 ?        S<     0:00      0     0     0     0  0.0 [migration/0]
    4 ?        S<     0:35      0     0     0     0  0.0 [ksoftirqd/0]
    5 ?        S<     0:00      0     0     0     0  0.0 [watchdog/0]
    6 ?        S<     0:00      0     0     0     0  0.0 [migration/1]
    7 ?        S<     0:04      0     0     0     0  0.0 [ksoftirqd/1]
    8 ?        S<     0:00      0     0     0     0  0.0 [watchdog/1]
    9 ?        S<     0:12      0     0     0     0  0.0 [events/0]
   10 ?        S<     0:20      0     0     0     0  0.0 [events/1]
   11 ?        S<     0:00      0     0     0     0  0.0 [khelper]
   43 ?        S<     0:09      0     0     0     0  0.0 [kblockd/0]
   44 ?        S<     0:19      0     0     0     0  0.0 [kblockd/1]
   47 ?        S<     0:00      0     0     0     0  0.0 [kacpid]
   48 ?        S<     0:00      0     0     0     0  0.0 [kacpi_notify]
  121 ?        S<     0:00      0     0     0     0  0.0 [kseriod]
  161 ?        S<     0:34      0     0     0     0  0.0 [kswapd0]
  162 ?        S<     0:00      0     0     0     0  0.0 [aio/0]
  163 ?        S<     0:00      0     0     0     0  0.0 [aio/1]
  608 ?        S<     0:00      0     0     0     0  0.0 [ksuspend_usbd]
  610 ?        S<     0:00      0     0     0     0  0.0 [khubd]
  787 ?        S<     0:00      0     0     0     0  0.0 [scsi_eh_0]
  788 ?        S<     0:18      0     0     0     0  0.0 [usb-storage]
  790 ?        S<     0:00      0     0     0     0  0.0 [scsi_eh_1]
  791 ?        S<     0:01      0     0     0     0  0.0 [usb-storage]
  816 ?        S<     0:00      0     0     0     0  0.0 [ata/0]
  817 ?        S<     0:00      0     0     0     0  0.0 [ata/1]
  818 ?        S<     0:00      0     0     0     0  0.0 [ata_aux]
  827 ?        S<     0:00      0     0     0     0  0.0 [scsi_eh_2]
  828 ?        S<     0:00      0     0     0     0  0.0 [scsi_eh_3]
  940 ?        S<     0:00      0     0     0     0  0.0 [scsi_eh_4]
  942 ?        S<     0:53      0     0     0     0  0.0 [usb-storage]
  954 ?        S<     0:00      0     0     0     0  0.0 [scsi_eh_5]
  955 ?        S<     0:00      0     0     0     0  0.0 [scsi_eh_6]
 1063 ?        S<     0:12      0     0     0     0  0.0 [kjournald]
 1237 ?        S<s    0:00     69    61  2898   420  0.0 udevd --daemon
 1742 ?        S<     0:00      0     0     0     0  0.0 [kpsmoused]
 1758 ?        S<     0:00      0     0     0     0  0.0 [kgameportd]
 2247 ?        S<     0:11      0     0     0     0  0.0 [kjournald]
 2317 ?        Ss     0:00      5    12  1815   376  0.0 /sbin/portmap
 2358 ?        Ss     0:00      1    33  1858   524  0.0 /sbin/rpc.statd
 2605 ?        S<     0:00      0     0     0     0  0.0 [kondemand/0]
 2606 ?        S<     0:00      0     0     0     0  0.0 [kondemand/1]
 2666 ?        Ss     0:00     14    24  1731   552  0.0 /sbin/syslogd
 2673 ?        Ss     0:00     13    19  1688   328  0.0 /sbin/klogd -x
 2682 ?        Ss     0:00    160   267  2376   488  0.0 /usr/bin/dbus-daemon --system
 2756 ?        Ss     0:00      5    16  1687   488  0.0 /usr/sbin/acpid -c /etc/acpi/events -s /var/run/acpid.socket
 3406 ?        Ss     0:00     10   645  5370   544  0.0 /usr/sbin/exim4 -bd -q30m
 3425 ?        Ss     0:01     20    54  2837   556  0.0 /usr/sbin/lisa
 3442 ?        Ss     0:00     13    26  1861   448  0.0 /usr/sbin/inetd
 3459 ?        S     17:26   1660   655 20400 10336  1.0 /usr/sbin/tor
 3479 ?        Ss     0:05    226   289  5418  1608  0.1 /usr/sbin/hald
 3480 ?        S      0:00     86    11  3324   796  0.0 hald-runner
 3492 ?        S      0:02     27    13  3386   808  0.0 hald-addon-input: Listening on /dev/input/event2 /dev/input/event1 /
 3500 ?        S      0:00      0     8  2191   576  0.0 hald-addon-acpi: listening on acpid socket /var/run/acpid.socket
 3506 ?        S      1:34     33    15  3384   788  0.0 hald-addon-storage: polling /dev/hdc (every 2 sec)
 3508 ?        S      0:30     13    15  3384   796  0.0 hald-addon-storage: polling /dev/sda (every 2 sec)
 3512 ?        S      0:26     14    15  3384   792  0.0 hald-addon-storage: polling /dev/sdc (every 2 sec)
 3514 ?        S      0:25     16    15  3384   792  0.0 hald-addon-storage: polling /dev/sdd (every 2 sec)
 3516 ?        S      0:26     18    15  3384   792  0.0 hald-addon-storage: polling /dev/sde (every 2 sec)
 3518 ?        S      0:25     14    15  3384   796  0.0 hald-addon-storage: polling /dev/sdf (every 2 sec)
 3531 ?        Ss     0:00      1   293 12730   788  0.0 /usr/sbin/gdm
 3537 ?        S      0:00      9   293 13130  1476  0.1 /usr/sbin/gdm
 3543 ?        Ss     0:00      4     7  3320   480  0.0 /usr/bin/system-tools-backends
 3544 ?        S      0:00      4   267  2244   700  0.0 dbus-daemon --session --print-address --nofork
 3602 ?        Ss     0:06      9   372  3783   912  0.0 /usr/sbin/ntpd -p /var/run/ntpd.pid -u 106:119 -g
 3618 ?        Ss     0:00     11    13  1962   296  0.0 /usr/sbin/atd
 3637 ?        Ss     0:00      2    26  3353   840  0.0 /usr/sbin/cron
 3666 tty1     Ss+    0:00      4    12  1695   428  0.0 /sbin/getty 38400 tty1
 3667 tty2     Ss+    0:00      0    12  1695   428  0.0 /sbin/getty 38400 tty2
 3668 tty3     Ss+    0:00      1    12  1695   428  0.0 /sbin/getty 38400 tty3
 3669 tty4     Ss+    0:00      1    12  1695   428  0.0 /sbin/getty 38400 tty4
 3670 tty5     Ss+    0:00      1    12  1695   428  0.0 /sbin/getty 38400 tty5
 3671 tty6     Ss+    0:00      1    12  1695   428  0.0 /sbin/getty 38400 tty6
 3887 ?        S      0:03    934    46  7185  1920  0.1 /usr/lib/libgconf2-4/gconfd-2 16
 3890 tty7     Ss+   44:37  14153  1639 135368 65872  6.5 /usr/bin/X :0 -audit 0 -auth /var/lib/gdm/:0.Xauth -nolisten tcp vt
 3904 ?        S      0:58     88    81  3542  1552  0.1 /usr/lib/gamin/gam_server
 3926 ?        Ss     0:00      8   652  3647   988  0.0 /bin/sh /etc/xdg/xfce4/xinitrc -- /etc/X11/xinit/xserverrc
 3981 ?        Ss     0:00      3    67  4436   248  0.0 /usr/bin/ssh-agent /usr/bin/gpg-agent --daemon --sh --write-env-file
 3982 ?        Ss     0:14      1   221  3614   544  0.0 /usr/bin/gpg-agent --daemon --sh --write-env-file=/home/andy/.gnupg/
 3988 ?        Ss     0:00    536    37 21518  2880  0.2 /usr/bin/seahorse-agent --execute startxfce4
 3993 ?        S      1:02     90   197  4034  1392  0.1 xscreensaver -no-splash
 3998 ?        S      0:16    620    81 17790  4996  0.4 /usr/bin/xfce4-session
 4006 ?        Ss     0:14    876    12 23035  6968  0.6 xfce-mcs-manager
 4008 ?        Ss     0:01     15    38 24469  1828  0.1 kdein
 4011 ?        S      0:01     58    38 24309  1608  0.1 dcops
 4013 ?        S      0:04     38    38 24809  4384  0.4 klaun
 4015 ?        S      1:00    404    38 32589  7488  0.7 kded
 4020 ?        S      0:00      1   305  5910   532  0.0 gnome-keyring-daemon
 4021 ?        S      0:19    160   258 15461  5384  0.5 xfwm4 --sm-client-id 11c0a80128000116576739700000029830000 --display
 4022 ?        S      0:00    233   475 13928  2736  0.2 Thunar --sm-client-id 11c0a80128000116576739900000029830003 --daemon
 4023 ?        Sl    40:36  43190   208 1168611 246932 24.6 /usr/bin/xfdesktop --sm-client-id 11c0a80128000117172206900000088
 4026 ?        S      4:55   1565    92 24528 10604  1.0 xfce4-panel --sm-client-id 11c0a80128000116576739700000029830001 --d
 4033 ?        S      0:05    823    76 33971  7628  0.7 korgac -session 11c0a80128000118453085300000153730002_1205425237_738
 4034 ?        S      0:12   1309    46 24253  4952  0.4 update-notifier --sm-config-prefix /update-notifier-j1u3A7/ --sm-cli
 4038 ?        S      0:01    381     1 27646  6372  0.6 kio_uiserver -session 11c0a80128000117226998100000128950016_12090543
 4040 ?        S      1:56    574   256 28643  7988  0.7 kscd -session 11c0a80128000117804951300000032850004_1209054339_88925
 4041 ?        S     34:10  35998    31 1132264 245552 24.4 /usr/lib/xfce4/panel-plugins/xfce4-menu-plugin socket_id 23068711
 4043 ?        S      0:02    835     1 25778  6992  0.6 kmix -session 11c0a80128000120542519500000139280000_1209054339_78351
 4063 ?        Sl     3:43   4308    10 97229 20668  2.0 kmail
 4066 ?        Sl    21:40  14535   493 258566 17940  1.7 /usr/lib/openoffice/program/soffice.bin -quickstart -nologo -nodefa
 4097 ?        S      0:00     49    38 32573  4372  0.4 knoti
 4126 ?        Ss     1:07    260    32  3895   592  0.0 /sbin/mount.ntfs-3g /dev/sdb1 /media/FreeAgent Drive -o rw,nosuid,no
 4879 ?        S      8:11   1434    53 20282  7920  0.7 /usr/lib/xfce4-weather-plugin/xfce4/panel-plugins/xfce4-weather-plug
 4881 ?        S     11:51    805    20 19755  5676  0.5 /usr/lib/xfce4-systemload-plugin/xfce4/panel-plugins/xfce4-systemloa
 5058 ?        Z      3:02     66     0     0     0  0.0 [xfce4-netload-p] <defunct>
 6828 ?        Sl     0:12   1515   102 31661  6236  0.6 /usr/lib/xfce4-mailwatch-plugin/xfce4/panel-plugins/xfce4-mailwatch-
 8395 ?        SNs    0:35      0   191  2640   500  0.0 /usr/bin/dirmngr --daemon --sh
 8426 ?        SNs    0:04    107   218 37609   640  0.0 /usr/sbin/privoxy --pidfile /var/run/privoxy.pid --user privoxy /etc
12143 ?        Ss     0:00      6   652  3663  1020  0.1 /bin/sh /usr/bin/icedove
12154 ?        S      0:00      0   652  3703  1004  0.1 /bin/sh /usr/lib/icedove/run-mozilla.sh /usr/lib/icedove/icedove-bin
12159 ?        Sl     2:39   4082    69 214678 96148  9.5 /usr/lib/icedove/icedove-bin
13293 ?        S      3:47    780   101 81194  9004  0.8 /lib/ld-linux.so.2 /usr/lib/Adobe/Reader8/Reader/intellinux/bin/acro
13379 ?        S      0:00      9    38 27577  4036  0.4 kio_f
14575 ?        Ssl    0:01     31   475 56108  9248  0.9 /usr/bin/Thunar file:///home/andy
14950 ?        Rsl   37:06    171   293 190358 69100  6.8 /usr/lib/iceape/iceape-bin
15013 ?        S      0:00      0     0     0     0  0.0 [pdflush]
15131 ?        S      0:00      0     0     0     0  0.0 [pdflush]
15133 ?        Rs     0:00    121     1 29730 16264  1.6 konsole --ls
15134 pts/0    Ss     0:00      3   652  4083  1996  0.1 -bash
15164 pts/0    R+     0:00      1    71  3364   820  0.0 ps vax
17558 ?        Ss     0:00     41   368 15247  1196  0.1 /usr/sbin/cupsd
18612 ?        S      0:06    632   379 21880  7792  0.7 orage -p
19674 ?        S      2:35      6  1804 10543  3376  0.3 /usr/lib/clisp/base/lisp.run -B /usr/lib/clisp -M /usr/lib/clisp/bas
21093 ?        S      0:00      4     7  2884   668  0.0 gnome-pty-helper
26592 ?        Ss     0:01    196    67  2924   872  0.0 /usr/bin/freshclam -d --quiet
27101 ?        Ss     0:05    122    44 43275   432  0.0 /usr/sbin/clamd
32021 ?        S      0:00      4     7  2884   668  0.0 gnome-pty-helper
32383 ?        Ss     0:00     20  2423  6748   732  0.0 /usr/sbin/winbindd
32384 ?        S      0:00      4  2423  6748   616  0.0 /usr/sbin/winbindd

It doesn't seem kosher to have to reboot a GNU/Linux system to recover full responsivity. That sounds like a MS Windows solution ... or am I being just too optimistic?

How do I address problems with  a kbuildsycoca and iceape-bin?

Cheers

A

-- 

"If they can get you asking the wrong questions, they don't have to worry about the answers." - Thomas Pynchon, "Gravity's Rainbow"

Reply to: