Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp3456710img; Mon, 25 Mar 2019 10:39:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqzgs1AQ+a16RMqIvKrB9AUjynPXc5o0gqp3SoiE8qbvFj/f0j3tX7idls/wZClhgGg/+Cq2 X-Received: by 2002:a63:9246:: with SMTP id s6mr24743718pgn.316.1553535567647; Mon, 25 Mar 2019 10:39:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553535567; cv=none; d=google.com; s=arc-20160816; b=fILV/g0b+LQ8387R6bQzrJYoZbx7La/SRMncGdXJqHmLKo6Eit92ynq6B5igNk/3Xk E7J3Q7lY5rW98TypfqRF32VxnrPgfhLyAc+gdAxrp7P8FwSwCAgrLNLe+q130jgQxfw5 9ghXBUuf5y5blqrLs57l5hFKYnEZAx2I9O1DTvqYmQzqttkXM3qH4n/j21ohTw03AOfU rQTgQeDw5IiYRlyGeJCQezSnVU4QqKtsoEGw+VS4OnUd3bYJqi1NjPellGKmGeztXaTk eC2hfGfJpdwF0E//xde2u0VRbeIvW6dKjrNAxhUZsr5TcItaQzm3An7mypo10kRrFSbv hL/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=WxoUsmPwyK1IBH8uKnC+MfHwcWYXzZuIGR2L0W6IfFA=; b=b4/HabPW4CC1Ux+ArQar+ZuDbGEKwXlqTnBa7i9RBnPTDQDXPBBXdijlba663BGJGy 6thAeD61yE/baqSI/gYeKEPXF8KnoZ/kFeFqM9iO2A9VFuGZB2gzWTVn0myJko4AAITp c4q1K6dkVcU5YCK/4KgH19pivcr3JJ24FDPUfusdiQwdEsY+JyY0gRhH1ERslYpx3Koi fMSjfsYV1cBPqm6rEtguA9Azfi8dCgoS448YVuRVLfNbgedux0KFmIBn7B5vy4Cgdc44 s4i0st+mEPKhHHh+pCUSkoWCRetVwPqKIY422AgLTef++PBsg4p63Ew6gmgvuBdi7Vxj zIhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=BThurLjC; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t8si7450925pgp.174.2019.03.25.10.39.12; Mon, 25 Mar 2019 10:39:27 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=BThurLjC; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730020AbfCYRhR (ORCPT + 99 others); Mon, 25 Mar 2019 13:37:17 -0400 Received: from mail-yw1-f65.google.com ([209.85.161.65]:39939 "EHLO mail-yw1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729946AbfCYRhR (ORCPT ); Mon, 25 Mar 2019 13:37:17 -0400 Received: by mail-yw1-f65.google.com with SMTP id p64so7675287ywg.7 for ; Mon, 25 Mar 2019 10:37:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=WxoUsmPwyK1IBH8uKnC+MfHwcWYXzZuIGR2L0W6IfFA=; b=BThurLjCqtieSEwWuIB/bMWgmg8xO/9FOm69avdgl0K+P+Uq2VRzEW+6dHsxa+28xQ kuse844Lb6BCVsqJ1Em2FghM9LiTKCtLj+xuBjeemgv2/2uNxCsC3wLUxNeAV1UyP10W NkPI2rP2Q9HgPNz144XP3UJecuv0RflLx9v3PHdUHl2lgpifsBGlxU1hRo5i+RmUQABc wDXlmU9pLHqgtFWmiFJT1k9RBlT7M22Bo6RoTH2rbPODM8wYevr5tkira5kEpwTqrBAQ ZdxAnVRda4MiRJZX8/MePDy1rBabEneMgwdO85F/6b6JGlSvpc+dyLHi6jS8Bizv/GbY HFtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=WxoUsmPwyK1IBH8uKnC+MfHwcWYXzZuIGR2L0W6IfFA=; b=Z0uCBK+KBf2zwz8n3hGs66gQsBAflJNzge+HM8JskOG/MPHdIrQIfPcJKkINStqg73 iHrH5MHdFabYNTsHUd7OzCBptcRHC2fOgjky3MlCM6RN+TxYpJu8bZUwDPeRKLf+NKR0 K1CY8460KA7wTFg+cqUMfxq7Cc4RAkudRutWPf+Tt+GqXLKYUJ8qOJGxCTiUpYpDwiXN XGoZZ5JzXNxauXxrYKDvrh/i/y/nS6jNDRjbzsUje/443iYr5q2bCWupnd3n5T0oWfKp 6I2ph3JzrTg6MkKuteJmeUcu/wTKtUZ93NR4vsKfLU2ISg49aSsMAqh+4ydXxolSKMUI znuw== X-Gm-Message-State: APjAAAV9dtaEsBK4BwiR5ZqnNBfMlS4FfgtkEqDtfcd5FRUNcABTLTvm RTamcd5VsJfFQX1OqpWEUho= X-Received: by 2002:a25:d394:: with SMTP id e142mr20731934ybf.190.1553535436501; Mon, 25 Mar 2019 10:37:16 -0700 (PDT) Received: from centos-dev.localdomain (pool-173-66-89-81.washdc.fios.verizon.net. [173.66.89.81]) by smtp.gmail.com with ESMTPSA id l123sm6087537ywe.85.2019.03.25.10.37.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 25 Mar 2019 10:37:15 -0700 (PDT) Date: Mon, 25 Mar 2019 13:36:58 -0400 From: Ryan Thibodeaux To: Boris Ostrovsky Cc: luca abeni , Dario Faggioli , 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: <20190325173658.GA46618@centos-dev.localdomain> 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> <20190325141138.GA44413@centos-dev.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190325141138.GA44413@centos-dev.localdomain> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 25, 2019 at 10:11:38AM -0400, Ryan Thibodeaux wrote: > > > [...] > > >>>> Is there any data that shows effects of using this new parameter? > > >>>> Continuing with the experimental data conversation (thanks to Luca and Dario for being so generous), I am providing more results from quick tests this morning. I ran the same sequence of tests four times with the same hardware, hypervisor, and Linux guest setup. Only changes between runs was adjusting the slop settings in Xen and Linux. This was on a build of Xen 4.10 and a Linux guest running the current Xen tip.git kernel with my patch. For each sequence, I ran two variations of cyclictest on an isolated processor. The first test used an interval of 50 microseconds and second test used an interval of 1000 microseconds, passing "-i50" and "-10000" arguments to cyclictest respectively. The variations of the sequences are as follows: #1 - default slops: Xen@50000, Linux@100000 #2 - lowering Linux: Xen@50000, Linux@5000 #3 - lowering Xen: Xen@5000, Linux@100000 #4 - lowering both: Xen@5000, Linux@5000 The cleaned up test output is below. Only showing the total stats for each run and the number of spikes / samples that went over 100 microseconds. I do not record each sample value like Luca and Dario, because I want to eliminate as many variables as possible, e.g., eliminating overhead of writing out raw results. Looking at the results, you can see that only lowering the Linux slop (with my proposed patch) does reduce the overall PDL stats for the shorter interval, but it especially lowers the spikes, in both cases. Even in test #3 where the Xen slop was lowered, the spikes are a problem at the default Linux slop. Reiterating what Luca and Dario said, lowering both slops is the way to consisten results for both interval configurations. Note: even better stats can likely be achieved with more tuning and using the RT patchset. These results were just focusing on a non-specialized configuration. ... ############################## # Timer Slop: Xen (default, 50000) | Guest (default, 100000) # Cyclictest Interval (-i50) Min: 62 Avg: 127 Max: 212 Spikes (over 100): 3892034 # Cyclictest Interval (-i1000) Min: 24 Avg: 45 Max: 156 Spikes (over 100): 27 ############################## # Timer Slop: Xen (default, 50000) | Guest (5000) # Cyclictest Interval (-i50) Min: 25 Avg: 78 Max: 230 Spikes (over 100): 274549 # Cyclictest Interval (-i1000) Min: 37 Avg: 45 Max: 82 Spikes (over 100): 0 ############################## # Timer Slop: Xen (5000) | Guest (default, 100000) # Cyclictest Interval (-i50) Min: 61 Avg: 126 Max: 226 Spikes (over 100): 3877860 # Cyclictest Interval (-i1000) Min: 37 Avg: 45 Max: 74 Spikes (over 100): 0 ############################## # Timer Slop: Xen (5000) | Guest (5000) # Cyclictest Interval (-i50) Min: 13 Avg: 30 Max: 150 Spikes (over 100): 120 # Cyclictest Interval (-i1000) Min: 37 Avg: 45 Max: 97 Spikes (over 100): 0 ... - Ryan