[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC PATCH v1 1/6] sched: track time spent in IRQ handler
- To: "jgross@xxxxxxxx" <jgross@xxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
- Date: Fri, 12 Jun 2020 11:26:56 +0000
- Accept-language: en-US
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=epam.com; dmarc=pass action=none header.from=epam.com; dkim=pass header.d=epam.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=cFfnlUpI8o5/vSbuI2ryo6sev5aXsq0V8sy+/YxNbao=; b=OECxCewL1DKGuf1++LFcaV8RoqmRWahaMgcFxHk81U38cUK3lrS+ZEXlOVjp1/cCigvy5Gb65ja6BdUwL/kDDuQ/hTb07d7f4gRRII1JbK7WU1K6ZOnGQFcH4zsXDFedjuXBWjeiObjSQG+4HZYfyKwcgrl8PZUOI+nf2AXophSdJykszVNUkRbZlVTGA6PT1nS8HaRtr/iNCmHNrpbDJ8vbit/NmWrepPfT1lGKU8f5w1CqJmFs0bvQ5ZkOAJvzRPjT0ome67g+V1Eo0KJ6rD07cfFQ+v0uh706gYJN2U60g4cmgs21g7AGzyihkGPR03Wy9KtUKdu+C9mB1u84/w==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fAHOoK/6mc6X5BxqU38WwPZ3QlHgLsgvEQ4mRh5C5KJlYXXOMiY8J8ukUfioHrUb3EcJM5L2/WmppyXJhSnZXJdyDE/Oon68Epgkz4r4oYVEYokzKSlJ+zn5J9xo8Wk0kB5EHUyN/l7sAmSFd9W1bzPerNUy6DqFGk28pRusoLgp9Ow8ki7fX+GatVZy7QbL5O1MFY4n//uf4IuHN0lPImBfsbOj2s0SmbHhhBiDDu/qTb1TpbZJdai6yk7JWDxWEj3+ZxY/8pp9mWP2+Z8zw7S2M4dFrn9h0YI5qzc3rWeGG8HgqIdLzCUOaWy6ZLn1NgPTnT56vaL2uMAihvSmvg==
- Authentication-results: suse.com; dkim=none (message not signed) header.d=none;suse.com; dmarc=none action=none header.from=epam.com;
- Cc: "sstabellini@xxxxxxxxxx" <sstabellini@xxxxxxxxxx>, "julien@xxxxxxx" <julien@xxxxxxx>, "wl@xxxxxxx" <wl@xxxxxxx>, "andrew.cooper3@xxxxxxxxxx" <andrew.cooper3@xxxxxxxxxx>, "ian.jackson@xxxxxxxxxxxxx" <ian.jackson@xxxxxxxxxxxxx>, "george.dunlap@xxxxxxxxxx" <george.dunlap@xxxxxxxxxx>, "dfaggioli@xxxxxxxx" <dfaggioli@xxxxxxxx>, "jbeulich@xxxxxxxx" <jbeulich@xxxxxxxx>, "roger.pau@xxxxxxxxxx" <roger.pau@xxxxxxxxxx>
- Delivery-date: Fri, 12 Jun 2020 11:27:12 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Thread-index: AQHWQE+STyWApsQdk0CG54zgwiPygKjUZV2AgAByxQA=
- Thread-topic: [RFC PATCH v1 1/6] sched: track time spent in IRQ handler
Hi Jurgen,
thanks for the review
On Fri, 2020-06-12 at 06:36 +0200, Jürgen Groß wrote:
> On 12.06.20 02:22, Volodymyr Babchuk wrote:
[...]
> > +void vcpu_end_irq_handler(void)
> > +{
> > + int delta;
> > +
> > + if (is_idle_vcpu(current))
> > + return;
> > +
> > + ASSERT(current->irq_nesting);
> > +
> > + if ( --current->irq_nesting )
> > + return;
> > +
> > + /* We assume that irq handling time will not overflow int */
>
> This assumption might not hold for long running VMs.
Basically, this value holds time span between calls to schedule(). This
variable gets zeroed out every time scheduler requests for time
adjustment value. So, it should not depend on total VM run time.
|