Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sun, 18 Nov 2001 21:33:08 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sun, 18 Nov 2001 21:32:59 -0500 Received: from w089.z209220022.nyc-ny.dsl.cnc.net ([209.220.22.89]:49936 "HELO yucs.org") by vger.kernel.org with SMTP id ; Sun, 18 Nov 2001 21:32:52 -0500 Subject: Re: replacing the page replacement algo. From: Shaya Potter To: Rik van Riel Cc: Shaya Potter , linux-kernel@vger.kernel.org In-Reply-To: In-Reply-To: Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/0.99.1 (Preview Release) Date: 18 Nov 2001 21:31:15 -0500 Message-Id: <1006137133.604.8.camel@zaphod> Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 2001-11-18 at 20:44, Rik van Riel wrote: > On 18 Nov 2001, Shaya Potter wrote: > > > If I wanted to experiment with different algorithms that chose which > > page to replace (say on a page fault) what functions would I have to > > replace? > > try_to_free_pages() and all the functions it calls. I was looking at vmscan.c and it appears that swap_out() is what I want. If instead of having it step through the mmlist, I give it the explicit mm of the processes that I want a page swapped out from? so I could implement my algorithm either inside that func or as function calls from it and have it pass onto swap_out_mm() the mm of the processes I choose to swap out. or am I totally misunderstanding something here? (likely, as this is my first time digging into the vm and trying to learn about it) thanks, shaya potter - 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/