From owner-freebsd-stable@FreeBSD.ORG Fri Aug 27 19:47:16 2010 Return-Path: Delivered-To: freebsd-stable@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8022210656A4; Fri, 27 Aug 2010 19:47:16 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 975578FC16; Fri, 27 Aug 2010 19:47:15 +0000 (UTC) Received: from porto.topspin.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id WAA23941; Fri, 27 Aug 2010 22:47:13 +0300 (EEST) (envelope-from avg@icyb.net.ua) Received: from localhost.topspin.kiev.ua ([127.0.0.1]) by porto.topspin.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1Op4tN-0003LV-E7; Fri, 27 Aug 2010 22:47:13 +0300 Message-ID: <4C781640.8010909@icyb.net.ua> Date: Fri, 27 Aug 2010 22:47:12 +0300 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.8) Gecko/20100822 Lightning/1.0b2 Thunderbird/3.1.2 MIME-Version: 1.0 To: Jung-uk Kim References: <201007141414.o6EEEUx9014690@lurza.secnetix.de> <201008191326.09822.jkim@FreeBSD.org> <4C77F6D6.9020402@icyb.net.ua> <201008271536.08773.jkim@FreeBSD.org> In-Reply-To: <201008271536.08773.jkim@FreeBSD.org> X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-stable@FreeBSD.org Subject: Re: 8.1-PRERELEASE: CPU packages not detected correctly X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Aug 2010 19:47:16 -0000 on 27/08/2010 22:36 Jung-uk Kim said the following: > Now, back to my original question. My point was, we should never > trust any CPUIDs on emulated CPU if they are translated. What should > happen if you have four physical cores and you "assign" just one for > VirtualBox, for example? What should we "announce" if you are > emulating two cores on UP host? How do we know whether it is "the" > real BSP or not? Is it really bound to a CPU? Is "CPUID leaf 11" > emulated properly? If not, is it an emulator bug or a guest OS bug? > Do we really care about "physical topology" in these cases? IMHO, > the answer is no, we don't, and we should say "all cores are > independent". If anyone really cares and wants prettier printing, we > may say "N virtual cores", though. Thanks a lot for the rest of the info that I snipped, very interesting and useful! To this issue - I'd say let the developers of virtual machines worry that their machines look like real hardware, not us. More specifically, in this thread we saw that current FreeBSD code (without the patch) and Intel's code detect the same topology and that topology looks reasonable for the person who started the thread. With the patch though, detected topology looks different. So I'd rather not worry about the general case of virtual machines right now. Let's first see more evidence of whether we should trust them or not. -- Andriy Gapon