From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754504AbbIWM1X (ORCPT ); Wed, 23 Sep 2015 08:27:23 -0400 Received: from aserp1040.oracle.com ([141.146.126.69]:18807 "EHLO aserp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753467AbbIWM1V (ORCPT ); Wed, 23 Sep 2015 08:27:21 -0400 Message-ID: <56029A48.9010306@oracle.com> Date: Wed, 23 Sep 2015 08:25:44 -0400 From: Boris Ostrovsky User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Juergen Gross , Dario Faggioli CC: "xen-devel@lists.xenproject.org" , Andrew Cooper , "Luis R. Rodriguez" , linux-kernel , George Dunlap , David Vrabel , Stefano Stabellini Subject: Re: [Xen-devel] [PATCH RFC] xen: if on Xen, "flatten" the scheduling domain hierarchy References: <1439913332.4239.134.camel@citrix.com> <55D61964.90608@suse.com> <1442335855.7789.45.camel@citrix.com> <55FF9A50.9040505@suse.com> <1442993094.2691.119.camel@citrix.com> <56025657.1050904@suse.com> In-Reply-To: <56025657.1050904@suse.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Source-IP: aserv0022.oracle.com [141.146.126.234] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09/23/2015 03:35 AM, Juergen Gross wrote: > > Depends on the hardware. On some AMD processors one socket covers > multiple NUMA nodes. This is the critical case. set_sched_topology() > will be called on those machines possibly multiple times when bringing > up additional cpus. > >> I'm asking because trying this out, right now, is not straightforward, >> as PV vNUMA, even with Wei's Linux patches and with either yours or >> mine one, still incurs in the CPUID issue... I'll try that ASAP, but >> there are a couple of things I've got to finish for the next few days. >> >>> One of NUMA and Xen will win and >>> overwrite the other's settings. >>> >> Not sure what this means, but as I said, I'll try. > > Make sure to use the correct hardware (I'm pretty sure this should be > the AMD "Magny-Cours" [1]). > > > Juergen > > [1]: > http://developer.amd.com/resources/documentation-articles/articles-whitepapers/introduction-to-magny-cours/ > There are few family 0x10 and 0x15 processors that are like that. You can see whether you have such a system by comparing number of NUMA nodes with number of physical IDs, e.g.: [root@ovs106 ~]# numactl --hardware |grep available available: 4 nodes (0-3) [root@ovs106 ~]# grep "physical id" /proc/cpuinfo | uniq physical id : 0 physical id : 1 [root@ovs106 ~]# -boris