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/
Home Products Support Community News


Re: [Xen-devel] [PATCH]configuration files(sched-credit)


Do you have any comment?
If you have no comment, could you commit this patch?


On Thu, 17 Aug 2006 19:37:03 +0900, Masami Watanabe wrote:
> 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.
> 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)
> 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

Xen-devel mailing list

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