Date: Mon, 07 Jun 1999 10:25:15 -0700 (PDT) From: John Polstra <jdp@polstra.com> To: Hidetoshi Shimokawa <simokawa@sat.t.u-tokyo.ac.jp> Cc: freebsd-alpha@FreeBSD.org, jdp@FreeBSD.org Subject: Re: cvs commit: src/lib/csu/alpha crtbegin.c Message-ID: <XFMail.990607102515.jdp@polstra.com> In-Reply-To: <14171.60400.466517.68187Y@ett.sat.t.u-tokyo.ac.jp>
next in thread | previous in thread | raw e-mail | index | archive | help
Hidetoshi Shimokawa wrote: > I noticed that some large dynamic linked program is slow on alpha. ... > 2) run 'LD_DEBUG=yes /usr/libexec/elf/gdb' > ... > ... > "malloc" in "gdb" ==> 0x1602a9580 in "libc.so.3" > where (0x120187bc0) 0x1602a9580 -> 0x1602a9580 > "malloc" in "gdb" ==> 0x1602a9580 in "libc.so.3" > where (0x120187bc0) 0x1602a9580 -> 0x1602a9580 > "memcpy" in "gdb" ==> 0x1602a9c40 in "libc.so.3" > where (0x120187bb8) 0x1602a9c40 -> 0x1602a9c40 > "malloc" in "gdb" ==> 0x1602a9580 in "libc.so.3" > where (0x120187bc0) 0x1602a9580 -> 0x1602a9580 > "malloc" in "gdb" ==> 0x1602a9580 in "libc.so.3" > where (0x120187bc0) 0x1602a9580 -> 0x1602a9580 > "malloc" in "gdb" ==> 0x1602a9580 in "libc.so.3" > where (0x120187bc0) 0x1602a9580 -> 0x1602a9580 > "memcpy" in "gdb" ==> 0x1602a9c40 in "libc.so.3" > where (0x120187bb8) 0x1602a9c40 -> 0x1602a9c40 > "malloc" in "gdb" ==> 0x1602a9580 in "libc.so.3" > ... > ... > > I think rewriting jump slot should be once for each function. I agree, something is very wrong. This could have a huge impact on performance. It means there is a symbol lookup for _every_ external function call. I'll look for the problem as soon as I can -- but probably not until after USENIX. > This problem seems still exist after make world with this commit. Yes, my commit wouldn't affect it. Thanks for finding this problem! John --- John Polstra jdp@polstra.com John D. Polstra & Co., Inc. Seattle, Washington USA "Self-interest is the aphrodisiac of belief." -- James V. DeLong To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.990607102515.jdp>