Re: Memory Leak

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

 



DafyddHugh wrote:
> Why does the disk spin and the machine lock up when it hits swap? If
> the memory is cache, then surely it won't start swapping until the
> cache memory is utilised.

Does it just go very very slowly, or does it completely freeze? As if
it's freezing, then I'd suspect that there is something odd with that
swap file. You could always try booting into single user mode, use
swapoff -a to stop Linux using it, and mkswap to recreate it.

Normally, Linux *will* start using swap before it has exhausted its
cache, simply because there will be parts of some files that will be
accessed more often than parts of some program memory.

But normally, you should hardly notice light swap usage.

If Linux doesn't completely freeze, then you might like to watch the top
command and see how CPU time switches between "us" (user mode: normal
programs), "sy" (kernel mode: mainly dealing with disks, filesystems and
hardware), "wa" (waiting for hard disks, etc.) and "id" (idle time).
That might give you pointers.

James.

-- 
James Wilkinson       | In the Royal Air Force a landing's OK,
Exeter    Devon    UK | If the pilot gets out and can still walk away.
E-mail address: james | But in the Fleet Air Arm the outlook is grim,
@westexe.demon.co.uk  | If your landings are duff and you've not learnt to
                      | swim.


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux