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 1QOqT2-0008V8-5D for garchives@archives.gentoo.org; Tue, 24 May 2011 12:12:08 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B58761C530 for ; Tue, 24 May 2011 12:12:07 +0000 (UTC) Received: from mail-pv0-f181.google.com (mail-pv0-f181.google.com [74.125.83.181]) by pigeon.gentoo.org (Postfix) with ESMTP id DB5C91C4AB for ; Tue, 24 May 2011 11:51:19 +0000 (UTC) Received: by pvg13 with SMTP id 13so4395112pvg.40 for ; Tue, 24 May 2011 04:51:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=3ilscWUQE429cet2r7w/pNI91a0OaPqZioFlHpK4Ee4=; b=DJkkWmYZxe+uwISKLRguj8nMwPhauE6JAuRe3+Fj8bWHyfIC80y7/YawsHOUFqnUi7 5iY/qbvYmvFnIzphttzFBcCeHNWaBN1cSZzZa4pqJYbaWE7PTgKzprQ+coyU7MPUAjtN lvZYKoWa/CBXnQXRo2z80JW1e0Yc9nBpZZfTA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=b4vwi60HhOQZsLFJ+Gz2IvNQYn7tr7y5jpH/tHAa8wj1CntouopTNZeEH+WhjfYZ9C hBjhZzONuXHnFbMPadoQKzofRNDqX+L49a9Nw93evGbjIfxSSzaUc/KvYtMbZPWpLwyU c2k5S4KKVCOd4nm2Vjb4/08meTCS3ADiOb01A= Received: by 10.142.143.8 with SMTP id q8mr1124119wfd.32.1306237879115; Tue, 24 May 2011 04:51:19 -0700 (PDT) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-server@lists.gentoo.org Reply-to: gentoo-server@lists.gentoo.org MIME-Version: 1.0 Received: by 10.142.58.6 with HTTP; Tue, 24 May 2011 04:50:59 -0700 (PDT) In-Reply-To: References: <4DDAFE82.9070308@badapple.net> From: Fabiano - deStilaDo Date: Tue, 24 May 2011 08:50:59 -0300 Message-ID: Subject: Re: [gentoo-server] Managing multiple servers. To: gentoo-server@lists.gentoo.org Content-Type: text/plain; charset=ISO-8859-1 X-Archives-Salt: X-Archives-Hash: 6388eb9decc7dc94df65164d50630b88 On Tue, May 24, 2011 at 2:32 AM, Pandu Poluan wrote: > WHOA... lots of nice ideas here... > > On Tue, May 24, 2011 at 09:44, Fabiano - deStilaDo > wrote: >> For example, if you have intel and amd server you can optimize to >> i686. I like better this approach on more homogeneous setups, like >> everything optimized for say core 2. > > Core 2 optimizations work for AMD Opterons? By homogeneous setup I meant, if all servers are Core 2, you can obviously take advantage of this by optimizing everything to Core 2. But since you asked if Core 2 optimizations work for AMD Opteron, well it /may/, depends. There are two levels of instruction (cpu) optimization on GCC, -march and -mtune. -march controls what instructions the compiler can produce, so this breaks binary compatibility. For example, trying to run a binary compiled with -march=core2 on an AMD processor should fail, as the binary may have instructions not implemented by AMD. And there is -mtune optimization level, this optimization is restricted by the instruction set specified by -march, and thus is binary compatible with it. For example, you can compile the binaries with -march=i686 and -mtune=core2, now it run on both Intel and AMD, but will be more optimized for Core 2 processors but should run on any processor that implements i686 and above, like k6 and pentium pro. Fabiano.