diff options
| author | gm281@boulderdash.cl.cam.ac.uk <gm281@boulderdash.cl.cam.ac.uk> | 2004-08-10 15:34:37 +0000 |
|---|---|---|
| committer | gm281@boulderdash.cl.cam.ac.uk <gm281@boulderdash.cl.cam.ac.uk> | 2004-08-10 15:34:37 +0000 |
| commit | a80edc3e70660fefcd3ae154751a8af8525a5265 (patch) | |
| tree | 77b801fc38c2328473afcaa56d442244ebcd509f /tools/python/xen/xm | |
| parent | 75c7e9b5236a523ec6aa76f9c53d00776ecae585 (diff) | |
| download | xen-a80edc3e70660fefcd3ae154751a8af8525a5265.tar.gz xen-a80edc3e70660fefcd3ae154751a8af8525a5265.tar.bz2 xen-a80edc3e70660fefcd3ae154751a8af8525a5265.zip | |
bitkeeper revision 1.1159.15.1 (4118eb0dXk4yJUHKqaxLdR-bj_e6Zg)
The weight of domains created with xm created can be specified with "weight=x" command line option, or put into the config file. Specific scheduler is responsible for handling this additional information. RRobin and Atropos ignore the argument.
Diffstat (limited to 'tools/python/xen/xm')
| -rw-r--r-- | tools/python/xen/xm/create.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/python/xen/xm/create.py b/tools/python/xen/xm/create.py index 286e1d3478..f28f203849 100644 --- a/tools/python/xen/xm/create.py +++ b/tools/python/xen/xm/create.py @@ -97,6 +97,10 @@ gopts.var('memory', val='MEMORY', fn=set_value, default=128, use="Domain memory in MB.") +gopts.var('weight', val='WEIGHT', + fn=set_value, default=1, + use="Domain cpu weight (default=1).") + gopts.var('console', val='PORT', fn=set_int, default=None, use="Console port to use. Default is 9600 + domain id.") @@ -295,7 +299,8 @@ def make_config(vals): config = ['vm', ['name', vals.name ], - ['memory', vals.memory ] ] + ['memory', vals.memory ], + ['weight', vals.weight] ] if vals.cpu: config.append(['cpu', vals.cpu]) if vals.blkif: |
