From: Jim Fehlig <jfehlig@novell.com>
To: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
Cc: xen-devel@lists.xensource.com, Tom Wilkie <tom.wilkie@gmail.com>
Subject: Re: [PATCH][xend] Fix handling of scheduler params
Date: Wed, 06 Jun 2007 09:12:50 -0600 [thread overview]
Message-ID: <4666CEF2.1000201@novell.com> (raw)
In-Reply-To: <46660BFC.8040908@novell.com> AFC7A82CB94D2Dkanno.masaki@jp.fujitsu.com
Masaki Kanno wrote:
> Hi Jim,
>
> If the patch is applied, I think that "cpu_weight" and "cpu_cap"
> disappear from information of xm list. Is my thought right?
>
If xm is using the legacy interface, then yes 'xm list --long <dom>'
does not contain cpu_weight|cap. The info is available using xm sched,
e.g.
jfehlig4:~ # xm sched-credit -d sles10_nographic
Name ID Weight Cap
sles10_nographic 29 512 50
Domain must be running however - but this is also true to change the
values.
If xm is configured to use XenAPI, which I understand will be the
default soon, you get:
jfehlig4:/usr/lib64/python/site-packages/xen/xend # xm li -l sles10_graphics
(domain
(PV_args 'TERM=xterm ')
(VIFs (bea9a278-a393-0186-210b-ea6f45870468))
(PV_bootloader /usr/lib/xen/boot/domUloader.py)
(VTPMs ())
...
(VCPUs_params "{'cap': '50', 'weight': '512'}")
...
)
Note that using either or both cpu_weight|cap in domain config file
works as before.
How to proceed with this patch depends on when/if xm will be moved to
XenAPI. If this will not occur for some time, then I should adjust the
patch to preserve cpu_weight|cap in sexpr.
Regards,
Jim
> Best regards,
> Kan
>
>
>> When creating domains that specify scheduler parameters with XenAPI, the
>> specified parameters are not used when starting the domain. As an
>> example, here is a snippet of internal config for a domain created via
>> XenAPI that contains scheduling params:
>>
>> (domain
>> (domid 6)
>> (vcpus_params ((cap 100) (weight 512)))
>> ...
>> (cpu_weight 256)
>> (cpu_cap 0)
>> ...
>> )
>>
>> Starting the domain results in following scheduler settings:
>>
>> jfehlig4:/home/jfehlig/cim/cimxml # xm sched-credit -d sles10_nographic
>> Name ID Weight Cap
>> sles10_nographic 6 256 0
>>
>> The attached patch collapses cpu_weight and cpu_cap in XendConfig into
>> the vcpus_params dictionary. The patch has been tested using xm and
>> XenAPI on config with and without scheduler parameters.
>>
>> Regards,
>> Jim
>>
>> Signed-off-by: Jim Fehlig <jfehlig@novell.com>
>>
>>
>>
>> -------------------------------text/plain-------------------------------
>> _______________________________________________
>> Xen-devel mailing list
>> Xen-devel@lists.xensource.com
>> http://lists.xensource.com/xen-devel
>>
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
>
next prev parent reply other threads:[~2007-06-06 15:12 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-06 1:21 [PATCH][xend] Fix handling of scheduler params Jim Fehlig
2007-06-06 11:20 ` Masaki Kanno
2007-06-06 15:12 ` Jim Fehlig [this message]
2007-06-07 9:21 ` Masaki Kanno
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4666CEF2.1000201@novell.com \
--to=jfehlig@novell.com \
--cc=kanno.masaki@jp.fujitsu.com \
--cc=tom.wilkie@gmail.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.