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 1QW1Cd-00036u-A0 for garchives@archives.gentoo.org; Mon, 13 Jun 2011 07:04:51 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E2EFA1C0DC for ; Mon, 13 Jun 2011 07:04:50 +0000 (UTC) Received: from svr-us4.tirtonadi.com (unknown [69.65.43.212]) by pigeon.gentoo.org (Postfix) with ESMTP id 3E3741C057 for ; Mon, 13 Jun 2011 06:44:43 +0000 (UTC) Received: from mail-ew0-f53.google.com ([209.85.215.53]) by svr-us4.tirtonadi.com with esmtpsa (TLSv1:RC4-SHA:128) (Exim 4.69) (envelope-from ) id 1QW0t7-002sfE-VG for Gentoo-server@lists.gentoo.org; Mon, 13 Jun 2011 13:44:42 +0700 Received: by ewy8 with SMTP id 8so1792396ewy.40 for ; Sun, 12 Jun 2011 23:44:37 -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.14.94.138 with SMTP id n10mr2104103eef.73.1307947477510; Sun, 12 Jun 2011 23:44:37 -0700 (PDT) Received: by 10.14.99.139 with HTTP; Sun, 12 Jun 2011 23:44:37 -0700 (PDT) Date: Mon, 13 Jun 2011 13:44:37 +0700 Message-ID: Subject: [gentoo-server] USE=nptlonly and -mno-tls-direct-seg-refs -- when to use? From: Pandu Poluan To: Gentoo-server@lists.gentoo.org Content-Type: text/plain; charset=UTF-8 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - svr-us4.tirtonadi.com X-AntiAbuse: Original Domain - lists.gentoo.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - poluan.info X-Archives-Salt: X-Archives-Hash: 60f296eb4009c0b098116af03d93daee Since I'm trying to optimize Gentoo on XenServer (as DomU, *not* Dom0), I think this question is best addressed to gentoo-server list. When I was emerging glibc, I got this warning: * You are using Xen but don't have -mno-tls-direct-seg-refs in your CFLAGS. * This will result in a 50% performance penalty when running with a 32bit * hypervisor, which is probably not what you want. A google-fu brought me to this page: http://cs.felk.cvut.cz/~vaclam1/linux/ucebna/k310/data/doc/howto-xen-and-gentoo-en.html#Before_we_begin There, it mentions 2 things to be done: * -mno-tls-direct-seg-refs in CFLAGS * USE=nptlonly for sys-libs/glibc -- which I assume has been superseded with the global USE=nptl Now my questions: 1. When do we use either (or both)? 1a. I'm compiling Gentoo x86 on XenServer running on an x86-64 (Intel) system, do I need them? 1b. I'm compiling Gentoo amd64 on XenServer running on an x86-64 (Intel) system, do I need them? 1c. Like (1a), but after completion, I'll migrate the VM onto a XenServer running on a Pentium4 system (32-bit), do I need them? (In other words, it's built on top of an x86-64 physical platform, but will be running on top of an x86 physical platform) TIA for your assistance. Rgds, -- Pandu E Poluan ~ IT Optimizer ~ Visit my Blog: http://pepoluan.posterous.com