WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: SMP does not work as expected - was: Re: [Xen-users] Checking for SM

To: "Dirk H. Schulz" <dirk.schulz@xxxxxxxxxxxxx>
Subject: Re: SMP does not work as expected - was: Re: [Xen-users] Checking for SMP usage in xen stable
From: Derrik Pates <demon@xxxxxxxxxxxxx>
Date: Sat, 12 Nov 2005 23:22:11 -0500
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Sun, 13 Nov 2005 04:22:31 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <436F0038.9040703@xxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <4367375A.7010601@xxxxxxxxxxxxx> <200511011303.00446.pea@xxxxxxxxxxxx> <43686FDA.60907@xxxxxxxxxxxxx> <200511031336.22870.pea@xxxxxxxxxxxx> <436EFF38.6040504@xxxxxxxxxxxxx> <436F0038.9040703@xxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Debian Thunderbird 1.0.7 (X11/20051018)
Dirk H. Schulz wrote:
>>    Name                  Id    Mem(MB)    CPU        State  Time(s) 
>> Console
>>    Domain-0            0    123                0            r---- 
>> 59931.7          
> 
> 
>>    webdynown01    5    511                1            -b---   
>> 193.5    9605
>>    webstatown01    1    255                0            -b---   
>> 202.9    9601

You have a Xeon, which supports hyperthreading, and Xen treats the
hyperthreaded CPU as two virtual CPUs. That's pretty much typical, and
pretty much the way most OSes see a hyperthreaded CPU.

>> So it seems that on dual processor boards smp is somehow simulated if
>> there is just one processor present.
>>
>> Is this a bug, or does it make sense somehow?

It's not a bug. It does make perfect sense.

>> And now my original question comes up again: How can I - reliably -
>> verify that my xen kernel is running smp code?

Run 'xm info' and look at the 'cores' and 'hyperthreads_per_core'
fields? If there are multiple physical CPUs (or in the case of e.g. a
dual-core Opteron, you'll see 2 cores for each CPU), and
'hyperthreads_per_core' will be 2 on Xeon CPUs and HT-capable P4 CPUs
(assuming you haven't turned off hyperthreading in the BIOS, or passed
arguments to Xen itself causing it to ignore the MP tables).

-- 
Derrik Pates
demon@xxxxxxxxxxxxx

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

<Prev in Thread] Current Thread [Next in Thread>