[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Broken swap on potato, running 2.2.19 build



On Thu, 2002-04-11 at 16:44, Chris Murton wrote:
> Hmm..
> 
> Swap is something i very rarely touch. I give it a partition, and it works
> mostly. Hence why i'm getting stuck with swap that doesn't work itself.
> 
> dmesg on boot reports Swap space is added. Lovely.. get into the machine,
> play about for a while, run 'top' and ..
> 
> Mem:   79300K av,  50836K used,  28464K free,  28656K shrd,  22980K buff
> Swap: 127004K av,      0K used, 127004K free                 12532K cached
> 
> I realise that it'll use memory in preference, because it's quicker, but as
> I understand it, swap should take over once the memory has reached a certain
> amount of use. The box *has* run to 2mb free on memory, with no swap in use.

It looks like 28MB free to me.  Or are you saying this happened at some
other time?

> No amount of mkswap, swapoff and swapon will persuade it to work either.
> Pleasepleaseplease, suggestions!

As long as there is a lot of memory used by 'cached' and 'buff', there
isn't much need to swap.  If you had 100% used, 0% cached, and 0%
swapped, that would be weird.  Your situation doesn't seem weird though.

There are lots of ways to alloc a lot of memory to see if your swap
works.  Today I found out that diff is a huge memory hog.  Try 

diff -ua /dev/hda /dev/hdb 

And let me know if it swaps :)

-jwb



-- 
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: