* [Q] problems with swap
@ 1997-12-09 12:23 Clemens Vonrhein
0 siblings, 0 replies; 3+ messages in thread
From: Clemens Vonrhein @ 1997-12-09 12:23 UTC (permalink / raw)
We're having some problems with our swap space.
System:
Ruffian RPX164-2 (500Mhz)
256 MB Ram
512 MB swap configured
Linux 2.0.30 (Deskstation kernel)
RedHat 5.0
in /etc/fstab we have:
/dev/sda5 swap swap defaults 0 0
But now it seems, that this swap space isn't used at all:
# top
1:17pm up 2:06, 4 users, load average: 0.00, 0.01, 0.00
50 processes: 49 sleeping, 1 running, 0 zombie, 0 stopped
CPU states: 3.6% user, 5.4% system, 0.0% nice, 91.2% idle
Mem: 256512K av, 44912K used, 211600K free, 45664K shrd, 3752K buff
Swap: 513000K av, 0K used, 513000K free 20928K cached
# swapon -s
swapon: /proc/swaps: No such file or directory
Furthermore, the used memory is permanently growing, reaching nearly
all of the 256Mb at some point without any process running wild or any
memory intensive calculation. But even then, the swap space isn't
used.
Now:
- is this specific to our kernel (local deskstation 2.0.30 hack)? We
can't go to any other kernel, since we don't have any patches for an
official kernel source (and the ones from Jay Estabrook don't work for
us yet).
- is it a known problem with RedHat 5.0? I don't think so - otherwise
I would have found something in the mailing archive by now ...
- do we have to configure something during kernel compiling?
- any other ideas?
Thanks for any hints/tips etc.
Clemens
--
***************************************************************************
* Clemens Vonrhein email vonrhein@bio5.chemie.uni-freiburg.de *
* WWW http://bio5.chemie.uni-freiburg.de/~vonrhein/ *
* *
* Institut f. Org. Chemie u. Biochemie *
* Albertstr.21 *
* D-79104 Freiburg i.Br. (Germany) *
* Tel.: 761/203-6061 FAX: 761/203-6161 *
***************************************************************************
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Q] problems with swap
@ 1997-12-09 13:32 Stefan Schroepfer
0 siblings, 0 replies; 3+ messages in thread
From: Stefan Schroepfer @ 1997-12-09 13:32 UTC (permalink / raw)
Clemens Vonrhein wrote:
>
> We're having some problems with our swap space.
> [...]
>
> But now it seems, that this swap space isn't used at all:
> [...]
>
> Furthermore, the used memory is permanently growing, reaching nearly
> all of the 256Mb at some point without any process running wild or any
> memory intensive calculation. But even then, the swap space isn't
> used.
>
The memory is eaten up for disk caching, but disk caching does
not go so far to eat up swap space ... guess why.
scr@iis.fhg.de
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 3+ messages in thread
[parent not found: <199712091223.NAA17997@bio6.chemie.uni-freiburg.de>]
* Re: [Q] problems with swap
[not found] <199712091223.NAA17997@bio6.chemie.uni-freiburg.de>
@ 1997-12-09 13:50 ` Andreas Johansson
0 siblings, 0 replies; 3+ messages in thread
From: Andreas Johansson @ 1997-12-09 13:50 UTC (permalink / raw)
On Tue, 9 Dec 1997, Clemens Vonrhein wrote:
> We're having some problems with our swap space.
[system info snipped]
>
> in /etc/fstab we have:
> /dev/sda5 swap swap defaults 0 0
>
> But now it seems, that this swap space isn't used at all:
>
> # top
> 1:17pm up 2:06, 4 users, load average: 0.00, 0.01, 0.00
> 50 processes: 49 sleeping, 1 running, 0 zombie, 0 stopped
> CPU states: 3.6% user, 5.4% system, 0.0% nice, 91.2% idle
> Mem: 256512K av, 44912K used, 211600K free, 45664K shrd, 3752K buff
> Swap: 513000K av, 0K used, 513000K free 20928K cached
>
> # swapon -s
> swapon: /proc/swaps: No such file or directory
The /proc/swaps information is not available in your 2.0.30 kernel. I'm
not sure when it was added, but it exists in my current 2.1.56 kernel
(which sucks, don't use it!). It does not exist in any 2.0.xx kernel.
Without swapon -s you can still get some more info out of the 'free'
command than top displays (see way below).
This is the output of 'swapon -s' on my system:
ajo@wopr ~ >swapon -s
Filename Type Size Used Priority
/dev/sda1 partition 51192 0 -1
/dev/sdb1 partition 51192 0 -2
This has no more information than free except if there are several
partitions + device and priority information (which you see when you do
swapon -a).
> Furthermore, the used memory is permanently growing, reaching nearly
> all of the 256Mb at some point without any process running wild or any
> memory intensive calculation. But even then, the swap space isn't
> used.
Well, this is a feature, not a bug! :)
Linux uses all of your available memory for caching of filesystems, so
when you want to reload files you get them from memory instead of having
to reload them from disk.
Watch my output of the 'free' command:
ajo@wopr ~ >free
total used free shared buffers cached
Mem: 62656 61752 904 49416 1080 28456
-/+ buffers/cache: 32216 30440
Swap: 102384 0 102384
61752 kB of my total of 62656 kB is "used". But if you subtract the
buffers and caches I have only used 32216 kB of memory. This is the number
to look at. Your system won't start swapping until this starts to get
close to the total memory of your system (in fact it starts to swap
somewhat earlier if there are pages which haven't been used for a very
long time, to free more memory for caching).
> Now:
> - is this specific to our kernel (local deskstation 2.0.30 hack)? We
> can't go to any other kernel, since we don't have any patches for an
> official kernel source (and the ones from Jay Estabrook don't work for
> us yet).
swapon -s needs a 2.1 kernel, but I guess you don't need that. You don't
have any other problem, in my opinion.
> - is it a known problem with RedHat 5.0? I don't think so - otherwise
> I would have found something in the mailing archive by now ...
> - do we have to configure something during kernel compiling?
> - any other ideas?
>
>
> Thanks for any hints/tips etc.
I hope these questions are answered above. If you don't understand what I
mean, feel free to ask more questions.
/Andreas
--
<-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=->
: E-mail: ajo@wopr.campus.luth.se :
: S-mail: Andreas Johansson, Karhusvagen 5 6:618, 977 54 Lulea, SWEDEN :
: Have you had your dose of 261.62 BogoMIPS today? - Run Alpha! :
<-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=->
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1997-12-09 13:50 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-12-09 12:23 [Q] problems with swap Clemens Vonrhein
-- strict thread matches above, loose matches on Subject: below --
1997-12-09 13:32 Stefan Schroepfer
[not found] <199712091223.NAA17997@bio6.chemie.uni-freiburg.de>
1997-12-09 13:50 ` Andreas Johansson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox