From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,fd3989f591c2e4e6 X-Google-Attributes: gidfee84,public From: "Gerald A. Feldman" Subject: Re: Alpha threads performance Date: 1998/03/01 Message-ID: <34FA100D.E41705EC@mediaone.net>#1/1 X-Deja-AN: 329866837 Content-Transfer-Encoding: 7bit References: <34F304E7.6F37@ps.net> Content-Type: text/plain; charset=us-ascii Organization: Boston Computer Solutions and Consulting Mime-Version: 1.0 Newsgroups: comp.unix.osf.osf1 > 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 Boston Computer Solutions and Consulting http://gaf.ne.mediaone.net/