Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Jun 2004 21:29:49 +0200
From:      Alexander Leidinger <Alexander@Leidinger.net>
To:        Alan Cox <alc@cs.rice.edu>
Cc:        current@freebsd.org
Subject:   Re: comments in the page coloring options in /sys/conf/NOTES
Message-ID:  <20040607212949.2f7997d9@Magellan.Leidinger.net>
In-Reply-To: <20040607174933.GK24461@cs.rice.edu>
References:  <20040606142446.2900a97e@Magellan.Leidinger.net> <20040606201249.GH24461@cs.rice.edu> <20040607130430.0ebbbb8e@Magellan.Leidinger.net> <20040607174933.GK24461@cs.rice.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 7 Jun 2004 12:49:33 -0500
Alan Cox <alc@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040607212949.2f7997d9>