From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id CF17A138334 for ; Sat, 8 Dec 2018 17:49:23 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5A2CDE0B11; Sat, 8 Dec 2018 17:49:16 +0000 (UTC) Received: from mailsrv7.linznet.at (mailsrv7.linznet.at [80.66.43.152]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id BDCFCE09AD for ; Sat, 8 Dec 2018 17:49:15 +0000 (UTC) Received: from mail.linznet.at (mail.linznet.at [80.66.32.32]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mailsrv7.linznet.at (Postfix) with ESMTPS id C10D441273 for ; Sat, 8 Dec 2018 18:49:13 +0100 (CET) Received: (qmail 14457 invoked from network); 8 Dec 2018 17:49:13 -0000 Received: from be-9b-bb-d-c3.91-142-26-35.cust.kabelspeed.at (HELO puchmayr.linznet.at) (91.142.26.35) by mail.linznet.at with ESMTPS (DHE-RSA-AES256-SHA encrypted); 8 Dec 2018 17:49:13 -0000 Received: (qmail 4131 invoked by uid 210); 8 Dec 2018 17:49:12 -0000 Received: from zeus.local by persephone (envelope-from , uid 201) with qmail-scanner-2.05st (clamdscan: 0.97.3/14948. spamassassin: 3.3.2. perlscan: 2.05st. Clear:RC:1(192.168.1.2):. Processed in 0.150948 secs); 08 Dec 2018 17:49:12 -0000 Received: from zeus.local (HELO zeus.localnet) (192.168.1.2) by smtp.local with SMTP; 8 Dec 2018 17:49:12 -0000 From: Alexander Puchmayr To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] CPU upgrade and LVM questions. Date: Sat, 08 Dec 2018 18:49:26 +0100 Message-ID: <1806505.2jTXcQcuRp@zeus> In-Reply-To: <492d8bf4-4b8d-f7f6-05d8-2473b6825fab@gmail.com> References: <492d8bf4-4b8d-f7f6-05d8-2473b6825fab@gmail.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Archives-Salt: 1845c540-c3a6-4f61-82ca-cb597ca45a86 X-Archives-Hash: 9d84aff1144fd04a4b1c86ba407e6b8e Am Donnerstag, 6. Dezember 2018, 10:27:31 CET schrieb Dale: > Howdy, > > I mentioned in other threads that I'm doing some upgrades to my system. > My first question is about a CPU upgrade. I currently have this for my > CPU, from cpuinfo: > > AMD Phenom(tm) II X4 955 Processor > > I've bought but not yet installed a FX-8350 CPU. I have this in my > make.conf file: > > CFLAGS="-march=native -O2 -pipe" Compiling the whole system with -march=native might lead to troubles, especially when doing a CPU change. This option means that gcc is determining the type of CPU automatically and adjusts the instruction set used to exactly this CPU. Although, in your case, it is highly likely that your new CPU understands all commands from the old, but I wouldn't bet on it. Its possible that your existing software encounters problems like "illegal instruction" or the like. Very bad if your compiler crashes after CPU replacement, then you cannot emerge anything. I highly recommend using CFLAGS="-O2 -pipe" and nothing more, the performance difference is, if measurable at all, negligible. > USE_CPU="fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov > pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt > pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc rep_good nopl nonstop_tsc > extd_apicid pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic > cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt > nodeid_msr hw_pstate npt lbrv svm_lock nrip_save" > As someone else in this thread already mentioned, USE_CPU is not used. What you're looking for is CPU_FLAGS_X86=..., which defines what cpu-specific options will be enabled for packages supporting it and where it makes sense. See package cpuid2cpuflags for details. Regards Alex