[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH]configuration files(sched-credit)
Currently with the credit scheduler, cpu_weight cannot be assigned to guest domains at boot time.(it can be set with xm sched-weight after booting) This patch allows CPU weight, and CAP to be set by the Xen configuration files. Specification: The following can be added to the Xen configuration files. 1.CPU WEIGHT [OPTIONAL] cpu_weight = cpu weight value -sets the cpu time ratio to be allocated to the domain -the scale and the default value may vary according to the scheduler used. No modification has been made for the bvt scheduler. --credit scheduler: 1~65535 (default:256) --bvt scheduler: float value (default:1.0) 2.CAP [OPTIONAL] cpu_cap= value -this is only valid when using the credit scheduler -allots the maximum CPU usage percentage for the domain -the domain will use -- (value x 0.01) physical CPUs ex: 50 for 0.5 physical CPU 100 for 1.0 physical CPU 400 for 4.0 physical CPU -- default:0.0 (no limit) Improvements: - allows cpu_cap to be set in the Xen configuration files - sets default cpu_cap and cpu_weight values for each scheduler - passes the cpu_cap and the cpu_weight in the Xen configuration files to xend Modifications: -To allow cpu_cap to be set in the Xen configuration files python/xen/xm/create.py, python/xen/xend/XendDomainInfo.py, python/xen/lowlevel/xc/xc.c -To allow cpu_cap and cpu_weight in the Xen configuration files to be passed to xend python/xen/sv/CreateDomain.py, libxc/xenctrl.h, xc_domain.c, python/xen/lowlevel/xc/xc.c -To set default values for each scheduler Previously, the default value, 1.0 had been set for the bvt scheduler by the Xen configuration files parsing in XendDomainInfo.py. It has now been modified so that default values are set in xc_domain.c after the scheduler type has been determined. In XendDomainInfo.py, the default value is now set to -1 libxc/xc_domain.c Signed-off-by: Masami Watanabe <masami.watanabe@xxxxxxxxxxxxxx> Watanabe Attachment:
configuration_files_sched-credit.patch _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |