Gentoo Archives: gentoo-user

From: Volker Armin Hemmann <volkerarmin@××××××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Gentoo's advantage: "optimized for your system" -- huh?
Date: Tue, 03 Feb 2009 23:11:43
Message-Id: 200902040010.26237.volkerarmin@googlemail.com
In Reply to: [gentoo-user] Gentoo's advantage: "optimized for your system" -- huh? by Grant Edwards
1 On Dienstag 03 Februar 2009, Grant Edwards wrote:
2 > Whenever I see a write-up of Gentoo, it's describe as a system
3 > similar to BSD "ports" where you build packages from source.
4 > The main benefit claimed for this approach is that you get
5 > better performance because all executables are optimized for
6 > exactly the right instruction set.
7 >
8 > Where did that bit of apocrypha come from, and why is it
9 > parroted by so many people?
10
11 because it was true in the beginning, when most distris were still built for
12 386 and the difference of an optimized built was that you could watch dvd
13 movies without hangs and frame loss.
14
15 It is still true to a certain degree today - code compiled for 386 runs much
16 slower than code compiled for core2 - on a core2. But on todays overpowered
17 cpus you don't see it as prominent as back on k6-2 400 or p3 650 ....
18
19
20 > AFAICT, the "performance" benefit due to compiler optimization
21 > is practically nil in real-world usage.
22
23 nope, they are there. But compiler optimiziations are a very delicate thing.
24 You can't just throw funroll-all-loops into make.conf and think that was it.
25 And for a general set, march is the most important one. It does do a lot of
26 good - the rest is just minor at best.