Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030183AbWBMVQM (ORCPT ); Mon, 13 Feb 2006 16:16:12 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1030187AbWBMVQM (ORCPT ); Mon, 13 Feb 2006 16:16:12 -0500 Received: from omx2-ext.sgi.com ([192.48.171.19]:35035 "EHLO omx2.sgi.com") by vger.kernel.org with ESMTP id S1030183AbWBMVQL (ORCPT ); Mon, 13 Feb 2006 16:16:11 -0500 Date: Mon, 13 Feb 2006 13:16:00 -0800 (PST) From: Christoph Lameter To: David Lang cc: Con Kolivas , linux kernel mailing list , Andrew Morton , ck list Subject: Re: [PATCH] mm: Implement Swap Prefetching v25 In-Reply-To: Message-ID: References: <200602120141.46084.kernel@kolivas.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1185 Lines: 24 On Mon, 13 Feb 2006, David Lang wrote: > On Mon, 13 Feb 2006, Christoph Lameter wrote: > > spare ram when swapping??? We are already under memory pressure. Why make > > it worse by getting rid of the few bits of available memory? If a system > > swaps then we are per definition in the bad performance range. Add more > > memory. > when a program exits it's memory is now free, rather then just waiting until > something uses this memory up normally, this patch attempts to fill that > memory with things that are expected to be useful (things that were swapped > out) Then trigger this action when a program exits and when you know there was enough freed up to justify such an action. However, this is still a heuristic. No one knows if the pages read from swap will be of any use at all. For all I know a process may want to allocate some memory and fail because the memory was needlessly spend to read in pages that no one needs. - 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/