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

Clearing SWAP



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
3890 root      20   0  123m  68m 8184 S    4  7.0  41:54.30 Xorg
 161 root      15  -5     0    0    0 S    2  0.0   0:32.91 kswapd0
4881 andy      20   0 19776 5672 4460 S    2  0.6  11:38.49 xfce4-systemloa
   1 root      20   0  2032  548  520 S    0  0.1   0:05.08 init
   2 root      15  -5     0    0    0 S    0  0.0   0:00.00 kthreadd
   3 root      RT  -5     0    0    0 S    0  0.0   0:00.44 migration/0
   4 root      15  -5     0    0    0 S    0  0.0   0:34.99 ksoftirqd/0
   5 root      RT  -5     0    0    0 S    0  0.0   0:00.00 watchdog/0
   6 root      RT  -5     0    0    0 S    0  0.0   0:00.52 migration/1
   7 root      15  -5     0    0    0 S    0  0.0   0:04.38 ksoftirqd/1
   8 root      RT  -5     0    0    0 S    0  0.0   0:00.00 watchdog/1
   9 root      15  -5     0    0    0 S    0  0.0   0:11.90 events/0
  10 root      15  -5     0    0    0 S    0  0.0   0:20.40 events/1
  11 root      15  -5     0    0    0 S    0  0.0   0:00.00 khelper
  43 root      15  -5     0    0    0 S    0  0.0   0:09.02 kblockd/0
  44 root      15  -5     0    0    0 S    0  0.0   0:19.00 kblockd/1
  47 root      15  -5     0    0    0 S    0  0.0   0:00.00 kacpid
  48 root      15  -5     0    0    0 S    0  0.0   0:00.00 kacpi_notify
 121 root      15  -5     0    0    0 S    0  0.0   0:00.00 kseriod
 162 root      15  -5     0    0    0 S    0  0.0   0:00.00 aio/0
 163 root      15  -5     0    0    0 S    0  0.0   0:00.00 aio/1
 608 root      15  -5     0    0    0 S    0  0.0   0:00.00 ksuspend_usbd
 610 root      15  -5     0    0    0 S    0  0.0   0:00.00 khubd
 787 root      15  -5     0    0    0 S    0  0.0   0:00.00 scsi_eh_0
 788 root      15  -5     0    0    0 S    0  0.0   0:18.06 usb-storage
 790 root      15  -5     0    0    0 S    0  0.0   0:00.00 scsi_eh_1
 791 root      15  -5     0    0    0 S    0  0.0   0:01.08 usb-storage
 816 root      15  -5     0    0    0 S    0  0.0   0:00.00 ata/0

and of free:
$ free
            total       used       free     shared    buffers     cached
Mem:       1003576     986260      17316          0       9868     139320
-/+ buffers/cache:     837072     166504
Swap:      2931852    1928848    1003004

How can I clear out SWAP so that it does not retain redundant memory allocated pages? I am thinking if SWAP can be cleared, my machine will be more responsive with current pages written to SWAP, rather than taking up space written by now obsolete processes.

Thanks

Andy

--

"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: