[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[no subject]



Here is a decent article with good
references about GCC and the optimization
flags though: <a  rel="nofollow" href="http://freshmeat.net/articles/view/730/";>http://freshmeat.net/articles/view/730/</a>

On 11 Feb 2004 22:44:19 -0500
Jeff Hubbs &lt;hbbs at comcast.net&gt; wrote:

&gt; There's another reason why I ask.  I frequently install Gentoo on slow
&gt; machines because a) I want to wring every last bit of performance I can
&gt; out of the hardware available and b) I'm not under time pressure to do
&gt; so :)
&gt; 
&gt; But, according to this, in doing so and accepting the -O3 optimization
&gt; suggested, I may only be hurting myself, ESPECIALLY if after building
&gt; gcc, glibc, etc. in the bootstrap phase with -O3 and subsequently
&gt; compiling everything else with that gcc, it might be taking m hours
&gt; (days?) longer than necessary.
&gt; 
&gt; I'd run tests. but I'd better do it on a CPU from this century or it'll
&gt; take so long I'll forget what I'm testing.
&gt; 
&gt; - Jeff
&gt; 
&gt; On Wed, 2004-02-11 at 22:37, Jeff Hubbs wrote:
&gt; &gt; Can someone explain to me why the -O3 optimization would make programs
&gt; &gt; run *slower*?  In asking, I'm not trying to cast aspersions or challenge
&gt; &gt; the assertion, I'm really only just trying to ask how this is so.
&gt; &gt; 
&gt; &gt; - Jeff
&gt; &gt; 
&gt; &gt; On Wed, 2004-02-11 at 19:23, James Sumners wrote:
&gt; &gt; &gt; Stupid exmh didn't send this with the correct From: address earlier today.
&gt; &gt; &gt; 
&gt; &gt; &gt; &gt;From the November 04, 2003 Debian news
&gt; &gt; &gt; (<a  rel="nofollow" href="http://lists.debian.org/debian-news/debian-news-2003/msg00056.html";>http://lists.debian.org/debian-news/debian-news-2003/msg00056.html</a>):
&gt; &gt; &gt; 
&gt; &gt; &gt;  --- Begin Quote ---
&gt; &gt; &gt;  Debian faster than Gentoo? Matt Garman [2]wondered why his C++
&gt; &gt; &gt;  program ran dramatically slower when compiled on a Gentoo machine than
&gt; &gt; &gt;  when compiled with Debian Sid. He later [3]reported that recompiling
&gt; &gt; &gt;  the Gentoo C++ libraries with less aggressive optimization flags (-O2
&gt; &gt; &gt;  instead of -O3) eliminated the speed difference. Matt also [4]added
&gt; &gt; &gt;  that Debian and other distributions are conservative, but set up by
&gt; &gt; &gt;  very experienced people.
&gt; &gt; &gt; 
&gt; &gt; &gt;   2. <a  rel="nofollow" href="http://article.gmane.org/gmane.linux.gentoo.user/50924";>http://article.gmane.org/gmane.linux.gentoo.user/50924</a>
&gt; &gt; &gt;   3. <a  rel="nofollow" href="http://article.gmane.org/gmane.linux.gentoo.user/50973";>http://article.gmane.org/gmane.linux.gentoo.user/50973</a>
&gt; &gt; &gt;   4. <a  rel="nofollow" href="http://article.gmane.org/gmane.linux.gentoo.user/50953";>http://article.gmane.org/gmane.linux.gentoo.user/50953</a>
&gt; &gt; &gt;  --- End Quote ---
&gt; &gt; &gt; 
&gt; &gt; &gt;  Basically, Red Hat (Fedora) packages are typically compiled in a
&gt; &gt; &gt;  haphazard
&gt; &gt; &gt; fashion in relation to the other packages in the distribution. The
&gt; &gt; &gt; packages in Debian go through an arduous testing process and are built
&gt; &gt; &gt; according to rather strict rules.
&gt; &gt; &gt; 
&gt; &gt; &gt; James Sumners
&gt; &gt; &gt; 
&gt; &gt; &gt; On Wed, 11 Feb 2004 13:12:30 -0500
&gt; &gt; &gt; Keith Morris - IQ &lt;keith at iqtv.com&gt; wrote:
&gt; &gt; &gt; 
&gt; &gt; &gt; &gt; Hi all, just wanted to share a quick experience and get your opinions if
&gt; &gt; &gt; &gt; you are willing.
&gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; I have been using linux off and on since Redhat 5.1 and exclusively for 
&gt; &gt; &gt; &gt; the last 3 years at home.  I have pretty much been a redhat man with no 
&gt; &gt; &gt; &gt; complaints.  I use Fedora Core 1 on my 2 main machines at home (both 
&gt; &gt; &gt; &gt; 1.6GHz).  Well, recently I got a PIII 866 to play with and installed FC1
&gt; &gt; &gt; &gt; on it and the speed was really quite sluggish.  Played with a few more 
&gt; &gt; &gt; &gt; distros which I wasn't really happy with.  Well, I've always been afraid
&gt; &gt; &gt; &gt; of Debian with it's infamous hell-installer, but with it's new Beta 
&gt; &gt; &gt; &gt; installer, I decided to try it.
&gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; After a pretty painless net-install, I was totally shocked with the 
&gt; &gt; &gt; &gt; speed of Debian.  Easily twice as fast as Fedora on the 866 using the 
&gt; &gt; &gt; &gt; *SAME* software (Gnome 2.4, KDE 3.1.5, OpenOffice, Evolution, XFT 
&gt; &gt; &gt; &gt; support, antialiasing, etc.) I still have not gotten the sound working, 
&gt; &gt; &gt; &gt; but believe that I will be able to (with a few posts to the ALE list :))
&gt; &gt; &gt; &gt; The only main difference is that I formatted / with reiserfs instead of 
&gt; &gt; &gt; &gt; ext3 with FC1.
&gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; I was wondering if anyone could guess why debian would be sooooo much 
&gt; &gt; &gt; &gt; faster with basically the same &quot;Desktop&quot; type of configuration? Do many 
&gt; &gt; &gt; &gt; of you use Debian?
&gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; I will probably stick with Debian on this machine to learn about the 
&gt; &gt; &gt; &gt; different ins-and-outs.  I absolutely *love* apt-get for debian.  I have
&gt; &gt; &gt; &gt; used it with rpms on redhat, but it seems better with debs...dunno...
&gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; Anyway, thanks for letting me share.
&gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; Keith Morris
&gt; &gt; &gt; &gt; Creative Director
&gt; &gt; &gt; &gt; Design / Effects
&gt; &gt; &gt; &gt; IQ television group
&gt; &gt; &gt; &gt; <a  rel="nofollow" href="http://www.iqtv.com";>http://www.iqtv.com</a>
&gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; _______________________________________________
&gt; &gt; &gt; &gt; Ale mailing list
&gt; &gt; &gt; &gt; Ale at ale.org
&gt; &gt; &gt; &gt; <a  rel="nofollow" href="http://www.ale.org/mailman/listinfo/ale";>http://www.ale.org/mailman/listinfo/ale</a>
&gt; -- 
&gt; Jeff Hubbs &lt;hbbs at comcast.net&gt;
&gt; 
&gt; _______________________________________________
&gt; Ale mailing list
&gt; Ale at ale.org
&gt; <a  rel="nofollow" href="http://www.ale.org/mailman/listinfo/ale";>http://www.ale.org/mailman/listinfo/ale</a>


-- 

I used to be interested in Windows NT, but the more I see of it the more it
looks like traditional Windows with a stabler kernel. I don't find anything
technically interesting there. In my opinion MS is a lot better at making money
than it is at making good operating systems.  -- Linus Torvalds
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available



</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<!--X-Follow-Ups-End-->
<!--X-References-->
<ul><li><strong>References</strong>:
<ul>
<li><strong><a name="00388" href="msg00388.html">[ale] sharing an experience....debian....</a></strong>
<ul><li><em>From:</em> keith at iqtv.com (Keith Morris - IQ)</li></ul></li>
<li><strong><a name="00404" href="msg00404.html">[ale] sharing an experience....debian....</a></strong>
<ul><li><em>From:</em> james at sumners.ath.cx (James Sumners)</li></ul></li>
<li><strong><a name="00412" href="msg00412.html">-O3 vs. -O2 (was Re: [ale] sharing an experience....debian....)</a></strong>
<ul><li><em>From:</em> hbbs at comcast.net (Jeff Hubbs)</li></ul></li>
<li><strong><a name="00413" href="msg00413.html">-O3 vs. -O2 (was Re: [ale] sharing an experience....debian....)</a></strong>
<ul><li><em>From:</em> hbbs at comcast.net (Jeff Hubbs)</li></ul></li>
</ul></li></ul>
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00414.html">[ale] [Fwd: Internet Cache Usage]</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00411.html">-O3 vs. -O2 (was Re: [ale] sharing an experience....debian....)</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00413.html">-O3 vs. -O2 (was Re: [ale] sharing an experience....debian....)</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00411.html">-O3 vs. -O2 (was Re: [ale] sharing an experience....debian....)</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00410"><strong>Date</strong></a></li>
<li><a href="threads.html#00410"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>

<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>