* Alpha threads performance
@ 1998-02-24 5:00 Al Kidd
1998-03-01 5:00 ` Gerald A. Feldman
0 siblings, 1 reply; 2+ messages in thread
From: Al Kidd @ 1998-02-24 5:00 UTC (permalink / raw)
I have done some performance testing on a Digital Alpha running Digital
UNIX 4.0. When I compile my test program (which is simply a C++ string
class and a main test program) with the -threads option, it takes up
600% more CPU time than when I omit the -threads option. Note that I am
not doing anything multi-threaded in my test, just using the -threads
switch.
I can uderstand if it were 10% different, but 600% ?!
Does anyone out there who has experience with MT programs on this
platform have any info to share on this situation? Can what I'm seeing
actually be true, or am I completely in the weeds?
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Alpha threads performance
1998-02-24 5:00 Alpha threads performance Al Kidd
@ 1998-03-01 5:00 ` Gerald A. Feldman
0 siblings, 0 replies; 2+ messages in thread
From: Gerald A. Feldman @ 1998-03-01 5:00 UTC (permalink / raw)
> I have done some performance testing on a Digital Alpha running Digital
> UNIX 4.0. When I compile my test program (which is simply a C++ string
> class and a main test program) with the -threads option, it takes up
> 600% more CPU time than when I omit the -threads option. Note that I am
> not doing anything multi-threaded in my test, just using the -threads
> switch.
>
> I can uderstand if it were 10% different, but 600% ?!
>
> Does anyone out there who has experience with MT programs on this
> platform have any info to share on this situation? Can what I'm seeing
> actually be true, or am I completely in the weeds?
When you compile with threads, that makes your program a threaded
application. There is some extra overhead that will be generated. Also,
all the routines in libc are thread-safe, so you get some overhead, such
as the creation of mutexes. Also, there are a signiificant number of
changes to threads between the versions of 4.0.
--
Jerry Feldman <gaf@mediaone.net>
Boston Computer Solutions and Consulting
http://gaf.ne.mediaone.net/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1998-03-01 5:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-02-24 5:00 Alpha threads performance Al Kidd
1998-03-01 5:00 ` Gerald A. Feldman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox