From owner-freebsd-current Sun Feb 7 02:22:54 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id CAA04641 for freebsd-current-outgoing; Sun, 7 Feb 1999 02:22:54 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from apollo.backplane.com (apollo.backplane.com [209.157.86.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id CAA04633 for ; Sun, 7 Feb 1999 02:22:52 -0800 (PST) (envelope-from dillon@apollo.backplane.com) Received: (from dillon@localhost) by apollo.backplane.com (8.9.2/8.9.1) id CAA20800; Sun, 7 Feb 1999 02:22:51 -0800 (PST) (envelope-from dillon) Date: Sun, 7 Feb 1999 02:22:51 -0800 (PST) From: Matthew Dillon Message-Id: <199902071022.CAA20800@apollo.backplane.com> To: "John S. Dyson" , current@FreeBSD.ORG Subject: Re: Significant page coloring improvement References: <199902070901.EAA26213@y.dyson.net> <199902070926.BAA20420@apollo.backplane.com> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG : next_index += PQ_L2_SIZE/4; : if (next_index > PQ_L2_MASK) : next_index = (next_index + 1) & PQ_L2_MASK; Oops, make that: next_index += PQ_L2_SIZE/4; if (next_index > PQ_L2_MASK) next_index = (next_index + PQ_PRIME1) & PQ_L2_MASK; Or even just: next_index = (next_index + PQ_PRIME1) & PQ_L2_MASK; Both seem to work pretty well w/ lmbench, though nothing really sticks its nose out. -Matt Matthew Dillon To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message