We did :) SS9 changed the default to -xarch=v8plus. So probably just removing the option will be the best bet. That will generate generic code which should give best performance over a range of systems. The exception is if you use -fast, which selects -xtarget=native, which will generate code optimised for the machine doing the compile.
Anyway, in terms of downsides a binary compiled to use v8plus will not run on any pre-UltraSPARC processors. Those are machines around 20 years old. You might want to take a look at this page on PHP performance tuning: http://wikis.sun.com/display/AppPerfTuning/PHP Regards, Darryl. On 01/21/10 13:52, Keith Bierman wrote: > We (for some value of we, as an ex-employee for several years now) > should have done this years ago. > > If there is a need to be completely generic (exactly which shipping > systems in the last 5 years weren't ultra compatible) the appropriate > logic can be put into a .so file and automatically selected either at > runtime or installation time (the former is usually the right approach, > so that a network leveraged binary can work well with whatever client > connects up). > > -----Original Message----- > From: tools-compilers-bounces at opensolaris.org > [mailto:tools-compilers-bounces at opensolaris.org] On Behalf Of Sriram > Natarajan > Sent: Thursday, January 21, 2010 2:23 PM > To: tools-compilers at opensolaris.org > Subject: [tools-compilers] Using -xtarget=ultra2 > > Hi > I maintain php within OpenSolaris and Web Stack PHP for Solaris 10. We > compile this open source application with Sun Studio 12 Update 1 > compiler. > > While measuring performance on SPARC, I noticed that there are > performance to gain (around 10%) by using -xtarget=ultra2 rather than > the current -xtarget=v8 that we use right now. > > I am wondering, if you have any insights and any caveats to be aware of > on enabling such option for Web Stack PHP (which is unbundled and > available for download version from Sun.com/webstack) > > thanks > - Sriram > -- > This message posted from opensolaris.org > _______________________________________________ > tools-compilers mailing list > tools-compilers at opensolaris.org > > ---------------------------------------------------------------------- > The information contained in this transmission may be confidential. Any > disclosure, copying, or further distribution of confidential information is > not permitted unless such privilege is explicitly granted in writing by > Quantum. Quantum reserves the right to have electronic communications, > including email and attachments, sent across its networks filtered through > anti virus and spam software programs and retain such messages in order to > comply with applicable data security and retention requirements. Quantum is > not responsible for the proper and complete transmission of the substance of > this communication or for any delay in its receipt. > _______________________________________________ > tools-compilers mailing list > tools-compilers at opensolaris.org -- Darryl Gove Compiler Performance Engineering Blog : http://blogs.sun.com/d/ Books: http://www.sun.com/books/catalog/solaris_app_programming.xml http://my.safaribooksonline.com/0595352510