Subject: Re: Compiler Optimisation (was RE: pkgscr installation)
To: Gary Parker <G.J.Parker@lboro.ac.uk>
From: David Brownlee <abs@NetBSD.org>
List: port-sparc
Date: 04/19/2005 14:33:45
On Tue, 19 Apr 2005, Gary Parker wrote:

>> -----Original Message-----
>> From: Marcus Franke [mailto:marcus.franke@gmx.net]
>> Sent: 19 April 2005 13:58
>> To: Gary Parker
>> Subject: Re: pkgscr installation
>>
>> Hi Gary,
>>
>> I am relativ new to this kind of hardware, how can I find out
>> which kind of processor, its just one, works inside my box.
>>
>> Ok, I could open it up and have a look on the processor card,
>> but without shutting it down?
>
> Okay, run:
>
> dmesg | grep cpu
>
> And examine the output, I get the following on my 2 CPU system:
>
> cpu0 at mainbus0: mid 8: RT620/625 @ 150 MHz, on-chip FPU
> cpu0: 512K byte write-back, 32 bytes/line, sw flush: cache enabled
> cpu1 at mainbus0: mid 10: RT620/625 @ 150 MHz, on-chip FPU
> cpu1: 512K byte write-back, 32 bytes/line, sw flush: cache enabled
> cpu0: booting secondary processors: cpu1
>
> The pertinent information is the 'RT620/625 @ 150 MHz' telling me that I
> have an RT620/625 running at 150 MHZ (two, in fact).
>
> Look up your CPU type (either RT*, HS*, SM* or CY*) on this page:
>
> http://mbus.sunhelp.org/modules/
>
> and determine what family your CPU is from and, hence, what optimisation you
> need to apply, it will be either supersparc or hypersparc.
>
> The reason for doing all this is that (amongst other things) some SPARC
> processors have better FPU instructions than others and by default the
> software on install CDs is compiled for the lowest common denominator.
> You'll particularly notice a speed improvement in SSL and SSH operations. If
> you've got the time, inclination and disk space it's also worthwhile doing a
> full build world with your optimised compiler settings.

 	You may also want to look at pkgsrc/devel/cpuflags

-- 
 		David/absolute       -- www.NetBSD.org: No hype required --