Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: "Gerald A. Feldman" <gaf@mediaone.net>
Subject: Re: Alpha threads performance
Date: 1998/03/01	[thread overview]
Message-ID: <34FA100D.E41705EC@mediaone.net> (raw)
In-Reply-To: 34F304E7.6F37@ps.net


> 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/



      reply	other threads:[~1998-03-01  5:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-02-24  5:00 Alpha threads performance Al Kidd
1998-03-01  5:00 ` Gerald A. Feldman [this message]
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