Re: comments in the page coloring options in /sys/conf/NOTES

From: Alexander Leidinger <Alexander_at_Leidinger.net>
Date: Mon, 7 Jun 2004 21:29:49 +0200
On Mon, 7 Jun 2004 12:49:33 -0500
Alan Cox <alc_at_cs.rice.edu> wrote:

> > vm_page.h contains:
> > ---snip---
> > #if PQ_CACHESIZE >= 1024
> > #define PQ_PRIME1 31    /* Prime number somewhat less than PQ_HASH_SIZE */
> > #define PQ_PRIME2 23    /* Prime number somewhat less than PQ_HASH_SIZE */
> > #define PQ_L2_SIZE 256  /* A number of colors opt for 1M cache */
> > ---snip---
> > 
> > The three defines seem to be the tunables for the page coloring, but
> > neither of them seem to be near cache_size/page_size. So even for the
> > direct mapped case this doesn't seem to fit your explanation.
> 
> Actually, it does.  Divide 1MB (the cache size) by 4KB (the page size)

Ooops... I had a different number for the page size in my mind...

> > ... Is it as
> > easy as using appropriate values for those defines at boot time or is
> > there more work involved for auto-tuning version?
> 
> At boot time.

That was not my the question...:
Do we need to change only places where those defines are used or are
other changes required too?

Bye,
Alexander.

-- 
           I'm available to get hired (preferred in .lu).

http://www.Leidinger.net                       Alexander _at_ Leidinger.net
  GPG fingerprint = C518 BC70 E67F 143F BE91  3365 79E2 9C60 B006 3FE7
Received on Mon Jun 07 2004 - 17:28:45 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:56 UTC