From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII X-Google-Thread: fee84,f6fab0461e859669 X-Google-Attributes: gidfee84,public From: Jeff Denham Subject: Re: 3.2G to 4.0D Benchmark Comparison Date: 1998/06/23 Message-ID: <358FAAE1.B3F5AB47@brighttiger.com>#1/1 X-Deja-AN: 365295440 Content-Transfer-Encoding: 8bit References: <3589219f.4921490@149.174.211.108> <358A6509.29A051FF@brighttiger.com> <358e8086.8128540@149.174.211.108> Content-Type: text/plain; charset=iso-8859-1 Organization: Bright Tiger Technologies MIME-Version: 1.0 NNTP-Posting-Date: Tue, 23 Jun 1998 09:17:09 EDT Newsgroups: comp.unix.osf.osf1 Ron Heiby wrote: > -----BEGIN PGP SIGNED MESSAGE----- > > Jeff Denham wrote: > >Just as an experiement, try using System Contention Scope > >threads, which area first supported in V4.0D. > > Jeff, Thanks much for the great tip! It looks like you were right on > target. Although I haven't yet finished running all of the flavors and > levels of benchmark, the ones I have run have been very close to the > previous performance levels. > > Once you pointed out that this change had happened, I downloaded some of > the 4.0D documentation and found the sections that discuss this change. > Reading the manual, one would never suspect that this would be the cause > of the performance drop I'm seeing. Do you know of any better description > of the pros and cons of one scope vs. the other? I've got the > Norton/Dipasquale "Threadtime" book and the pthreads book from O'Reilley, > and will be diving into them, looking for such a discussion. If you know > of anywhere else, I'd appreciate a pointer. Personally, I think Dave Butenhof's Addison-Wesley book, _Programming_with_POSIX_Threads_ gives you the most bang for your buck. There's a good discussion of contention scope in there. The best discussions of scope has been over the last few months in comp.programming.threads -- check back in time with dejanews.com. Digital threading people contend that PCS threads are the "best" and should be used exclusivley, except for occasional exceptions, usually involving I/O. There are ongoing efforts to reduce the overhead of PCS threads and narrow the performance gap for those special cases (like yours). The next major release of Compaq's Digital UNIX (tm) (probably called V5.0) should look a little better at least. A rule of thumb is of thumb here is to start out with PCS threads (as you did) and only fall back to SCS threads when performance doesn't live up to expectations. BTW, there's no way to make you "main" thread SCS, so you'll always have at least on PCS thread in the mix In the Solaris world, where I've been hanging out the last 6 months or so, SCS threads are used almost exclusively. This came about because of implementation deficiencies in the Solaris 2-level scheduler. Things have gotten a little better in 2.6, but everyone still uses SCS threads. I know I do. __________________________________________________ Jeff Denham (jdenham@brighttiger.com) Bright Tiger Technologies SmartCluster� Software for Distributed Web Servers http://www.brighttiger.com 125 Nagog Park Acton, MA 01720 Phone: (978) 263-5455 x177 Fax: (978) 263-5547