From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1NY9rg-0004Qn-7H for garchives@archives.gentoo.org; Fri, 22 Jan 2010 03:07:16 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 101A6E062C; Fri, 22 Jan 2010 03:06:24 +0000 (UTC) Received: from mail-ew0-f215.google.com (mail-ew0-f215.google.com [209.85.219.215]) by pigeon.gentoo.org (Postfix) with ESMTP id B1545E062C for ; Fri, 22 Jan 2010 03:06:23 +0000 (UTC) Received: by ewy7 with SMTP id 7so794701ewy.10 for ; Thu, 21 Jan 2010 19:06:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :x-enigmail-version:content-type:content-transfer-encoding; bh=eEQphtglYIQ/tfhyhsHE7loDizsBf8dWlWATXhe27xA=; b=s9D+j95gXht3xKn+BIdAPwRmCmLW1K81V02/gfSqi6so/CIoWIrgnFTX+YHbVto3Ca nyTxRbr7N9n7CXyeXGW6I5Sr6W5PXRJK4b8bpxGsj5t1elF24lRmKMnKdZm32KAvuh+1 dIUPZ1HjzZaAgwgeEUt1Y8SCe3ztRdiCuqDSs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; b=DyBYjacpsjCh+xCz/ztT9DEWFpUohTe+55z1WJVoh820WFUmpGPMCRRVhW/bNrraLc 4llmp38yl/TSyqksM5BM+r83/TyqmegWnNxVePEgu/5NrwjJ+yRiHPhr+lBLLnYSM+G8 OuNbw4OD/ZMknMOfs5BoMxU9QFaCNJEhIE+g4= Received: by 10.213.96.198 with SMTP id i6mr2207467ebn.10.1264129583107; Thu, 21 Jan 2010 19:06:23 -0800 (PST) Received: from ?192.168.0.5? (203-219-96-97.static.tpgi.com.au [203.219.96.97]) by mx.google.com with ESMTPS id 14sm1426435ewy.7.2010.01.21.19.06.19 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 21 Jan 2010 19:06:21 -0800 (PST) Message-ID: <4B591613.9040801@gmail.com> Date: Fri, 22 Jan 2010 14:05:55 +1100 From: Lie Ryan User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.5) Gecko/20100112 Thunderbird/3.0 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-amd64@lists.gentoo.org Reply-to: gentoo-amd64@lists.gentoo.org MIME-Version: 1.0 To: gentoo-amd64@lists.gentoo.org Subject: Re: [gentoo-amd64] Please suggest settings and flags in /etc/make.conf? References: <5bdc1c8b1001211644x1180c8e5rce41df03c75d27f2@mail.gmail.com> In-Reply-To: <5bdc1c8b1001211644x1180c8e5rce41df03c75d27f2@mail.gmail.com> X-Enigmail-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Archives-Salt: 094f6048-297b-489b-96aa-4fef719091fc X-Archives-Hash: 3e522cf08fd4d775bac12b6f49012bae On 01/22/10 11:44, Mark Knecht wrote: > I'm just installing Gentoo on my first new machine in years. Can > anyone suggest which of the CPU flags below might best be added to > make.conf? The machine will be a standard desktop running rt-sources > and stable Gentoo. > > This processor is 2 physical cores with hyperthreading enabled in each core. > > Currently make.conf has only the standard stuff other than me adding > the MAKEOPTS line: > > # These settings were set by the catalyst build script that automatically > # built this stage. > # Please consult /usr/share/portage/config/make.conf.example for a more > # detailed example. >q CFLAGS="-O2 -pipe" > CXXFLAGS="-O2 -pipe" You might want to add "-march=" flag to CFLAGS and CXXFLAGS. See http://en.gentoo-wiki.com/wiki/Safe_Cflags > # WARNING: Changing your CHOST is not something that should be done lightly. > # Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing. > CHOST="x86_64-pc-linux-gnu" As the warning said, there is nearly no good reason to change CHOST. > # These are the USE flags that were used in addition to what is provided by the > # profile used for building. > USE="mmx sse sse2" No one size fits all, only you can decide the best USE flags combination for your use. You probably wouldn't know the USE flags to use until you emerged some programs. Before emerging, look at the USE flags and decide whether you will need the feature activated by the flag, and whether you want to activate the USE flags globally (add here) or locally for the specific package (in /etc/portage/package.use). You may want to look at /usr/portage/profiles/use.desc > MAKEOPTS="-j5" You might want to add your SYNC and GENTOO_MIRRORS options. Use the mirrorselect program to choose the server to use. If you're going to use GUI with X, you might want to add VIDEO_CARDS and INPUT_DEVICES variable. Add the graphic and input driver you're using there. Most emerges takes a long time; you most likely want to make portage a low priority process so they does not disturb your daily work. Use PORTAGE_NICENESS and PORTAGE_IONICE_COMMAND variable. The FEATURES variable can set some useful optional portage features. Look at "man make.conf" for valid options. Some options can speed up compiling, others may increase security. Some of the most useful FEATURES: - ccache: you'll need to emerge dev-utils/ccache and tune the CCACHE_SIZE - parallel-fetch: the name describes best - test: runs "make check" for packages that have them and fail the install when the test don't pass. Be aware that quite a lot of package is shipped with failed tests. You may want to add "--keep-going" when emerging a large number of packages. - userfetch, usersandbox, usersync: these may add a little bit of security. See "man make.conf" for more options > > > Thanks, > Mark > > > processor : 3 > vendor_id : GenuineIntel > cpu family : 6 > model : 37 > model name : Intel(R) Core(TM) i5 CPU 661 @ 3.33GHz > stepping : 2 > cpu MHz : 3325.050 > cache size : 4096 KB > physical id : 0 > siblings : 4 > core id : 2 > cpu cores : 2 > apicid : 5 > initial apicid : 5 > fpu : yes > fpu_exception : yes > cpuid level : 11 > wp : yes > flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge > mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe > syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good > xtopology nonstop_tsc pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 > ssse3 cx16 xtpr pdcm sse4_1 sse4_2 aes lahf_lm ida tpr_shadow vnmi > flexpriority ept vpid > bogomips : 6649.95 > clflush size : 64 > cache_alignment : 64 > address sizes : 36 bits physical, 48 bits virtual > power management: >