[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH RFC v2 5/5] x86/mwait-idle: squash stats update when not actually entering C-state
- To: Jan Beulich <jbeulich@xxxxxxxx>
- From: Roger Pau Monné <roger.pau@xxxxxxxxxx>
- Date: Fri, 21 Jan 2022 10:32:07 +0100
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=D2ezVA96y3qqPoKVbdkfWHxz5mF0Cqrodn0s1V5j08c=; b=mTQoyEp+c5UxCrQ+1oNvJ5rlRoS1nXGiTx6MvHnVsx8/joAYSUI2bGdFovl+v0iYEnXsmcfyyD3Hxyt0DzlP7uQKCE/1bMq85X9v2WkBb7Gqha5rSWrxKjH9TyuGnFw8kR2t1FIHZx2MwMAxmHyQsqYAvUa1TGllZ9sVXcy4pS9J3VzNRvgwBA0Z2j519hTCrvyFD+vnM9PNFWJBrlaTC6K3B4SMtQX7MBnNcwdBrGUCl9xLeNpQ4yHjBLjGox7Qiwv7PeOauKxBsfzahALKvZmDN2hFyMxWvFgIt/8lBcg892cHtETuxC79LzsgKveVrIHO3LBrUJGHfZi3Ha4TUQ==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=m9cv7+3scWVBXu2XZE+7cyd/rHWnbY2lP0IyVrZ3MZJWJ3jHXJmUrVd3xTR7dI4uATkoHYBkQgRJ7q4QxQJ9ZhTpuT7EV0a6zQ+qmtK3mrUYqvswBG1VOrHX5PYMndjQkXYCyI4swvOAXHaP33soPVRaSJN09mt4v4qz3ToADgkhmeBatnayghDWjxyaInt4uc39QfTOnxg6/lIQMNy0kiN3hFtFCGsAtXhriK5MUCWYefMZmRGgNvur5eWV8bFecrvd7jQ08RkmvFDe8XdhFTfl5GRdV+LGPb95J/m80ByjfFpMuLIp2BoNSy5OPQT3CvPoMbtPL7W5xFdvNIcIlw==
- Authentication-results: esa2.hc3370-68.iphmx.com; dkim=pass (signature verified) header.i=@citrix.onmicrosoft.com
- Cc: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>
- Delivery-date: Fri, 21 Jan 2022 09:32:35 +0000
- Ironport-data: A9a23:BeqRNaClImCUoBVW/8jkw5YqxClBgxIJ4kV8jS/XYbTApDhw32MEn TYbXW6HOKmCNDGketElaNzl8UNVvcTTnIUwQQY4rX1jcSlH+JHPbTi7wuYcHM8wwunrFh8PA xA2M4GYRCwMo/u1Si6FatANl1ElvU2zbue6WL6s1hxZH1c+En9400s7wobVv6Yz6TSHK1LV0 T/Ni5W31G+Ng1aY5UpNtspvADs21BjDkGtwUm4WPJinj3eH/5UhN7oNJLnZEpfNatI88thW5 Qr05OrREmvxp3/BAz4++1rxWhVirrX6ZWBihpfKMkQLb9crSiEai84G2PQghUh/kDq3zt91w vx0kpGCdl4sYqLvouMnXEwNe81+FfUuFL7vJHG+tYqYzlHccmuqyPJrZK00FdRGoKAtWzgIr KFGbmBWBvyAr7veLLaTUO5ji95lNMD2FIgepmth3XfSCvNOrZXrHf+WuoACgGhYasZmQ83MX PopTyhVbxXaRztPIggFNZxjk7L97pX4W2IB8w/EzUYt2EDMyCRh3b6rN8DaEvSaSMMQkkuGq 2bu+2XiHgpcJNGZ0SCC8H+nmqnIhyyTcIAYGaC89/VqqEaO3WFVAxoTPWZXutHg1BT4AYgGb RVJpGx+9sDe6XBHUPHmUCPpr3qOlyc7VuhvSuhm5yK3zZDbtlPx6nc/chZNb9kvtckTTDMs1 0OUk96BOQGDoIF5WlrGqO7K8Gra1Tw9aDZb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QMHfkLqQcfnghOXNWLu v52iIRzADQBkj/I/7LTUUtbqzmnZnmhZjmaRkJC1oO7xSPtyqh7PrfHwKD1hkTfjtTyfN6mF K13jDR1+GGibWW2xXc32jc49B/n8bg8MJKAIiphtIOIjvhpw60bMBKWqGEvhoyvOazgWxa2u XkklMFBYBe+nnRdma6rV/E3BTh6i8n7zvYxVqRkRLY0LrEbQN/L/AEqZNScxPf5UZllsp7yr h302WQsIcSJQ/cnQzmjuK4GS1Cpw6Rmz4PgOQTh3tQXc81c7lKt7ES+0tTDdMpAD/60oY6C+ NjZfusq8q+SWnqL0wxg1Mfg+BFBh8Ib1W7qwk5y4CoOgFt7TFEJxBy/r1bop8CnKhNPKWsqd 60dpiAr4s+PfP+W5gNcNvpcfHHelAlfii8Ql56AW6XXZ3vaEi946Ie3t0OlZSXkdozvdwPpK g=
- Ironport-sdr: tzg6Rm0arnzdlTVMVCrn9d8279QOjkps4k9xN6B9cfZ51i7RBO+vdW/Qf0pgabcvq+bhQ8LA4Y nVTaszzRGT9u9vhTxN7DHi9vKEWkYo5d6M/KBMhBe76lZ2nb8iUP6RbQD9coCkw1nvjwW/YzNd U/17S4GTGInOaBA6O5UP1eIdEDqFZTV2D4FiixhDhTyDd21PLU8VI2/6Ks03b49ZKtzlrxaMEH JeZiM0HfNU4XSbqihhIVH3WYcqEBol8J76Pp1D9m9DL7nBnNa0R7+I3JBRgSBmHSWCG4wiy4u8 AVD3ou2igXzHNo58/T7HnDCa
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On Thu, Jan 20, 2022 at 05:21:31PM +0100, Jan Beulich wrote:
> On 20.01.2022 17:00, Roger Pau Monné wrote:
> > On Thu, Jan 20, 2022 at 03:05:12PM +0100, Jan Beulich wrote:
> >> While we don't want to skip calling update_idle_stats(), arrange for it
> >> to not increment the overall time spent in the state we didn't really
> >> enter.
> >>
> >> Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
> >> ---
> >> RFC: Arguably more of what follows could be moved into the if() -
> >> thoughts?
> >
> > I would move at least the restoring of the TSC, but I would be fine
> > with moving everything up to local_irq_enable unless I'm missing
> > something.
>
> Yes, that's what I was considering.
>
> > I think you could likely also avoid the call to update_idle_stats so
> > there's no need to fetch the new tick count.
>
> No, this call cannot be bypassed. At least not without further
> rearrangements elsewhere.
Ack, I would move everything you can then.
Thanks, Roger.
|