Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750713AbVJSNnx (ORCPT ); Wed, 19 Oct 2005 09:43:53 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750777AbVJSNnx (ORCPT ); Wed, 19 Oct 2005 09:43:53 -0400 Received: from [194.90.79.130] ([194.90.79.130]:46855 "EHLO argo2k.argo.co.il") by vger.kernel.org with ESMTP id S1750713AbVJSNnw (ORCPT ); Wed, 19 Oct 2005 09:43:52 -0400 Message-ID: <43564D8F.3000809@argo.co.il> Date: Wed, 19 Oct 2005 15:43:43 +0200 From: Avi Kivity User-Agent: Mozilla Thunderbird 1.0.7-1.1.fc4 (X11/20050929) X-Accept-Language: en-us, en MIME-Version: 1.0 To: 7eggert@gmx.de CC: Badari Pulavarty , Guido Fiala , lkml Subject: Re: large files unnecessary trashing filesystem cache? References: <4Z5WG-1iM-19@gated-at.bofh.it> <4Z6zs-27l-39@gated-at.bofh.it> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 19 Oct 2005 13:43:48.0809 (UTC) FILETIME=[22357390:01C5D4B3] Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 925 Lines: 24 Bodo Eggert wrote: >I guess the solution would be using random cache eviction rather than >a FIFO. I never took a look the cache mechanism, so I may very well be >wrong here. > > Instead of random cache eviction, you can make pages that were read in contiguously age faster than pages that were read in singly. The motivation is that the cost of reading 64K vs 4K is almost the same (most of the cost is the seek), while the benefit for evicting 64K is 16 times that of evicting 4K. Over time, the kernel would favor expensive random-access pages over cheap streaming pages. In a way, this is already implemented for inodes, which are aged more slowly than data pages. - 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/