Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* Bizarre slowness on AXP OSF/1 V3.2 system
@ 1995-04-05  4:00 Steve Tate
  1995-04-13  4:00 ` Jeffrey M. Denham
  0 siblings, 1 reply; 2+ messages in thread
From: Steve Tate @ 1995-04-05  4:00 UTC (permalink / raw)


I just experienced some weird behavior, and while I managed to fix
my immediate problem, I'm wondering if someone could give me an
explanation as to what was going on.

I wrote a very simple program that included a call to the ceil()
function in the math library.  When I compiled it I forgot the "-lm"
to link with the math library.  

First weird thing:  it didn't flag an error for an undefined symbol.

Next I ran the program.  It actually ran correctly, somehow finding
the correct ceil() function anyway!  So I still didn't realize something
was wrong...  except that it ran very, very slowly.  I timed it,
and here's what I got:

real   199.6
user   21.0
sys    172.7

An absolutely huge amount of system time!  On a later compile, I
remembered the "-lm", and with the math library linked in I got
the following, more reasonable, times:

real   4.4
user   4.2
sys    0.0

So what the hell is going on here?  Does the system look in all libraries
for an undefined function?  And it must be doing something like that for
*every* *single* access to the same function!  That's the only possible
thing I can think of --- is this really what's going on?  Is there
any reason you would *ever* want such bizarre behavior?

--
Steve Tate  ---  srt@cs.unt.edu | "As often as a study is cultivated by narrow
Dept. of Computer Sciences      |  minds, they will draw from it narrow
University of North Texas       |  conclusions."  -- John Stuart Mill, 1865.
Denton, TX  76201               | 



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1995-04-13  4:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-04-05  4:00 Bizarre slowness on AXP OSF/1 V3.2 system Steve Tate
1995-04-13  4:00 ` Jeffrey M. Denham

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox