Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932390AbWHCH4q (ORCPT ); Thu, 3 Aug 2006 03:56:46 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932388AbWHCH4q (ORCPT ); Thu, 3 Aug 2006 03:56:46 -0400 Received: from mailer.gwdg.de ([134.76.10.26]:22948 "EHLO mailer.gwdg.de") by vger.kernel.org with ESMTP id S932382AbWHCH4p (ORCPT ); Thu, 3 Aug 2006 03:56:45 -0400 Date: Thu, 3 Aug 2006 09:55:50 +0200 (MEST) From: Jan Engelhardt To: Xin Zhao cc: linux-kernel , linux-fsdevel@vger.kernel.org Subject: Re: Can someone explain under what condition inode cache pages can be swapped out? In-Reply-To: <4ae3c140608022315y675eed20hcefbb8fb0407f4a3@mail.gmail.com> Message-ID: References: <4ae3c140608022315y675eed20hcefbb8fb0407f4a3@mail.gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Report: Content analysis: 0.0 points, 6.0 required _SUMMARY_ Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 842 Lines: 28 > > Specifically, how a swaping system determine which page should be > swapped out when memory is tight? LRU, f.ex. > Intuitively, I think inode cache > pages should be swapped out as late as possible. I believe they are not swapped at all - they are shrunk when memory becomes a premium. (If this was a math class I'd say the cache size will be zero, although that's not too realistic in practice) > But how Linux mkae > decision on this? Why linux does not pin inode pages in the memory? Ugh hell no. Then you could trigger OOM by simply walking a big filesystem. Jan Engelhardt -- - 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/