Subject: yamt-pdpolicy benchmark
To: None <tech-kern@netbsd.org>
From: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
List: tech-kern
Date: 03/14/2006 00:40:20
hi,

i've done a simple benchmark for yamt-pdpolicy branch and put the result at:

	ftp://ftp.netbsd.org/pub/NetBSD/misc/yamt/4/pgbench.ps.gz

(i chose postgres because LIRS wins for the workload,
according to the paper. :-)

it's basically:

	for y in 71 72 73; do
		for x in $(seq 1 30); do
			pgbench -S -c $x -t 100 bench
		done > $y.txt
	done

x-axis is $x-1.
y-axis is "tps = xxx (excluding connections establishing)".

there are three kernels, "clock", "clock.type", "cp".
all of them are built from the same sources.

- "clock" is a kernel without PDPOLICY_CLOCKPRO,
  with the following sysctl settings.
	vm.anonmin=0
	vm.execmin=0
	vm.filemin=0
	vm.anonmax=100
	vm.execmax=100
	vm.filemax=100
	vm.inactivepct=90

- "clock.type" is the same kernel as "clock",
  with default sysctl settings.

- "cp" is a kernel with PDPOLICY_CLOCKPRO.

the machine is XENU with 40MB domain memory.
postgres is "postgresql80-8.0.5" from pkgsrc, with no tweaks.

it's interesting that the first run of "cp" is slow.
maybe it's because it takes some time to identify hot pages,
but i'm not sure.

YAMAMOTO Takashi