Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp1465780img; Sat, 23 Mar 2019 03:43:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqyQE/e0qCP7EO/f6RGjG37CuHCKcWcC8ja7+kB1lmZoyalbaIeG7r2pXuIef+m89ZJnkE8r X-Received: by 2002:a63:170d:: with SMTP id x13mr10793287pgl.169.1553337783225; Sat, 23 Mar 2019 03:43:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553337783; cv=none; d=google.com; s=arc-20160816; b=rh/OAtRxI2Fs6SgXllzE28Z+LRjgCVAuebYj+eMg/usk0YGe+7s73AzotuIUoc/+n6 k0pSaW0GJriR8NrRn5pWELJ7O/FGLq1nKwYvoa9DdDXcHiA4p/42sJCjVSVQqG1wMwEC nsf3NOJojjlXL0GFogpEcGihiKst/tumd5UUnsT3Pb0LasghO0ESnxxk9L5dasBS5uOV rWg0Z946VaTom8GIGU4R3mGQ1zD8PoXd+8c5C8weQE5izKKMJ0buPyVXboT4zZCenn4p /GVDDQxNVeQlsJQInb4iPnLj7KQvKYc1yuYHk1PAy8lil4Hh4Ut0JPsxBVv8TjA7oe05 04Zg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=1HTwh3q65FIuJ2GLQ5Hzr66OKDCH1ajb4LzOcHaYUhk=; b=oVY0lyzKEmNF+gzE0xMUCDtFBV10Ets29hkcLEJ7ufaYLsUPHll6tzUGwl5K2U1KWp XRbTiKhIvzUD5WXxqU9dRf5EMjSJvwlCWWhVnEDNtLvLn2zVWrvwrqQmRInnxXi3LaC5 w5sTd+lPUBv7Zak7z3TIH4yDVZdiHJPflGjtRV4oQ3GV9v/+lj8FEQMBZX7gNab+JBU2 VlMydWse1zVnhcX4FivEtYEQbsdbrKPmEi9UUAjd86U2mSqk5Jgw6HJK/+DDvR7Ro6vv yherEhO1UPSGNcPAvMXfAAQ8WSleyURmkduZSCE1mhIuLwg8kS6fAW4Bsy2yvl6BeTQp xMKQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u22si894121pga.129.2019.03.23.03.42.47; Sat, 23 Mar 2019 03:43:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727103AbfCWKmN (ORCPT + 99 others); Sat, 23 Mar 2019 06:42:13 -0400 Received: from mail.sssup.it ([193.205.80.98]:35249 "EHLO mail.santannapisa.it" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726897AbfCWKmM (ORCPT ); Sat, 23 Mar 2019 06:42:12 -0400 Received: from [151.40.136.78] (account l.abeni@santannapisa.it HELO sweethome) by santannapisa.it (CommuniGate Pro SMTP 6.1.11) with ESMTPSA id 137564061; Sat, 23 Mar 2019 11:42:08 +0100 Date: Sat, 23 Mar 2019 11:41:51 +0100 From: luca abeni To: Dario Faggioli Cc: Boris Ostrovsky , thibodux@gmail.com, xen-devel@lists.xenproject.org, linux-kernel@vger.kernel.org, oleksandr_andrushchenko@epam.com, tglx@linutronix.de, jgross@suse.com, ryan.thibodeaux@starlab.io Subject: Re: [PATCH] x86/xen: Add "xen_timer_slop" command line option Message-ID: <20190323114151.5cebf31b@sweethome> In-Reply-To: <52bfeae7c256faec444b69efe58d363ad60c3fc5.camel@suse.com> References: <1553279397-130201-1-git-send-email-ryan.thibodeaux@starlab.io> <52bfeae7c256faec444b69efe58d363ad60c3fc5.camel@suse.com> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all, On Sat, 23 Mar 2019 03:58:16 +0100 Dario Faggioli wrote: > On Fri, 2019-03-22 at 18:10 -0400, Boris Ostrovsky wrote: > > On 3/22/19 2:29 PM, thibodux@gmail.com wrote: > > > From: Ryan Thibodeaux > > > > > > The original timer slop value has not changed since the > > > introduction > > > of the Xen-aware Linux kernel code. This commit provides users an > > > opportunity to tune timer performance given the refinements to > > > hardware and the Xen event channel processing. It also mirrors > > > a feature in the Xen hypervisor - the "timer_slop" Xen command > > > line option. > > > > Is there any data that shows effects of using this new parameter? > > > Yes, I've done some research and experiments on this. I did it > together with a friend, which I'm Cc-ing, as I'm not sure we're > ready/capable to share the results, yet (Luca?). I think we can easily share the experimental data (cyclictest output and plots). Moreover, we can share the scripts and tools for running the experiments (so, everyone can easily reproduce the numbers by simply typing "make" and waiting for some time :) I'll try to package the results and the scripts/tools this evening, and I'll send them. Luca > > What I think I can anticipate is that having such a high value for > timer slop in the kernel, for the Xen clockevent device is (together > with the also quite high default value of timer_slop in Xen itself) > responsible for really high vcpu wakeup latencies. > > Lowering those two values, reduces such latencies dramatically. > > Regards, > Dario