Gentoo Archives: gentoo-user

From: Wang Xuerui <idontknw.wang@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] How to determine 'Least Common Denominator' between Xen(Server) Hosts
Date: Wed, 14 Aug 2013 06:28:52
Message-Id: CABK5mSb4Nn2KqXiHE6T4npXXZMTMbykGogU3=hPX=Dmr8vO+vg@mail.gmail.com
In Reply to: Re: [gentoo-user] How to determine 'Least Common Denominator' between Xen(Server) Hosts by Helmut Jarausch
1 2013/8/14 Helmut Jarausch <jarausch@××××××××××××××××.de>:
2 > Why not compute it yourself?
3 >
4 > Do cat /proc/cpuinfo on all machines and compute the intersection of all
5 > "flags"
6 > Then enter something like the following into /etc/portage/make.conf
7 >
8 > CFLAGS="-O3 -pipe -msse -msse2 -msse3 -msse4a -m3dnow"
9
10
11 Or even better, directly intersect the GCC flags which can be obtained
12 in this way:
13
14 echo | gcc -O2 -pipe -march=native -E -v - 2>&1 | grep cc1
15
16 Also, according to the Gentoo Handbook going -O3 for the entire system
17 may cause instability and other problems. Has the situation changed
18 over the years?

Replies