dcsimg

Gentoo Optimizations Benchmarked – Part 2

Gentoo is a source based distribution which lets the user decide how to optimize their system in many ways and includes building for a specific CPU architecture. linuxdlsazine benchmarks four such options; i486, i686, pentium3, core2, and throws in Ubuntu for good measure.

Gentoo is still the most popular source based distribution, famous for its ports like package management system, portage. It has the ability to build custom binaries from source, based on features specified through USE flags. linuxdlsazine recently provided an overview of the distribution in celebration of its tenth anniversary.

The ability to build from source introduces other possibilities, like optimizing binaries built with GCC. Previously, linuxdlsazine benchmarked three of the most popular GCC optimization levels, namely -Os, -O2 and -O3. The results showed that -Os was often the slowest and that -O2 performed the most consistently.

Now, it’s time to see what can be gained by building an operating system for a specific CPU architecture. Most Linux distributions are built for the lowest common denominator, somewhere between i386 and i686. This helps to ensure that it will run on as many computers as possible. Code which has been built for a specific CPU (such as Intel’s Core 2 Duo) may not run on different systems (when built with GCC’s -march option). Does building a system from scratch for a specific CPU provide any sizeable gains in system performance? Let’s take a look!

Test Setup

The computer system used in these tests has a 3GHz Intel Core2 Duo E8400 CPU, running on an Intel P35 ICH-9 chip-set. In order to accurately compare various CPU compiler options, these tests were all done in a 32-bit environment. Four different CPU optimizations were chosen, namely i486, i686, pentium3 (with mmx and sse support) and core2 (with mmx, sse, sse2, sse3 and sse41 support). The Core2 system was in fact built using GCC’s -march=”native” compiler option, which detects the CPU and applies supported optimizations automatically. The GCC optimization level used for each system was -O2, as this seems to represent the best overall performance, in accordance with our previous findings.

Ubuntu is included for interest’s sake and for basic comparison purposes only. This is not an apples-to-apples comparison. Karmic Koala 9.10 was chosen because it is the current stable version. Each installed system is just the base with any required dependencies for testing, plus X.Org and Xfce4.

The Hardware

Processor: Intel Core 2 Duo CPU E8400 @ 3.00GHz (total cores: 2)
Motherboard: Gigabyte EP35-DS3P
Chipset: Intel 82G33/G31/P35/P31 + ICH9R
System Memory: 3965MB
Disk: 500GB Western Digital WD5001AALS-0
Graphics: GeForce 8800 GT
Monitor: Samsung SyncMaster

Gentoo System

The Gentoo system was built from the testing branch using the same USE flags and packages for each system. For each of the different GCC CPU optimization levels, the system’s tool chain was re-built twice, then the entire system was rebuilt twice and then finally, world. All systems used the same kernel configuration and packages, but were build with the specified GCC optimizations.

Kernel: 2.6.32-gentoo-r5 (i686)
Compiler: GCC 4.4.3
File-System: ext4
Desktop: Xfce 4.7.0
Display Server: X.Org Server 1.7.5
OpenGL: 3.2.0, NVIDIA driver 190.53
Screen Resolution: 1280×1024

The make profile used was x86/10.0 with the following additional USE flags set:
custom-cflags custom-optimizations opengl qt3support sse sse2 threads X

In addition, the pentium3 and core2 system had both the mmx and sse USE flags enabled, with core2 also having sse2 and ssse3.

Ubuntu System

The Ubuntu system ran the following software.

Kernel: 2.6.31-19-generic (i686)
Compiler: GCC 4.4.1
File-System: ext4
Desktop: Xfce 4.6.1
Display Server: X.Org Server 1.6.4
OpenGL: 3.0.0, NVIDIA driver 185.18.36
Screen Resolution: 1280×1024

Next: Testing method

Comments on "Gentoo Optimizations Benchmarked – Part 2"

Hello mates, how is the whole thing, and what you desire tto say on the topic of this post, in my view
its genuinely awesome in support of me.

My blog post … cheap car insurance in pa

WOW just what I was searching for. Came here by searching for cheap car insurance comparison sites

I just like the valuable information you provide inn your articles.
I will bookmark your weblog and take a look at once more here
regularly. I am reasonably certain I’ll be informed majy new stuff right right here!
Good luck for the next!

Check out my blog :: cheap car insurance in pa

Excellent beat ! I would like to apprentice at
the same time as you amend your web site, hhow coul i subscribe for a weblog site?

The account aided me a applicable deal. I had been a little bitt familiar of this your broadcast offered bright transparent concept

Take a lok at my web blog … cheap car insurance

Your means of explaining the whole thing in this article is in fact pleasant, every one can withouut difficulty understand it,
Thanks a lot.

Chesck out my web page: cheap car insurance in sc

Thhis is a topic that is near tto my heart… Best wishes!
Where are your contact details though?

Check out my webpage :: Cheap car insurance

you’re actually a just right webmaster. The website loading pace is incredible.
It kind of feels that you’re doing any unique trick.
Furthermore, The contents are masterwork. you have done a great job on this subject!

My webpage: cheapest car insurance companies

Very nice post. I just stumbled upon our weblog and wished to say that I have
truly enjoyed surfiing around your blo posts. After all
I will be subscribing too your feed and I
hope youu write again soon!

Feel free to visit my website … Cheap Car Insurance

Because the admin of this site is working, no hesitation very
soon it will be renowned, due to its feature contents.

Here is my page: classic car insurance companies

Ahaa, its pleasant discuussion regarding this
piece of writing at this place at this website, I have read
all that, so now me also commenting here.

My blog: Cheap Car Insurance

Hi i am kavin, its my first occasion tto commenting
anywhere, when i read this piece of writung i thought i could alsso make comment due
to thus good piece of writing.

Feel free to surf to my page cheap car insurance in nj

We’re a group of volunteers and starting a new scheme in our community.
Your site provided us with valuable info to
work on. You’ve done an impressive job and our whole community will be thankful to you.

Here is my webpage – classic car insurance companies

Pretty nice post. I just stumbled upon your weblog and wanted to say
that I have truly enjoyed surfing around your blog posts.
After all I’ll bbe subscribing to yur rss feed and I hope you write again very soon!

my web-site; cheap car insurance near me

Hi, I believe your wsbsite could be having browser compatibility issues.
Whenever I take a llook at your site in Safari, itt loks fine but when opening in Internet
Explorer, it’s got some overlapping issues.
I just wanted to give you a quick heads up! Aside from that, wonderful
blog!

Feel free to surf to my weblog :: Cheap Car Insurance

Afer looking intoo a handful of the articles on your site, I honestly appreciate your technique of blogging.
I book-marked it to my bookmark webpage list and will be checking back
soon. Please visit my web sote too and let me know how
you feel.

Review myy web page :: cheap car insurance for teens

You are so awesome! I do not suppose I’ve read through something llike tis before.
So wonderful to find another person with unique thoughts on this
subject matter. Really.. thanks for starting this up.
This website is one thing that is needed on the web, someone with some originality!

Check out my web blog – very cheap car insurance

Hello, Neat post. There is an issue togethedr with your site in web explorer, could
test this? IE nonetheles is the market leader and
a large pportion oof other folks will omt your great writing due to this problem.

Feel free to visit my web page: cheap car insurance

Hi i am kavin, its my first occasio to commentkng anywhere, when i read this article i thought i could also make comment due to this brilliant article.

Have a look at my webpage :: cheap car insurance in michigan

Valuable info. Lucky me I found your website by chance,
and I’m shocked why this twist of fate did nnot took ppace in advance!
I bookmarked it.

My homepage … Cheap Car Insurance

Yes! Finally someone writes about cheap car insurance quotes tthe general.

If you would like too obtain much from this post then you have
to apply these methods to your won web site.

Feeel free to surf to my website: Cheap car insurance

Hello this is kinda of offf topic but I was wondering if blogs use WYSIWYG editors oor if you have to manually code with HTML.

I’m starting a blog soon but have no coding know-how
so I wanted too get advice from someone with experience.
Any help woulkd be enomously appreciated!

Feel free to surf to my blog post – cheap car insurance in michigan

Hmm it looks like your blog ate mmy first comment (it was extremely long) sso I guess I’ll just sum it
up what I submitted and say, I’m thoroughly
enjoying your blog. I too am an aspiring blog blogger but I’m still new to
the wbole thing. Do youu have any recommendations
for beginner blog writers? I’d definitely appreciate it.

My web blog: cheap car insurance in california

Thank you for the auspicious writeup. It inn reality was once a enjoyment account it.

Look advanced to far introduced agreeble from you! By the way, how can wwe be in contact?

Look into my homepage :: Cheap car insurance

I read this article fully regarding the resemblance of newest and previous technologies, it’s awesome
article.

Feel free to surf to myy homepage … cheap car insurance in ma

Keep on working, great job!

Feel free to surf tto my web-site … cheap car insurance in pa

Just desire to say your article is as astonishing.
The clarity in your post is simply nice and i can assume you are an expert on this
subject. Well with your permission allow me to
grab your RSS feed to keep up to date with forthcoming post.

Thanks a million and please keep up the gratifying work.

Here is my weblog cheap car insurance in sc

I value the post. Keep writing.

Great blog article.Really looking forward to read more. Fantastic.

Right here is the perfect web site for anybody who
wishes to understand this topic. You realize a whole lot its
almost tough to argue with you (not that I actually will need to…HaHa).
You definitely put a brand new spin on a subject that’s been written about for years.
Great stuff, just wonderful!

BC?’s CPA in Bangalore Enabnl? Effective Running
of A Business opportunity ?ender. After r?aching my accointant and re?aying my conc?rns, the ne?xt
attribute worth addressing is communication. Studies ?urrentl? have shown which, about average, CPAs eadn 10% more than non-CPA
Accountant?.

My web-site; boca raton Wealth management Firms

Please pay a visit to the web-sites we stick to, which includes this a single, as it represents our picks in the web.

Leave a Reply