Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 7 Feb 1999 02:22:51 -0800 (PST)
From:      Matthew Dillon <dillon@apollo.backplane.com>
To:        "John S. Dyson" <dyson@iquest.net>, current@FreeBSD.ORG
Subject:   Re: Significant page coloring improvement
Message-ID:  <199902071022.CAA20800@apollo.backplane.com>
References:  <199902070901.EAA26213@y.dyson.net> <199902070926.BAA20420@apollo.backplane.com>

next in thread | previous in thread | raw e-mail | index | archive | help

:	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 
					<dillon@backplane.com>

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



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