From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Chow Subject: freeing pagecache Date: Sun, 29 Sep 2002 20:00:36 +0800 Sender: linux-fsdevel-owner@vger.kernel.org Message-ID: <3D96EB64.7020406@shaolinmicro.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from shaolinmicro.com (localhost.localdomain [127.0.0.1]) by host1.home.shaolinmicro.com (8.11.6/8.11.6) with ESMTP id g8TC0bY03424 for ; Sun, 29 Sep 2002 20:00:39 +0800 To: linux-fsdevel@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org Hi all, This is probabaly a question for the VFS or VM. If I some pages are associated with an inode (pagec->mapping->host == the_inode) . When running out of memory, how does the vm freeing up the pagecache? OK, if I am running out of memory, is there any chance for the vm freeing up the pages and leaving the inode and dentry in the dcache or it is trigerred by the shring_dcache and result in freeing up all the pages. In case if the pages are locked, how does the VM handle this case? Anyway, it is probably a question of the path of freeing up page cache... The reason I am asking the question is that if I am safe to make use of an unlocked mapped pagecahed page. Thanks for comments and answers. David