Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 29 Aug 2002 15:28:07 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 29 Aug 2002 15:28:06 -0400 Received: from dsl-213-023-022-019.arcor-ip.net ([213.23.22.19]:31953 "EHLO starship") by vger.kernel.org with ESMTP id ; Thu, 29 Aug 2002 15:28:05 -0400 Content-Type: text/plain; charset=US-ASCII From: Daniel Phillips To: Mel Gorman Subject: Re: 2.4.19 Vs 2.4.19-rmap14a with anonymous mmaped memory Date: Thu, 29 Aug 2002 21:34:47 +0200 X-Mailer: KMail [version 1.3.2] Cc: linux-mm@kvack.org, References: In-Reply-To: MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Message-Id: Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2352 Lines: 56 On Monday 26 August 2002 17:13, Mel Gorman wrote: > On Mon, 26 Aug 2002, Daniel Phillips wrote: > > > Could you please provide pseudocode, to specify these reference patterns > > more precisely? > > > > Rather than providing pseudo code, here is a link to the actual function > that generates the smooth_sin references > > http://www.csn.ul.ie/~mel/vmr/smooth_sin.html > > It is really crude and written to generate any type of data until I > found the time to generate more realistic data which is a project in > itself. Anyone who wants to generate better data only has to edit the > References.pm file. > > It takes there inputs > > references - number of references to generate > range - the size in pages of the region to reference > output - the output filename > > the function has three parts > > part 1: Plot a sin wave so that the sum of all the integer values of each > part of it would generate enough references to satisify at least > half of the requessted number > part 2: Starting at the beginning of the range, reference each page in a > linear pattern until all the required references are generated > part 3: Dump all references to disk > > now that I think of it, it would have made more sense to begin with the > linear reference pattern and then generate the sin curve but seeing as > this pattern is nothing resembling real life, I didn't worry about it too > much. It is probably something I should change as it would illustrate > better what pages are kept in memory. The perl script that writes tables isn't too informative without knowing how the tables are used. Pseudocode that says exactly what your final reference pattern is would be a lot more useful. Just leave out the part about generating the tables and express it as if you were computing the distribution at the same time as generating the references, unless it's really impossible to do that. I don't think it's impossible to do that in this case. It would also be useful to state what you define as a reference. A user space program read-accesses a single byte from some address? -- Daniel - 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/