From: Phillip Lougher Subject: Re: fs block size and PAGE_CACHE_SIZE Date: Wed, 07 May 2003 01:59:12 +0100 Sender: linux-fsdevel-owner@vger.kernel.org Message-ID: <3EB85A60.6080005@lougher.demon.co.uk> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: David Chow , linux-fsdevel@vger.kernel.org Return-path: Received: from anchor-post-35.mail.demon.net ([194.217.242.85]:55691 "EHLO anchor-post-35.mail.demon.net") by vger.kernel.org with ESMTP id S262771AbTEGApB (ORCPT ); Tue, 6 May 2003 20:45:01 -0400 To: Bryan Henderson List-Id: linux-fsdevel.vger.kernel.org Bryan Henderson wrote: > >>how could I efficient populate one 16k block to page cache(4 pages) at one >> >readpage() op? > >Why would you want to? If someone wants to access those other 3 pages, >they'll have page faults of their own. > In an uncompressed filesystem this is not a problem because the additional page faults (read_page), will read the pages out of the block cache. However, for a compressed filesystem, the 16K block would have to be (re-)decompressed evey time, because the block is compressed in the block cache. It is much more efficient to push the extra decompressed pages into the page cache. Regards Phillip Lougher