Re: 2.0.31-pre7 swap-used wrap-around

Bill Hawes (whawes@star.net)
Wed, 27 Aug 1997 10:24:15 -0400


Jon Lewis wrote:
>
> On Tue, 26 Aug 1997, Westley Weimer wrote:
>
> > Under 2.0.31-pre7 with the CONFIG_FREE_PAGE_CACHE, QNX 2.0.31-pre6-1 and
> > raid145-0.36.3-2.0.30 patches, out of the blue while running top I noticed
> > that I seemed to be using a *lot* of swap space. This is a pentium-100 with
> > no history of hardware or memory problems.
> >
> > $ cat /proc/meminfo
> > total: used: free: shared: buffers: cached:
> > Mem: 31707136 30621696 1085440 8925184 5865472 10928128
> > Swap: 111017984 4292739072 113246208
> >
> > ** Note "swap-used" = 4,292,739,072 = 2^32 - 2172k (exactly).
>
> If you check the archives, you'll find a very similar post from me, using
> a less hacked up kernel (probably 2.0.30).

When you noticed a swap use wrap-around, had you done a swapoff
previously? The swapoff code subtracts the full size of the swap file
from the available swap, so if for some reason some swap space was still
in use, this could wrap the count.

I'll do some more checking on this.

Regards,
Bill