Subject: Re: Q: uvmexp.ncolors
To: Toru Nishimura <locore32@gaea.ocn.ne.jp>
From: Noriyuki Soda <soda@sra.co.jp>
List: port-mips
Date: 12/23/2003 00:48:27
>>>>> On Sun, 21 Dec 2003 21:04:16 +0900, 
	"Toru Nishimura" <locore32@gaea.ocn.ne.jp> said:

> I'm willing to be enlighten about UVM.  I can see uvmexp.ncolors
> variable in arch/mips/mips/cache.c.  What's the purpose of it?

It's used for "page coloring" that avoids cache thrashing by
introducing a policy to vm page allocation. (Solaris provides multiple
coloring policies which can be choosed by a demand of applications.)
Page coloring makes significant effect for some applications
which do heavy memory access (e.g. numerical applications).

IIRC, "Solaris Internal" has some good description about it.
--
soda