From owner-freebsd-hackers Sun Jun 25 3:40:46 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from tkc.att.ne.jp (tkc.att.ne.jp [165.76.16.7]) by hub.freebsd.org (Postfix) with ESMTP id 360DD37B636 for ; Sun, 25 Jun 2000 03:40:43 -0700 (PDT) (envelope-from mzaki@e-mail.ne.jp) Received: from work.mzaki.nom (189.pool4.ipctokyo.att.ne.jp [165.76.42.189]) by tkc.att.ne.jp (8.8.8+Spin/3.6W-CONS(10/24/99)) id TAA11011; Sun, 25 Jun 2000 19:40:41 +0900 (JST) Date: Sun, 25 Jun 2000 19:40:44 +0900 Message-ID: <86pup6qc0j.wl@tkc.att.ne.jp> From: Motomichi Matsuzaki To: freebsd-hackers@FreeBSD.ORG Subject: VM coloring description in NOTES X-Mailer: Wanderlust/2.2.12 (Joyride) XEmacs/21.1 (Bryce Canyon) MIME-Version: 1.0 (generated by WEMI 1.13.7 - "Shimada") Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi. ** this discussion is for i386 architectures ** I think there is some unclearness on the description about VM subsystem coloring in NOTES (formerly called LINT). Currently, # Options for the VM subsystem #options PQ_NOOPT # No coloring options PQ_LARGECACHE # color for 512k/16k cache #options PQ_HUGECACHE # color for 1024k/16k cache #options PQ_MEDIUMCACHE # color for 64k/16k cache #options PQ_NORMALCACHE # color for 256k/16k cache But, in /sys/vm/vm_page.h, PQ_PRIME1, PQ_PRIME2, PQ_L2_SIZE are defined as below. PQ_NOOPT defines 1/1/1 to disable coloring PQ_LARGECACHE defines 31/23/128 for 512k cache PQ_HUGECACHE defines 31/23/256 for 1M cache PQ_MEDIUMCACHE defines 13/7/64 for 256k cache PQ_NORMALCACHE defines 5/3/16 for 64k cache and, on the default, these parameters are defined as 9/5/32. NOTES has obviously incorrect description about MEDIUM and NORMAL case, and there are no discription about the default coloring. Yes, this situation arise from its incomprehensive name. I suggest that these options should be renamed as follows: currently -> candidate PQ_HUGECACHE PQ_CACHE1024 PQ_LARGECACHE PQ_CACHE512 PQ_MEDIUMCACHE PQ_CACHE256 PQ_NORMALCACHE PQ_CACHE64 and newly PQ_CACHE128 should be defined as default. Any ideas? -- Motomichi Matsuzaki Dept. of Biological Sciences, Grad. School of Science, Univ. of Tokyo, Japan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message