From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by listman.redhat.com (Postfix) with ESMTP id B40082F027 for ; Mon, 2 Oct 2000 16:03:12 -0400 (EDT) Received: (from mail@localhost) by mail.redhat.com (8.11.0/8.8.7) id e92D2BQ13481 for axp-list@listman.redhat.com; Mon, 2 Oct 2000 09:02:11 -0400 Received: from alpha-gw.alpha-processor.com (alpha-gw.alpha-processor.com [192.233.59.9]) by mail.redhat.com (8.11.0/8.8.7) with SMTP id e92D2AD13477 for ; Mon, 2 Oct 2000 09:02:11 -0400 Received: from barracuda.alpha-processor.com by alpha-gw.alpha-processor.com via smtpd (for mail.redhat.com [199.183.24.239]) with SMTP; 2 Oct 2000 13:01:35 UT Received: by barracuda.api-networks.com with Internet Mail Service (5.5.2650.21) id ; Mon, 2 Oct 2000 08:32:28 -0400 Message-ID: <051DFF3BBA73D3119A5800A0C95BD021642E6E@barracuda.api-networks.com> From: Rick Gorton To: "'axp-list@redhat.com'" Subject: Kernel performance patch (completed) Date: Mon, 2 Oct 2000 08:32:22 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" X-Loop: axp-list@redhat.com Sender: axp-list-admin@redhat.com Errors-To: axp-list-admin@redhat.com X-BeenThere: axp-list@redhat.com X-Mailman-Version: 2.0beta4 Precedence: bulk Reply-To: axp-list@redhat.com List-Id: Linux and Red Hat on Alpha processors 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