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: [Xen-users] SMP and CPU hyperthreading

To: "Lars E. D. Jensen | DCmedia" <ledj@xxxxxxxxxxx>, <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-users] SMP and CPU hyperthreading
From: "Ian Pratt" <m+Ian.Pratt@xxxxxxxxxxxx>
Date: Tue, 19 Apr 2005 23:11:16 +0100
Cc: ian.pratt@xxxxxxxxxxxx, mark.williamson@xxxxxxxxxxxx
Delivery-date: Tue, 19 Apr 2005 22:11:05 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcVFCaAIS+3sAmooRwutXPPY+V/zpgAAQXkQ
Thread-topic: [Xen-users] SMP and CPU hyperthreading
> > There's not much point using the noht flag.  Just pin the 
> domains to 
> > the logical processors you want to use.  If you don't want 
> to use both 
> > threads on a core then just assign domains to one of them.
> 
> Ok, how should the syntax be for using both threads on a cpu.
> 
> cpu = 0,1 ?

The CPU enumeration order is: hyperthreads, cores, sockets, nodes
(though not all levels are currently implementes). i.e. on a 2 socket,
single core, Xeon box:

  cpu 0 : socket 0, [core 0], hyperthread 0
  cpu 1 : socket 0, [core 0], hyperthread 1
  cpu 2 : socket 1, [core 0], hyperthread 0
  cpu 3 : socket 1, [core 0], hyperthread 1

It's sensible to reserve cpu 0 for domain 0, and then put all your other
domains on CPUs 1 and 3 (leave CPU 2 empty, unless you know that you're
not going to thrash the chip's cache).

Ian

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

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