[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v4 1/3] x86/time: latch to-be-written TSC value early in rendezvous loop
- To: Jan Beulich <jbeulich@xxxxxxxx>
- From: Roger Pau Monné <roger.pau@xxxxxxxxxx>
- Date: Tue, 20 Apr 2021 17:44:53 +0200
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.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=MS1C3GDXefObJ0bo182MCU8ca10mlA45jZClpTpeywY=; b=ivTH23xGAZI2dsdfjrPjg3rYkgKwcHDh14J7JaKJ/KjQSBYgUtxOwbVHmpihxyT48Ig5qLZx7oHc6uiwmweq1Jwu8Mmc97mGUp50eTaFnmp/BulguDke6O3RvRGkQL3aizqklspeUnuz7gY0C7E5iybijI9qqTWqxjJlLoHcaLC/QeRn2Un9hATgvtn6v2U0bvZH0l/zD+4uLZH3ariaM8/2imDq+6R3lkqmy3hP3hYgLHe63TJn7Ml8DF2X6RSsIkLKFiwx03VaVAQrWwsJCJpe2CX4BsFbOKmOycL3gui5WIbeJlhx8MwYoxCA21GBbImD6RYZFAUO4dt7QuXDYA==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lm7W9XRxD3uyqZBsNgxEYw6Ocy0ESCVKSjGoLDybTGELlyOHECDgB/55I6Y4sIl+DIEd62jM2Keldnur1snn93b5VB0/c+WYvyJ5vSNEQ/op/j+kpgvhvmKpDL7XHX1KDpwiitM9s5+HWA6JXfuZSy9DCpqme3djs2xkutG6uv2ZaJ7Gj5c5ecLHM5UJfRFqpH5KBckczpb9CrHzca3//V7iwcqTHdzE9q0RxSfhBwU7dH+acRs6YvgIcVaHhnhJVeHiOmxWo7Avy/IngVZORrUTzEyMNVGqwdU1hnV8oWmN0sg+rZbVS60F9PwUPTlfWoKBgqqyjy+fBxatjETHTQ==
- Authentication-results: esa4.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: Tue, 20 Apr 2021 15:45:10 +0000
- Ironport-hdrordr: A9a23:+ADVw64IDyuZ5u2AwAPXwRqBI+orLtY04lQ7vn1ZYQBJc8Ceis CllOka0xixszoKRHQ8g7m7VZWoa3m0z/5IyKMWOqqvWxSjhXuwIOhZnO/f6hDDOwm7zO5S0q 98b7NzYeebMXFWhdv3iTPWL/8O29+CmZrHuc7771NACT5ncLth6QARMHf/LmRTSBNdDZQ0UL qwj/A3xAaIQngcYsSlCnRtZYGqy+Hjr576fQUAQycu9Qjmt1iVwYTnGBuV1Ap2aUIs/Z4e9w H+8jDR1+GYnNyQjjTd0GLS6Jo+oqqd9vJzQPaip+JQBjHligODbJlsVbuYrFkO0Z2SwWdvqv bgiVMNONly9mPwcwiO0GTQ8jil6hkCwTvDzkKVmnTqq8CRfkNFN+Nxwbh3XzGczmhIhqAa7I t7m1i3mrASMDb72AP63NTMXwECrDvOnVMS1dQ9olYabZETc9Zq3Ooi1XIQKrgsNgTg5rsqFe F/Zfusnsp+QBehY3fVsnIH+q3UYl0DWhOPQk01sseIyTRhnHdg00sCxMAE901wjK4Adw==
- Ironport-sdr: bkWrttcU0MOcAyv+FmJst4QcThc4rMYIWPX0XWHNS2tXQ5dqjYpVe2b0QwsFwjhlCAFRMjPTWX 6rzDYEF1+AM45Um/h3tdqttCwT+3gjCA0BXmA7dscbNbdOXtrBpXO+pDYE8xCdpHxHdLJ06Ytj S2X3lPVfzUeqcFHy+StgW8d7loxipaEn//cAYmDpXmu5Zey9UFFpn6W6XzIMyFqceF6vyYvgfp jQgIYXXjBmhIDpjkZgYtNrZCGs1BcZ+OAEYKyMgwqxrNOM27yE/7/c+9uOCw90+ZsPTXjZW7Rz ATc=
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On Thu, Apr 01, 2021 at 11:54:05AM +0200, Jan Beulich wrote:
> To reduce latency on time_calibration_tsc_rendezvous()'s last loop
> iteration, read the value to be written on the last iteration at the end
> of the loop body (i.e. in particular at the end of the second to last
> iteration).
>
> On my single-socket 18-core Skylake system this reduces the average loop
> exit time on CPU0 (from the TSC write on the last iteration to until
> after the main loop) from around 32k cycles to around 29k (albeit the
> values measured on separate runs vary quite significantly).
>
> Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
Reviewed-by: Roger Pau Monné <roger.pau@xxxxxxxxxx>
Thanks, Roger.
|