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

Alexander Leidinger Alexander at Leidinger.net
Mon Jun 7 19:28:46 GMT 2004


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 @ Leidinger.net
  GPG fingerprint = C518 BC70 E67F 143F BE91  3365 79E2 9C60 B006 3FE7


More information about the freebsd-current mailing list