From mboxrd@z Thu Jan 1 00:00:00 1970 From: Juergen Gross Subject: Re: [PATCH 1 of 3] Support of getting scheduler defaults Date: Wed, 23 May 2012 10:48:04 +0200 Message-ID: <4FBCA444.1080601@ts.fujitsu.com> References: <56c50b3f6cc3eb1de8b8.1337678212@nehalem1> <1337689344.10118.92.camel@zakaz.uk.xensource.com> <4FBB86AE.7010908@ts.fujitsu.com> <1337689975.10118.102.camel@zakaz.uk.xensource.com> <4FBB8D92.8050800@ts.fujitsu.com> <1337694056.10118.128.camel@zakaz.uk.xensource.com> <1337698766.10118.139.camel@zakaz.uk.xensource.com> <1337730401.27368.38.camel@Solace> <4FBC76E3.5020602@ts.fujitsu.com> <1337757720.27368.58.camel@Solace> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1337757720.27368.58.camel@Solace> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Dario Faggioli Cc: George Dunlap , "xen-devel@lists.xensource.com" , Ian Campbell List-Id: xen-devel@lists.xenproject.org On 05/23/2012 09:22 AM, Dario Faggioli wrote: > On Wed, 2012-05-23 at 07:34 +0200, Juergen Gross wrote: >>> #define PERIOD_MAX MILLISECS(10000) /* 10s */ >>> #define PERIOD_MIN (MICROSECS(10)) /* 10us */ >>> #define SLICE_MIN (MICROSECS(5)) /* 5us */ >> I think this should remain in the hypervisor only. >> > Me too. > >>> Also, extratime is a flag, so I think 0 and 1 are both meaningful >>> values, maybe we can go for -1 as for cap (I'll try and let you know). >> Why not -1 for all values? >> > Would work, I guess, unless there's some collision with big weights > represented on short unsigned value (not sure it's like that, and I've > always been bad at this kind of math! :-P). The -1 would be set in scparams only, and there it is an integer. It should never be written to the "real" scheduler parameters passed to the hypervisor. Juergen -- Juergen Gross Principal Developer Operating Systems PDG ES&S SWE OS6 Telephone: +49 (0) 89 3222 2967 Fujitsu Technology Solutions e-mail: juergen.gross@ts.fujitsu.com Domagkstr. 28 Internet: ts.fujitsu.com D-80807 Muenchen Company details: ts.fujitsu.com/imprint.html