From: Milan =?ISO-8859-1?B?SG9seuRwZmVs?= Subject: Re: Credit scheduler and latencies Date: Thu, 14 Dec 2006 20:35:30 +0100 Message-ID: <20061214203530.300e4ab1.listen@mjh.name> References: <20061214182443.56278d85.listen@mjh.name> <20061214191053.GA21968@cockermouth.uk.xensource.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0347521063==" Return-path: In-Reply-To: <20061214191053.GA21968@cockermouth.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============0347521063== Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="PGP-SHA1"; boundary="Signature=_Thu__14_Dec_2006_20_35_30_+0100_L8jS6fLr1GPFsHII" --Signature=_Thu__14_Dec_2006_20_35_30_+0100_L8jS6fLr1GPFsHII Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: 7bit On Thu, 14 Dec 2006 19:10:53 +0000 Emmanuel Ackaouy wrote: > Hi Milan, > > This is interesting data. Glad that it is useful. > I'm quite surprised that you managed to get one of three > CPU hogs to get more than 33.3% of the CPU! This is not > expected behaviour. I'll look into it. Great. > It is however expected behaviour that once a VCPU consumes > its fair share of CPU resources, it will no longer preempt > others and will have to wait its turn for a time slice. > If we didn't do that, the VCPU in question could just hog > the CPU. Yes, I probably should have mentioned clearly that I read sth like that in the archives. > The way to increase the share a VCPU can use and still > preempt others when waking up is to up the fair share of > the domain in question to make sure that it's constantly > using less than its fair share of the CPU. But then, this > domain will have the ability to actually use that many > CPU resources. Yes, but see below... > The credit scheduler doesn't have a good mechanism to > guarantee a sub ms wake-to-run latency for VCPUs that it > must also restrict the CPU usage of. The assumption is > that if you require good wake-to-run latencies, then you > are not a CPU hog. This assumption may not be valid in > all workloads. I do not want to make this assumption in my case, as it can become false. (E.g. running a I/O-based-workload, and then logging in via SSH (usually short CPU hog) or doing some other work (like nice'd bzip2)) > Short of recompiling source, there is no currently no > way to change the default time slice I'm affraid. And if > you recompile, you're indeed exploring uncharted territory. Yes. I already read a part of it, but I don't know everything about the scheduler API and the credit scheduler in particular yet. Can you say whether it is possible / feasible to change the time slice / scheduler quantum to less than 10 ms (time between two 100-Hz-based timer interrupts)? I think I will try out 10 ms and then 1 ms in the next days. > [...] > > Are you trying to guarantee wake-to-run latencies for > one or more domains which also hog CPU resources if left > to run unchecked? Yes, this would be the ideal case. Good wake-to-run latencies and in general reliable CPU limiting at the same time. > In 3.0.4, you could try to use SEDF which basically seems > to run 1ms time slices. Last time I checked SEDF was 3.0.2. IIRC, I can assign fixed slices of CPU time to each domain, and I can specify whether each domain can consume extra CPU time. I *think* extra CPU time didn't work at back then. I guess I'll have a look at SEDF again too. > I can also add whatever mechanisms > you require to the credit scheduler but depending on what > is required, that may not happen for a while, and likely > not in 3.0.4. I guess that sth like allowing any domain to interrupt at any time and at the same time distributing CPU usage fairly doesn't quite fit in the current credit scheduler's concept..? I will tell you if I have more concrete ideas for the credit scheduler. > Cheers, > Emmanuel. Regards, Milan PS: I'm subscribed, so you can also send mail only to the list. > On Thu, Dec 14, 2006 at 06:24:43PM +0100, Milan Holz?pfel wrote: > [...] --Signature=_Thu__14_Dec_2006_20_35_30_+0100_L8jS6fLr1GPFsHII Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.1 (GNU/Linux) iQIVAwUBRYGniGGQ1TgKZKJkAQIgdA//cqtfEMUH5dqM6rkdG/oLST+kj6lip1Tu J1AX3uKPKDehRtVurMl9DkvwcRr3CHV0LQ+jHQtwwp4/AnF7UQvVM1/qwptZWraA 2GM7Gx7Z2aGlAx8pWxBC96WG1icBdiKQvXqUn3LKagLBsz+RGPUkD3AAixVS7hSe 6P+b3GuYYosdiYrx61ufZoNh6HBsi7Sak6gWCvqVZpg6EIyzJj+yUkUUGVFYGfeg rYhZ+lwMKkay59gC+pUdE2ZQ1Iij+hS2b3UDycv/JPaiww+MStx3oUjonIm9dfJ7 Atjv9O6DfbWp2/YJpXxtSP+73BD8GF3Hb6Zf6y+lVa3CnOknv3RyhdWnq02g87dW rf/83WFDJg6/7UE8+ByiGYfj+qGMP5KRkM3A8VdSURZMyJpkIkhnvwNp7+uXIm+m j7J/N4BTTGWmkMlCJArnl/p/hrWRsFy2wWHrD8MPOuM2Y0kThGhsdkBFGAiQwpgS VlW+gWD7ZpsJXanHRvBRW5AXHftV3idkd96Y9vNEgn6E8jq33ohiIbnBWA/2EAaq J+KkNsmTiKiIfVNLZgt0StQ+mB26QHZ9LR2vvcGuE/9CCySPUuqEGpGs0BhagKpn 1v1F/w7gHJs7uH7opjMhomdQn6FIeHbWd/4gHLE9S7H2fv2sPTPQKJ/58r2FcGu6 az3AFd/hItM= =CLZc -----END PGP SIGNATURE----- --Signature=_Thu__14_Dec_2006_20_35_30_+0100_L8jS6fLr1GPFsHII-- --===============0347521063== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============0347521063==--