Re: Clearing SWAP
-----BEGIN PGP SIGNED MESSAGE-----
On 05/01/08 16:29, andy wrote:
> Ron Johnson wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>> On 05/01/08 15:43, 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
>>> 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
>>> 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?
>> # swapoff -a
>> # swapon -a
>>> 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.
>> I'm not sure that this will do what you want...
> Perhaps not. However, my uptime is only 7 days with one user. Yet it
> takes several seconds for my Xfce4 (light and fast) to respond. I am
> unable to load a larger amount of RAM, and my system is sluggish even
The mobo is restricted, or you are a poor student?
> with 1GB of RAM. What is a poor Deb Lenny user to do? SWAP seemed like a
> logical culprit.
> The virtual memory is some 798MB of 980MB and I have only KSCD, KMail,
I always keep open an rxvt window running top(1), sorted by memory
> Konsole. OO.o Writer, IceApe, IceDove, and this IceDove composer windows
> When I double click within Xfce on the /home directory icon, there is a
> noticeable lag between clicking and a response. What causes this? Must I
Maybe DMA is disabled?
Maybe you've got sooo many files in $HOME that it takes a good long
time for the XFCE file browser to load them all into it's memory
list? I've got some Very Large directories, and it takes a Long
Time for the GNOME file picker to do it's think. Went to hell
around v2.16, I think.
Maybe you've got a 4200RPM laptop drive?
> reboot every few days so as to release memory to allow my system to be
> more responsive? This isn't the GNU/Linux I know and love from my
> Slackware days. What is wrong with my configuration?
One action(?) that will help is to not use KSCD, KMail & Konsole.
Since they are KDE apps, they require you to load a good chunk of
KDE & Qt libraries in addition to the Gtk libs that are already
loaded for XFCE, OOo, Iceape & Icedove.
Using something less piggish than OOo will also help.
(BTW, why run KMail & Icedove simultaneously? Isn't that a recipe
for losing track of which app's folder a mail is in? Unless you run
fetchmail, an MTA & an IMAPd.)
Ron Johnson, Jr.
Jefferson LA USA
We want... a Shrubbery!!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
-----END PGP SIGNATURE-----