Uttered DervishD <[email protected]>, spake thus: > > I understand the concept and why things are cached, i've just never > > seen it cache this much before.. > Swap memory is not used just when the machine has no free memory. > Although this is a rough explanation and doesn't describe exactly the > swap mechanism, some apps will remain into swap space even if there's > plenty of free RAM available, as long as they are not used. Yes. Let me amplify that.. It is not apps that are being evicted from main memory, only some of their pages. The kernel will do "anticipatory swapping", moving pages that have not be used for some time out to the paging store, to make room just in case it might be needed for a burst of activity in the future. This is a very neat feature. As you pointed out, do not get excited about having no free memory: the kernel is just doing its job especially well. However, DO get excited if swap space gets short or you see frequent page-in activity. Cheers
Attachment:
pgpjviFG16GQM.pgp
Description: PGP signature
- Follow-Ups:
- Re: Memory, where's it going?
- From: DervishD <[email protected]>
- Re: Memory, where's it going?
- References:
- Memory, where's it going?
- From: "Shaun" <[email protected]>
- Re: Memory, where's it going?
- From: DervishD <[email protected]>
- Re: Memory, where's it going?
- From: "Shaun" <[email protected]>
- Re: Memory, where's it going?
- From: DervishD <[email protected]>
- Memory, where's it going?
- Prev by Date: How to debug FTP messaging in Linux FTP server
- Next by Date: Re: oops in kernel 2.6.15-rc6
- Previous by thread: Re: Memory, where's it going?
- Next by thread: Re: Memory, where's it going?
- Index(es):