Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp5430373img; Wed, 27 Mar 2019 08:22:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqyj92+yX3ffWF6nZTrx35vG/P6G+FgzZz9ZsoJ1OYIKSNvqkrPccpj8NQERRBTUAFJCSKG9 X-Received: by 2002:a62:571b:: with SMTP id l27mr7405255pfb.195.1553700155189; Wed, 27 Mar 2019 08:22:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553700155; cv=none; d=google.com; s=arc-20160816; b=VkO4P848jBETr+ttqW59GTDI8PNhShQRTv4CqUWqgwU27tf+uIMrQstIGp6XE2Udqk Tw0AhZcQtHyI9UpK9ga6f+lWLBGdgHLBSMOWoFRwDu6h0Lvg4lGKEvEzgZOzWa+JNGrb fvjyX70FORbhPIociOCB51el/1DQK7xSqrEx2z1w3rfceTACqfcGOPSTd64qq9SanziB sv6OU2WiBDYxpzGei4mAMqfn8a3MSCVrlBZCwhjftf2w14RLmkWChN3UMOyMocbnpiNy Eg8KpLsE/7uTrl+Pho0DzllIh5nrgfGZQrz+oNfQad8MRRUtYAsSOc9C0EL6bfYcHsuK g8IQ== 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 :user-agent:organization:references:in-reply-to:date:cc:to:from :subject:message-id; bh=WjmA1uvMEDaiDej2V/HWxCJyMstnuef0tNopwEkdfzs=; b=cGDcdYpvOqV/hV0yBHlikUi/VWO/7ulYyjc7lLwLNMEG3CiFtvMBSnCOcqoCL/Nvma XTzJOwLRYv0QPbc60VgICjU+lkIGLJ5PKJa4V3Q6IIqaEmQJN+R4yeJEojIOMIrfkVse XKFv+GZ7HId66qT2naG0Gn/dsk3kaqEKU09FdS87TrvsH/kIlv0ohupLMka5tWtsB5hP Alsyalx3IvIkxSR5rLKZ3Pw6nmH4cAGwTvtbzFu1sH+O0OVmr3lk3tGc20mYrODGi9av iNs8Bz79OjnJSt/IO9TGv81frzyCQJCB/Sx6C97UhXw0KkFl0HzGj+uzH25fAKNpKpZJ wL4Q== 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 38si20436166pln.90.2019.03.27.08.22.20; Wed, 27 Mar 2019 08:22:35 -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 S1731676AbfC0PUO (ORCPT + 99 others); Wed, 27 Mar 2019 11:20:14 -0400 Received: from smtp.nue.novell.com ([195.135.221.5]:40542 "EHLO smtp.nue.novell.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731628AbfC0PUM (ORCPT ); Wed, 27 Mar 2019 11:20:12 -0400 Received: from emea4-mta.ukb.novell.com ([10.120.13.87]) by smtp.nue.novell.com with ESMTP (TLS encrypted); Wed, 27 Mar 2019 16:20:10 +0100 Received: from [192.168.0.30] (nwb-a10-snat.microfocus.com [10.120.13.201]) by emea4-mta.ukb.novell.com with ESMTP (TLS encrypted); Wed, 27 Mar 2019 15:19:46 +0000 Message-ID: <12fc5972c05b1bc2cbabe2c422e5541e154c3ad9.camel@suse.com> Subject: Re: [PATCH] x86/xen: Add "xen_timer_slop" command line option From: Dario Faggioli To: Boris Ostrovsky , Ryan Thibodeaux Cc: luca abeni , xen-devel@lists.xenproject.org, linux-kernel@vger.kernel.org, oleksandr_andrushchenko@epam.com, tglx@linutronix.de, jgross@suse.com, ryan.thibodeaux@starlab.io Date: Wed, 27 Mar 2019 16:19:37 +0100 In-Reply-To: <04ee9e67-5720-72df-9e2e-2ba42febf90f@oracle.com> References: <1553279397-130201-1-git-send-email-ryan.thibodeaux@starlab.io> <52bfeae7c256faec444b69efe58d363ad60c3fc5.camel@suse.com> <20190323114151.5cebf31b@sweethome> <20190325130530.56603806@luca64> <69e40698-f7ae-11c3-e4b7-dda4f1fadcf6@oracle.com> <907547fa-a7e8-8dca-dabf-dd063705f196@oracle.com> <20190327100014.GA9663@centos-dev.localdomain> <04ee9e67-5720-72df-9e2e-2ba42febf90f@oracle.com> Organization: SUSE Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.30.5 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2019-03-27 at 10:46 -0400, Boris Ostrovsky wrote: > On 3/27/19 6:00 AM, Ryan Thibodeaux wrote: > > On Tue, Mar 26, 2019 at 07:21:31PM -0400, Boris Ostrovsky wrote: > > > On 3/26/19 5:13 AM, Dario Faggioli wrote: > > > > > > > > And this is basically why I was also thinking we can/should > > > > lower the > > > > default value of TIMER_SLOP, here in the Xen clock > > > > implementation in > > > > Linux. > > > What do you think would be a sane value? 10us? Should we then > > > still keep > > > this patch? > > > > > > My concern would be that if we change the current value and it > > > turns out > > > to be very wrong we'd then have no recourse. > > > > > Speaking out of turn but as a participant in this thread, I would > > not > > assume to change the default value for all cases without > > significant > > testing by the community, touching a variety of configurations. > > > If we are to change the default it would be good to at least collect > some data on distribution of delta values in > clockevents_program_event(). But as I said, I'd keep the patch. > I would definitely take/keep this patch. Choosing a more sane (IMO) default and making things flexible and configurable are not mutually exclusive things. :-) I think that having this set to 100us stands in the way of a lot of people wanting to do time sensitive stuff in Xen VMs. I'd at least halve that to 50us, but 10us is even better. But sure we can do this at a later point. And even at that point, a patch like this is valuable, because there might be people that might, probably after some testing of their own setup, want to lower it even further. > Also, as far as the comment describing TIMER_SLOP, I agree that it is > rather misleading. > > I can replace it with /* Minimum amount of time until next clock > event > fires */, I can do it while committing so no need to resend. > Yeah, much better, yes. Dario -- <> (Raistlin Majere) ----------------------------------------------------------------- Dario Faggioli, Ph.D, http://about.me/dario.faggioli Software Engineer @ SUSE https://www.suse.com/