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 3B9462F089 for ; Mon, 15 Jan 2001 11:00:28 -0500 (EST) Received: (from mail@localhost) by mail.redhat.com (8.11.0/8.8.7) id f0FG0W328052 for axp-list@listman.redhat.com; Mon, 15 Jan 2001 11:00:32 -0500 Received: from orion.chem.vt.edu (IDENT:root@orion.chem.vt.edu [128.173.180.103]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f0FG0Vv28048 for ; Mon, 15 Jan 2001 11:00:31 -0500 Received: from localhost (crawdad@localhost) by orion.chem.vt.edu (8.11.0/8.11.0) with ESMTP id f0FG0Qg28430 for ; Mon, 15 Jan 2001 11:00:26 -0500 X-Authentication-Warning: orion.chem.vt.edu: crawdad owned process doing -bs Date: Mon, 15 Jan 2001 11:00:26 -0500 (EST) From: "T. Daniel Crawford" X-Sender: To: Subject: Re: gprof and iprobe In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Hi, all, Several members of this mailing list have helped me considerably in my efforts to compile and optimize some numerically intensive scientific Fortran code on my new alpha Linux workstations. I thought perhaps some of you might be interested in the current state of this effort and some interesting problems I have encountered with the CXML provided by Compaq. Once I had my code up and running, I ran some benchmarks and noticed a substantial difference in its performance under alpha Linux (AL) vs. Tru64. Here's some output from my "time" command: Tru64: 257.027u 3.176s 4:29.85 96.4% 0+1336k 101+18143io 94pf+0w AL: 256.284u 209.641s 7:46.35 99.9% 0+0k 0+0io 0pf+0w Note the gigantic difference in system and wall timings. This calculation requires only about 3% of the real memory on this machine. Note also that I am using the Compaq compilers on both systems with identical optimization flags and the Compaq Extended Math Library (CXML). (The tcsh time command apparently can't report page faults, I/O or memory use yet.) Using a hacked version of iprobe that Jeff Sturm got running on my (EV67) system, I was able to determine that almost all the time difference between AL and Tru64 was in the kernel's virtual memory system. Here's some iprobe output for a "cyclesa" event with the above benchmark: Sample Image Total Name Count Pct Pct ---- ----- --- --- /home/users/aces2/alphaev6-unknown-linux-gnu/bin/xvcc 178362 52.3 icopy_ 32960 18.5 9.7 symtr3_ 7310 4.1 2.1 dgemm_nn 28550 16.0 8.4 dgemm_nt 31551 17.7 9.3 dgemm_tn 7438 4.2 2.2 dgemm_tt 14562 8.2 4.3 vmlinux 162618 47.7 entMM 7252 4.5 2.1 schedule 7925 4.9 2.3 do_anonymous_page 83341 51.2 24.4 __get_free_pages 9329 5.7 2.7 __invalidate_buffers 10335 6.4 3.0 The kernel is taking up nearly 50% of the total cycles!! Another list member, Wes Bauske, noted that some problems with the CXML and Linux memory management were once discussed on this list. So, I grabbed the University of Tenneessee's Atlas Project code in order to have a fast replacement for the matrix-matrix multiplication routines (part of the BLAS library) on which my code depends quite heavily. Here's the new timing: Tru64: 257.027u 3.176s 4:29.85 96.4% 0+1336k 101+18143io 94pf+0w AL: 260.141u 100.795s 6:05.01 98.8% 0+0k 0+0io 0pf+0w There is clearly a substantial improvement in the code's performance using the ATLAS BLAS over the CXML. However, I'm still far from satisfied with such a large system time. The kernel is still taking up a lot of the total run time, so even ATLAS is not perfect in its interaction with the VM system. (Note that these timings basically the same between the 2.2.17 and 2.4.0 kernels.) The bottom line: there are definitely problems with the CXML when its BLAS routines are used under alpha Linux, particularly with the memory management code in the kernel. ATLAS provides improvement over the CXML, but is still far from optimal. I'm now trying to see if I can play with the kernel's paging parameters (under /proc/sys/vm) to see if the timings change at all, but I am a real novice with the kernel, so this is all trial and error. If anyone has any additional thoughts or experience in this arena, I would be most appreciative of your advice. -Daniel -- T. Daniel Crawford Department of Chemistry crawdad@vt.edu Virginia Tech www.chem.vt.edu/chem-dept/crawford Voice: 540-231-7760 FAX: 540-231-3255