1 |
On Sun, Dec 18, 2011 at 12:45:27PM +0200, Nikos Chantziaras wrote |
2 |
> |
3 |
> On 12/18/2011 12:34 PM, Walter Dnes wrote: |
4 |
> > |
5 |
> > This was only recently installed. Is it possible that the generic x86 |
6 |
> > code from the initial install was the problem? And that emerging |
7 |
> > system+world got me full optimization? |
8 |
> |
9 |
> Could be. It could also be it's because of "-mfpmath=sse". That's only |
10 |
> used by default on 64-bit. On 32-bit, the FPU is used for floating |
11 |
> point operations by default, which gives better precision (80 bit vs 64 |
12 |
> bit) but slower speed. |
13 |
> |
14 |
> But then again, that sounds too much of a performance difference. So if |
15 |
> I had to guess, I'd say it's because of the world rebuild that made sure |
16 |
> everything was built with proper optimizations. |
17 |
|
18 |
It's probably the sum total of the effect of all the flags. I've |
19 |
renamed the thread, to be more accurate. Here's how things went... |
20 |
|
21 |
* right after the install (presumably with generic i686 code) the PC |
22 |
could not handle streaming 1080i video from my HDHomerun TV tuner |
23 |
|
24 |
* I misinterpreted output from gcc diagnostics, and concluded that |
25 |
"march=-native" left several flags disabled that shouldn't be |
26 |
|
27 |
* acting on that (mis)information), I emerged system+world+kernel and |
28 |
found that not only could my system handle 1080i, it could handle a |
29 |
1080p Youtube clip without problems, after a lot of buffering. My 5 |
30 |
megabit ADSL connection was the limiting factor there. It's supposed |
31 |
to be upgraded to 6 megabits one of these days, for some minor |
32 |
improvement. |
33 |
|
34 |
* I mistakenly thought that it was the additional flags in CFLAGS during |
35 |
the emerge system+world that boosted the video. Actually, the emerge |
36 |
would've done the trick. |
37 |
|
38 |
The lesson from this is that, before doing any benchmarking or |
39 |
heavy-duty usage, one should emerge system+world, to replace the generic |
40 |
code from the install CD with fully optimized code. It's easiest to so |
41 |
right after the initial install, so that there are as few packages to |
42 |
emerge as possible. |
43 |
|
44 |
-- |
45 |
Walter Dnes <waltdnes@××××××××.org> |