🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: ch.comp.os.linux
Article #20868

Re: swap

#20868
From: Marc SCHAEFER
Date: Wed, 01 Sep 1999 00:00
56 lines
3062 bytes
Ruben Unteregger <run@spin.ch> wrote:
> ist es normal, wenn das system einmal mit swappen angefangen
> hat, es auch weiters swappen wird, obwohl memory freigeworden
> ist? was sind die kriterien fuer ein system, damit es damit

First, are you sure it's swapPING ?  Maybe there are some
pages swapped (paged-out), but maybe they are not needed ?

Try to run
   vmstat 5
in another window/console. You will see the paging activity.

For example:

Script started on Wed Sep  1 08:35:05 1999
<vulcan> schaefer:/usr/users/schaefer> vmstat 5
 procs                  memory    swap        io    system         cpu
 r b w  swpd  free  buff cache  si  so   bi   bo   in   cs  us  sy  id
 2 0 0  8400  2812 10556  9804   2   0    2    0    3    2   4   0   4
 3 0 0  8400  2716 10684  9828   0   0   30   77  164  101  65  32   3
 2 0 0  8400  2364 10876  9852   6   0   39   49  164   95  69  31   0
 2 0 0  8400  2224 11068  9896  34   0   49   32  181  137  61  39   0
 2 0 0  8400  2044 11196  9920   0   0   24   23  149   71  63  37   0
 2 0 0  8400  2244 11196  9932   0   0    4   33  139   51  53  46   0
 4 0 0  8400  1228 11192  9812  38   0   14   28  149   89  54  46   0
 2 0 0  8400  1848 11252  9796   1   0   10   31  142   77  49  51   0
 2 0 0  8400  1828 11252  9804   0   0    4   35  137   56  57  43   0
 2 0 0  8400  1796 11252  9820   0   0    7   25  132   39  54  46   0
 2 0 0  8400  1764 11252  9836   0   0    6   20  127   42  50  50   0

<vulcan> schaefer:/usr/users/schaefer> free
             total       used       free     shared    buffers     cached
Mem:         63372      61640       1732      29740      11252       9860
-/+ buffers:            40528      22844
Swap:       103844       8400      95444
<vulcan> schaefer:/usr/users/schaefer> uptime
  8:36am  up 102 days, 11:36h,  2 users,  load average: 2.35, 1.85, 0.97

Script done on Wed Sep  1 08:36:14 1999

Basically, in my case, I have 64 MB of memory and it's a little small
(8 MB is swapped). However, as you saw, the system does not always
page-out, although there was some page-in activity.

> werden kann, das wieder memory frei ist? wie kann ich sehen,
> welche prozesse auf die swappartition ausgelagert wurden?

If you really want to unswap those, do a
   (swapoff -a; swapon -a)
however note that this is not really useful: what is paged-out
for a long period of time is simply not needed.

To see what processes have parts swapped out, it's a little difficult.
Maybe look at a process where the RSS is quite small. When a process
is mostly completely swapped out, you get the name in parenthesis
in ps.
Technical Details
Message-ID: <7qihlt$2ib$1@vulcan.alphanet.ch>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <37CBD4D5.A373F9BA@spin.ch>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f4b73,b25ae79a5307dd16
X-Google-Attributes: gidf4b73,public
From: Marc SCHAEFER <schaefer@alphanet.ch>
Subject: Re: swap
Date: 1999/09/01
Message-ID: <7qihlt$2ib$1@vulcan.alphanet.ch>
X-Deja-AN: 519634023
References: <37CBD4D5.A373F9BA@spin.ch>
Organization: ALPHANET NF -- Not for profit telecom research
Newsgroups: ch.comp.os.linux