[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [RFC 2/6] schedule: account true system idle time


  • To: "andrii.anisov@xxxxxxxxx" <andrii.anisov@xxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Dario Faggioli <dfaggioli@xxxxxxxx>
  • Date: Fri, 26 Jul 2019 12:00:24 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1;spf=pass smtp.mailfrom=suse.com;dmarc=pass action=none header.from=suse.com;dkim=pass header.d=suse.com;arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=OkbuU+8M/8yBoZJQruWK+Mcl2AxeY6WGKX04a0u/0t4=; b=FZ2bC4ZIOi0XImzRuW6oNtmwVnvvRWuChbEGFp7FmiS7vHRoj0ikRes0xYeKfafhvdxI1THr79m/R22Lq60OjBlChQWRLU420yxVcdbyPCvzmvntvmpjWqNeXg9iuUX6Ro4Zh0F0Vl37a7oVco/d9Y+Cg4lDzQFBZceH8l9iel9t3RmYAfs7YIIx8IzAIU3d6NgYXWVaq8EYko/yKY1Ge08jEdjisEGbp9v50bFFhr2y+h59cVzxUVBhhhGVvaTxvrl1qCMZC5LoP3vdH22ufEhiC7m/iY7EajfLtkIAl86KWing7xtDif3ERyxK6UTL1yiXmlaTq34iX4NqPTZRyQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hQ/trX9PPg7YfPdpbYD/9hpMyWCtUdV1kciVvH8u442GhkYT2tQbqvRgFvZZMJj8o/vAV8y6LbulL+M+AcM/ZWmmQjSbWjA65MkNlN198pJ914XjyVWf9Sh+63kkS21DB3BPn8Pc/zf0nnJALFi4NUjJT4CkUwyfNGGTqVKcOCJezKghWXWpdVMhBngJeqNuuMgB91Vch0iye5voblfvJhWBtQJJ32BO8lRtS5poEu8ejutenDoRRqcZPkMZKy/1/cewJoyizpmCrxHwyoJz0i9nKrmTI0iQbBlay6KWQTJ7SjOSY9ozBJO/uec1VV/ox67CDqlHU3BbCmQmRnmIKQ==
  • Authentication-results: spf=none (sender IP is ) smtp.mailfrom=dfaggioli@xxxxxxxx;
  • Cc: "george.dunlap@xxxxxxxxxxxxx" <george.dunlap@xxxxxxxxxxxxx>, "andrii_anisov@xxxxxxxx" <andrii_anisov@xxxxxxxx>, "julien.grall@xxxxxxx" <julien.grall@xxxxxxx>, "sstabellini@xxxxxxxxxx" <sstabellini@xxxxxxxxxx>, "Volodymyr_Babchuk@xxxxxxxx" <Volodymyr_Babchuk@xxxxxxxx>
  • Delivery-date: Fri, 26 Jul 2019 12:02:23 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHVQ542k/V3jm/kpEa8uLBSXrMN5abczCoA
  • Thread-topic: [Xen-devel] [RFC 2/6] schedule: account true system idle time

On Fri, 2019-07-26 at 13:37 +0300, Andrii Anisov wrote:
> From: Andrii Anisov <andrii_anisov@xxxxxxxx>
> 
> Currently the idle time is being accounted as a idle vcpu runtime.
> This is not entirely correct, because the entity named idle vcpu is
> in fact a hypervisor tasks worker. E.g. some softirqs are processed
> by the idle vcpu.
>
That's all very true, and, as discussed both via mail and in person,
I'm all for it.

About the implementation.

> So lets change idle vcpu time accounting and specify system idle time
> as a idle vcpu blocked time. 
>
This, for one, doesn't really look right to me. You're trying to make
things more clear and more precise... and that's by hiding real idle
time in the idle_vcpu blocked time metric? :-D :-P

Jokes apart, I see how it is rather easy to do something like this, so
I understand it being done like this in an RFC patch, but I don't think
it's correct.

And, on an even more general perspective, the fact that the hypervisor,
when scheduling the idle vcpu, runs softirq, tasklets, etc, it's a
generic concept, not an arch specific one. So, we really should find a
way to implement this in common code, not in arch code.

Maybe, but I'm just thinking out loud, and I need to think more about
this, we can do things the other way round. I.e., we measure the time
that it takes to run softirq and tasklets, and we subtract it from
idle_vcpu runtime?

Regards
-- 
Dario Faggioli, Ph.D
http://about.me/dario.faggioli
Virtualization Software Engineer
SUSE Labs, SUSE https://www.suse.com/
-------------------------------------------------------------------
<<This happens because _I_ choose it to happen!>> (Raistlin Majere)

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.