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-ppc-devel

[XenPPC] [PATCH][RFC] New command: xm pcpu-list

Hi all,

I would push a new command "xm pcpu-list" that reports physical 
CPU configuration.
I suppose that Xen works on a machine where a lot of physical 
CPUs are installed.  It is useful for users to know the 
configuration of physical CPUs so that they can allocate VCPUs 
efficiently. This command offers the means for it.

I began this patch with ia64 machines.  It is just because I 
have one.

I would like to make this command work on x86 and powerpc 
machines.  Unfortunately, I don't have any with dual-core and 
multi-thread features.  I don't have much information on them 
either.  I would appreciate if you give any help to make the 
command work on x86 and powerpc.

Best regards,
 Kan


cf. 
# xm pcpu-list
PCPU      Node      Socket      Core    Thread     State
   0         0    0x001802         0         0     online    
   1         0    0x001803         0         0     online    
   2         0    0x001800         1         0     online    
   3         0    0x001801         1         0     online    
   4         0    0x001802         1         0     online    
   5         0    0x001803         1         0     online    
   6         0    0x001800         0         1     online    
   7         0    0x001801         0         1     online    
   8         0    0x001802         0         1     online    
   9         0    0x001803         0         1     online    
  10         0    0x001800         1         1     online    
  11         0    0x001801         1         1     online    
  12         0    0x001802         1         1     online    
  13         0    0x001803         1         1     online    
  14         0    0x001800         0         0     online    
  15         0    0x001801         0         0     online    
# xm info
host                   : tiger154
release                : 2.6.16.13-xen
version                : #1 SMP Fri Sep 22 11:28:14 JST 2006
machine                : ia64
nr_cpus                : 16
nr_nodes               : 1
sockets_per_node       : 4
cores_per_socket       : 2
threads_per_core       : 2
cpu_mhz                : 1595
hw_caps                : 
00000000:00000000:00000000:00000000:00000000:00000000:00000000:00000000:
total_memory           : 8166
free_memory            : 7586
xen_major              : 3
xen_minor              : 0
xen_extra              : -unstable
xen_caps               : xen-3.0-ia64 hvm-3.0-ia64
xen_pagesize           : 16384
platform_params        : virt_start=0xe800000000000000
xen_changeset          : Thu Sep 21 15:35:45 2006 -0600 11460:
da942e577e5e
cc_compiler            : gcc version 3.4.4 20050721 (Red Hat 3.4.4-2)
cc_compile_by          : root
cc_compile_domain      : 
cc_compile_date        : Fri Sep 22 11:23:42 JST 2006
xend_config_format     : 2

Attachment: pcpu-list.patch
Description: Binary data

_______________________________________________
Xen-ppc-devel mailing list
Xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ppc-devel
<Prev in Thread] Current Thread [Next in Thread>