Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Kernel performance patch (completed)
@ 2000-10-02 12:32 Rick Gorton
  2000-10-09 18:34 ` RH 7.0 Speedracer
  0 siblings, 1 reply; 4+ messages in thread
From: Rick Gorton @ 2000-10-02 12:32 UTC (permalink / raw)
  To: 'axp-list@redhat.com'

I've finally completed (and characterized) an ev6-specific set of Linux
kernel
performance improving code.  The changes are in tarball form at:
http://www.alpha-processor.com/products/downloads/developer_support/
	kernelperf.tar.gz

This is a set of replacement routines for code in:
	linux-2.4.0-test6/arch/alpha/lib
	linux-2.4.0-test6/include/asm-alpha

These routines have not been back-ported to the 2.2 kernel - is there anyone
out there interested and willing to undertake that?

Performance summary: Using these patches results in a _system_ time speedup
of
	40% when doing kernel builds, and 15% to 20% when doing gcc builds.

Technical summary: The code changes can be described as:
	1) Stall prevention - reschedule the existing 21164 tuned code to
	   run well on 21264, minimizing processor stalls
	2) Use 21264-specific features where relevant (wh64, cttz)
	3) Re-write some code sequences into slightly
	   faster versions (byte swapping, ip checksums)

Enjoy,

	Rick Gorton
	rick.gorton@alpha-processor.com

The performance data details:

The system:
	UP1000, 700 Mhz 21264 w/128 Mb of memory.
	RedHat 6.2 installed; 2.4.0-test6 kernel
	All compiles were performed with egcs-2.91.66, with the output
		writes all going to local disk.

Characterization:
	Test loads: 5 runs each of
	1) make boot of the 2.4.0-test6 kernel
	2) make -j 2 boot of the 2.4.0-test6 kernel
	3) make -j 4 boot of the 2.4.0-test6 kernel
	4) make -j 8 boot of the 2.4.0-test6 kernel

	5) make of gcc-2.95.2
	6) make -j 2 of gcc-2.95.2
	7) make -j 4 of gcc-2.95.2
	8) make -j 8 of gcc-2.95.2

	Measurement comparison:
	System time was compared for each test load (/usr/bin/time -p),
while running
	a) an 'straight-up' kernel (2.4.0-test6) without the performance
changes
	b) a patched kernel (again, 2.4.0-test6) with all of these changes.

The data:

Kernel	boot			-j 2 boot		-j 4 boot
-j 8 boot
-------	--------------	--------------	--------------	--------------
Patched	18,18,18,18,18	19,18,18,18,18	19,18,18,19
25,25,26,26,26
Base		25,25,25,25		26,26,25,25,26	26,26,26,26,27
34,33,37,37,34
Speedup	38%			44%			~40%
~40%

gcc 		make			make -j 2		make -j 4
make -j 8
-------	--------------	--------------	--------------	--------------
Patched	63,64,64,64,63	46,47,47,48,48	53,52,52,51		63,61,60
Base		75,74,73,73,74	59,58,57,57,57	62,63,62,61
69,74
Speedup	19%			23%			19%
~16%

Notes: gcc make -j 4 fails occasionally;
	gcc make -j 8 fails nearly 50% of the time




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2000-10-17 13:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-10-02 12:32 Kernel performance patch (completed) Rick Gorton
2000-10-09 18:34 ` RH 7.0 Speedracer
2000-10-09 20:44   ` Speedracer
2000-10-17 13:35   ` Matt Wilson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox