From: "T. Daniel Crawford" <crawdad@vt.edu>
To: <axp-list@redhat.com>
Subject: Re: gprof and iprobe
Date: Mon, 15 Jan 2001 11:00:26 -0500 (EST) [thread overview]
Message-ID: <Pine.LNX.4.30.0101151048500.28235-100000@orion.chem.vt.edu> (raw)
In-Reply-To: <ysq66jmjpwl.fsf@therese.dcs.gla.ac.uk>
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
next prev parent reply other threads:[~2001-01-15 16:00 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-01-10 19:52 gprof and iprobe T. Daniel Crawford
2001-01-10 20:43 ` W Bauske
2001-01-10 21:53 ` T. Daniel Crawford
2001-01-10 23:17 ` Michal Jaegermann
2001-01-10 23:48 ` T. Daniel Crawford
2001-01-11 1:15 ` Michal Jaegermann
2001-01-11 6:29 ` W Bauske
2001-01-10 21:51 ` Jeff Sturm
2001-01-11 11:20 ` Rolf Neugebauer
2001-01-15 16:00 ` T. Daniel Crawford [this message]
2001-01-15 17:36 ` Michal Jaegermann
2001-01-15 17:51 ` T. Daniel Crawford
2001-01-15 18:06 ` Michal Jaegermann
2001-01-15 18:11 ` T. Daniel Crawford
2001-01-15 18:18 ` Peter Rival
2001-01-15 18:22 ` T. Daniel Crawford
2001-01-18 1:01 ` Peter Rival
2001-01-15 17:53 ` Uncle George
2001-01-15 22:13 ` W Bauske
2001-01-22 22:37 ` RH 7.0 install on XP1000's Todd Henderson
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox