Gentoo Archives: gentoo-amd64

From: Lie Ryan <lie.1296@×××××.com>
To: gentoo-amd64@l.g.o
Subject: Re: [gentoo-amd64] Please suggest settings and flags in /etc/make.conf?
Date: Fri, 22 Jan 2010 03:07:16
Message-Id: 4B591613.9040801@gmail.com
In Reply to: [gentoo-amd64] Please suggest settings and flags in /etc/make.conf? by Mark Knecht
1 On 01/22/10 11:44, Mark Knecht wrote:
2 > I'm just installing Gentoo on my first new machine in years. Can
3 > anyone suggest which of the CPU flags below might best be added to
4 > make.conf? The machine will be a standard desktop running rt-sources
5 > and stable Gentoo.
6 >
7 > This processor is 2 physical cores with hyperthreading enabled in each core.
8 >
9 > Currently make.conf has only the standard stuff other than me adding
10 > the MAKEOPTS line:
11 >
12 > # These settings were set by the catalyst build script that automatically
13 > # built this stage.
14 > # Please consult /usr/share/portage/config/make.conf.example for a more
15 > # detailed example.
16 >q CFLAGS="-O2 -pipe"
17 > CXXFLAGS="-O2 -pipe"
18
19 You might want to add "-march=" flag to CFLAGS and CXXFLAGS. See
20 http://en.gentoo-wiki.com/wiki/Safe_Cflags
21
22 > # WARNING: Changing your CHOST is not something that should be done lightly.
23 > # Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
24 > CHOST="x86_64-pc-linux-gnu"
25
26 As the warning said, there is nearly no good reason to change CHOST.
27
28 > # These are the USE flags that were used in addition to what is provided by the
29 > # profile used for building.
30 > USE="mmx sse sse2"
31
32 No one size fits all, only you can decide the best USE flags combination
33 for your use. You probably wouldn't know the USE flags to use until you
34 emerged some programs. Before emerging, look at the USE flags and decide
35 whether you will need the feature activated by the flag, and whether you
36 want to activate the USE flags globally (add here) or locally for the
37 specific package (in /etc/portage/package.use).
38
39 You may want to look at /usr/portage/profiles/use.desc
40
41 > MAKEOPTS="-j5"
42
43
44
45 You might want to add your SYNC and GENTOO_MIRRORS options. Use the
46 mirrorselect program to choose the server to use.
47
48 If you're going to use GUI with X, you might want to add VIDEO_CARDS and
49 INPUT_DEVICES variable. Add the graphic and input driver you're using there.
50
51 Most emerges takes a long time; you most likely want to make portage a
52 low priority process so they does not disturb your daily work. Use
53 PORTAGE_NICENESS and PORTAGE_IONICE_COMMAND variable.
54
55 The FEATURES variable can set some useful optional portage features.
56 Look at "man make.conf" for valid options. Some options can speed up
57 compiling, others may increase security. Some of the most useful FEATURES:
58 - ccache: you'll need to emerge dev-utils/ccache and tune the CCACHE_SIZE
59 - parallel-fetch: the name describes best
60 - test: runs "make check" for packages that have them and fail the
61 install when the test don't pass. Be aware that quite a lot of package
62 is shipped with failed tests. You may want to add "--keep-going" when
63 emerging a large number of packages.
64 - userfetch, usersandbox, usersync: these may add a little bit of security.
65
66 See "man make.conf" for more options
67
68 >
69 >
70 > Thanks,
71 > Mark
72 >
73 >
74 > processor : 3
75 > vendor_id : GenuineIntel
76 > cpu family : 6
77 > model : 37
78 > model name : Intel(R) Core(TM) i5 CPU 661 @ 3.33GHz
79 > stepping : 2
80 > cpu MHz : 3325.050
81 > cache size : 4096 KB
82 > physical id : 0
83 > siblings : 4
84 > core id : 2
85 > cpu cores : 2
86 > apicid : 5
87 > initial apicid : 5
88 > fpu : yes
89 > fpu_exception : yes
90 > cpuid level : 11
91 > wp : yes
92 > flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
93 > mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe
94 > syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good
95 > xtopology nonstop_tsc pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2
96 > ssse3 cx16 xtpr pdcm sse4_1 sse4_2 aes lahf_lm ida tpr_shadow vnmi
97 > flexpriority ept vpid
98 > bogomips : 6649.95
99 > clflush size : 64
100 > cache_alignment : 64
101 > address sizes : 36 bits physical, 48 bits virtual
102 > power management:
103 >

Replies