kanotix.com

General Support - Swap problem

suslisko - 24.05.2006, 15:13 Uhr
Titel: Swap problem
I'm running a Kanotix HD installation on 256 MB of RAM, however I have a swap partition of 1 GB. When I look at the resources it shows that non of the swap space is used. This results in a Free physical memory of 4-50 MB depending on what im doing. Can someone help?
And second where can I see what processes are running and maybe shut some down?
datebro - 24.05.2006, 16:39 Uhr
Titel: Swap problem
2: htop
1: Be happy. Unused Ram is bad Ram, and linux tends to use as much Ram as possible. Its not! Windows and uses Swap only if necessary.

Greetings
Datebro
drb - 24.05.2006, 16:55 Uhr
Titel:
I'd look at ksensors and never find swap being used . . . until I got into photo stitching when swap started showing usage.

drb
kilgoretrout - 24.05.2006, 18:35 Uhr
Titel:
As others have alluded to, this is completely normal. Linux caches frequent hard disk reads to any available ram until it is almost used up. The cached ram is still available for system use if needed; it's not really used up.
This is all done for system performance since info can be read much faster from ram than the hard drive. You will notice that the second or third time you open a large application like firefox, it opens much faster than the first time you launch it after just booting up. This is due to the fact that a lot of the data for firefox that was initially loaded from the hard drive is now present in the ram cache. If you launch an application that needs the ram occupied by the firefox data, the system will push the firefox data in the ram cache out and give the ram to the new ram intensive app rather than going to swap. To see exactly how much ram is being used and how much of that use is buffers/cache run:

$ free

And to get a printout of what processes are running, run:

$ ps aux

or:

$ top

which gives a running, updated tally. For a graphical tool that does the same, you can use KDE System Guard.
mzilikazi - 24.05.2006, 21:26 Uhr
Titel: Re: Swap problem
suslisko hat folgendes geschrieben::

And second where can I see what processes are running and maybe shut some down?


htop is much better than top IMHO. Just run htop in a shell.
2radical - 27.05.2006, 03:24 Uhr
Titel: RE: Re: Swap problem
I show with 512MB with 502 MB swp:

joyboy@WorldsEnd:~$ free
total used free shared buffers cached
Mem: 482380 458724 23656 0 134148 117516
-/+ buffers/cache: 207060 275320
Swap: 514072 128 513944
Alle Zeiten sind GMT + 1 Stunde
PNphpBB2 © 2003-2007