Skip to contentSkip to conversation

xc_dom_create.py cpu flag

DISCUSSION David Becker 2 participants 2 messages May 20, 2004

lore
Share & tools
lore
#0 lore raw

I pulled unstable yesterday and noticed xc_dom_create.py does not have a default value for cpu, so python complains
Traceback (most recent call last):
File "/usr/bin/xc_dom_create.py", line 408, in ?
(current_id, current_port) = make_domain()
File "/usr/bin/xc_dom_create.py", line 234, in make_domain
id = xc.domain_create( mem_kb=mem_size*1024, name=domain_name, cpu=cpu )
NameError: global name 'cpu' is not defined

Using the -C flag to set cpu gets a usage message, because the C flag is not in the getopt list.

When I add C to getopt and use -C on the cmd line, all is well.

Is the default of round-robin cpu assignment going away?

-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click

#1 lore raw

Hi David

there is a new option in the /etc/xc/defaults file (your existing file is not overwritten when you installed the new version of the tools)

the option is
cpu = vmid # set based on vmid (mod number of CPUs)

add this to your exiting defaults file and you should be fine. the comment above this entry also implies that you can set this to -1 and xen chooses the CPU.

Rolf

Quoted 19 lines · David Becker

I pulled unstable yesterday and noticed xc_dom_create.py does not have a default value for cpu, so python complains
Traceback (most recent call last):
File "/usr/bin/xc_dom_create.py", line 408, in ?
(current_id, current_port) = make_domain()
File "/usr/bin/xc_dom_create.py", line 234, in make_domain
id = xc.domain_create( mem_kb=mem_size*1024, name=domain_name, cpu=cpu )
NameError: global name 'cpu' is not defined

Using the -C flag to set cpu gets a usage message, because the C flag is not in the getopt list.

When I add C to getopt and use -C on the cmd line, all is well.

Is the default of round-robin cpu assignment going away?

Quoted 9 lines

-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xen-devel

-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click