Date: Sun, 27 Mar 2005 07:08:34 +0400 From: Igor Shmukler <shmukler@mail.ru> To: Bao Zhao <baozhaolinuxer@yahoo.com> Cc: freebsd-hackers@freebsd.org Subject: Re[2]: relation between PQ_CACHESIZE and PQ_L2_SIZE Message-ID: <E1DFO8g-000CQA-00.shmukler-mail-ru@f31.mail.ru> In-Reply-To: <20050327021228.84358.qmail@web31710.mail.mud.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> http://lists.freebsd.org/mailman/htdig/freebsd-hackers/2003-June/001655.html > But what puzzled me is : why not page size is a > factor when calculating the number of colors? Page coloring in freebsd was implemented by John Dyson. It is needed to better utilize the cache. Depending on cache's implementation fully-associative vs. 4-way vs 2-way etc you might have problems. A subset of bits (low-bits) from the page frame's (physical) address tells us where can data be stored in processor cache. We want a relatively equal distribution of these "colors" so that we utilize as much of cache real estate as possible. Hence, we are interested in the size of a set, not size of a page. I am sure, there are whole bunch of articles written about this. I could give you some pointers offline. Igor.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1DFO8g-000CQA-00.shmukler-mail-ru>