Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751036AbWCWMMd (ORCPT ); Thu, 23 Mar 2006 07:12:33 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751364AbWCWMMd (ORCPT ); Thu, 23 Mar 2006 07:12:33 -0500 Received: from ns.virtualhost.dk ([195.184.98.160]:27987 "EHLO virtualhost.dk") by vger.kernel.org with ESMTP id S1751036AbWCWMMc (ORCPT ); Thu, 23 Mar 2006 07:12:32 -0500 Date: Thu, 23 Mar 2006 13:12:36 +0100 From: Jens Axboe To: Con Kolivas Cc: ck@vds.kolivas.org, "Ryan M." , linux-kernel@vger.kernel.org Subject: Re: [ck] Re: -mm merge plans Message-ID: <20060323121236.GY4285@suse.de> References: <20060322205305.0604f49b.akpm@osdl.org> <4422554D.6000602@att.net> <20060323080925.GP4285@suse.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1364 Lines: 30 On Thu, Mar 23 2006, Con Kolivas wrote: > Jens Axboe writes: > > >It's a heuristic, and sometimes that will work well and sometimes it > >will not. What if during this period of inactivity, you start bringing > >everything in from swap again, only to page it right out because the > >next memory hog starts running? From a logical standpoint, swap prefetch > >and the vm must work closely together to avoid paging in things which > >really aren't needed. > > If the system is idle it doesn't cost anything to bring those pages in > (laptop mode disables any prefetching if you're thinking about power > consumption on laptops). And if the system wants the ram that has been > filled with prefetched pages wrongly, the prefetched pages are at the tail > end of the inactive LRU list with a copy on backing store so if they're not > accessed they'll be the first thing dropped in preference to anything > else, without any I/O. I missed the fact that you left these pages on backing store for easy dropping in the future. I guess if you didn't, it could coarsely be handled in user space easily. -- Jens Axboe - 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/