[Linux-ia64] What's taking all the system time..?

From: Duraid Madina <Duraid_at_unsw.edu.au>
Date: 2002-01-30 16:48:36
Hi guys,

	I've got a big (production) code that depends on a simple 'graph'
library in C++. To try it out on Itanium, I stripped it down and whipped up
a tiny 'benchmark' of the graph library. When I tried this on an Itanium
system here (2.4.9-SMP, gcc/g++ 2.96/3.0.3 and intel c++ 6.0) the code runs
for about 30 seconds, 20 of which is reported as 'system' time. The thing
is, this is (supposed to be) a CPU-bound job: on my home x86 system, it runs
in about 3 seconds, and with negligible system time.

	'top' and 'time' show the gobs of system time being used, but
'strace' picks up nothing out of the ordinary (0.014 seconds system time,
dominated by calls to brk() (this is expected).

	I'm hoping someone with a spare moment could try and reproduce this,
and perhaps let me know what's going on? Right now, I'm guessing libc
brokenness on ia64, but perhaps it's VM suckage? :\ Alas, on the box I have
access to, I can't profile the code because adding -pg when compiling leads
to a binary that segfaults at startup (ditto with the Intel compiler, so i'm
guessing the profile libraries are borked).

	You can grab the source (18kB) here:

	http://www.idesign.fl.net.au/why_systime/why_systime.tar.gz

	just 'make' (be sure 'gcc' and 'g++' point to a recent enough
version of gcc/g++ - preferably 3.0 or later) and then run 'a.out'.

	Lost,

	Duraid
Received on Tue Jan 29 21:58:26 2002

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:07 EST