From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,34be97f3b6a6d0ef X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1993-03-01 03:50:37 PST Path: sparky!uunet!tis.com!mjr From: mjr@tis.com (Marcus J Ranum) Newsgroups: comp.sys.dec Subject: Re: MIPS/SGI software for MIPS DECstations? Date: 28 Feb 1993 17:55:48 GMT Organization: Trusted Information Systems, Inc. Message-ID: <1mqub4INN3o5@sol.tis.com> References: <2171@niktow.canisius.edu> NNTP-Posting-Host: sol.tis.com pavlov@niktow.canisius.edu (Greg Pavlov) writes: > > SGI has always seemed to get better (sometimes MUCH better) systems perfor- > mance from a given MIPS processor than DEC. Don't know if it's the soft- > ware, better support hardware, or a combination of both ..... Sometimes it's as simple as running under the latest/greatest version of the compiler. I was once involved in benchmarking a DECsystem500/240 against an SGI Indigo. By clock and processor speeds, the 5000/240 should have been a tad under twice as fast. First time we ran the benchmark the SGI was 6 times faster. A little pixiefying identified malloc() as the culprit and once that was replaced with the BSD version, the systems ran with the 5000/240 showing a slight edge. Further experiments with pixie indicated that the 5000/240 was executing an average of 1.7 instructions for every 1 that the SGI did. This was more or less across the board, including in the C support libraries. A simple call to fprintf() on the SGI [an isolated case I measured] used almost half as many instructions. Pretty depressing. The DECsystems's compiler was a rev behind the SGI machine - I don't know if that was the sole cause of the difference. The net effect was that the DECsystem was a faster box but was wasting most of its energy. IMHO, too many vendors neglect software tuning in favor of just making faster boxes. Investing money in optimising the C library pays off across the entire product line. Most vendors focus on kernel optimizations, which is good, but there's still a lot of room for improvement! I once suggested building a system with some form of profiling support for all C library routines. You count the number of cycles system-wide that are spent in a given routine, and let the machine run under normal workload for a month or two. Then identify the top functions in cycle usage overall and rework them or tune the assembler, or whatever. If my experience in the benchmark is any indication, a well-tuned c library is worth a clock speedup. ;) Pyramid, back in the 9020 days, used to do this, and would re-write the "hot" C library and FORTRAN library routines in assembler. mjr.