Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964821AbVL1OAg (ORCPT ); Wed, 28 Dec 2005 09:00:36 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S964822AbVL1OAg (ORCPT ); Wed, 28 Dec 2005 09:00:36 -0500 Received: from imf25aec.mail.bellsouth.net ([205.152.59.73]:12263 "EHLO imf25aec.mail.bellsouth.net") by vger.kernel.org with ESMTP id S964821AbVL1OAg (ORCPT ); Wed, 28 Dec 2005 09:00:36 -0500 Date: Wed, 28 Dec 2005 08:00:21 -0600 From: Tommy Reynolds To: DervishD Cc: mailinglists@unix-scripts.com, linux-kernel@vger.kernel.org Subject: Re: Memory, where's it going? Message-Id: <20051228080021.44263f03.Tommy.Reynolds@MegaCoder.com> In-Reply-To: <20051228095512.GA25654@DervishD> References: <20051228085328.GA25380@DervishD> <026801c60b8d$ef128360$6501a8c0@ndciwkst01> <20051228095512.GA25654@DervishD> X-Mailer: Sylpheed version 2.2.0beta2 (GTK+ 2.6.10; i686-redhat-linux-gnu) X-Face: Nr)Jjr, 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.=20 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 --Signature=_Wed__28_Dec_2005_08_00_21_-0600_+x=zCJDkf3RlVki3 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFDspp5/0ydqkQDlQERApNhAKCw0jKVnIbVnbetaXoJFGxT7gdPaACfcka2 odJ+TYFYPoFKWCJAxPUPN6Q= =e50e -----END PGP SIGNATURE----- --Signature=_Wed__28_Dec_2005_08_00_21_-0600_+x=zCJDkf3RlVki3-- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/