Received: by 10.223.176.5 with SMTP id f5csp3013052wra; Mon, 29 Jan 2018 07:34:04 -0800 (PST) X-Google-Smtp-Source: AH8x2249paDH9YQlDOwJ1LOo0YCaoc8GObwh8k/yOhMlkM8nEYlxRFJPKMdEvRsgu4mTXbSt83L/ X-Received: by 2002:a17:902:595d:: with SMTP id e29-v6mr22735187plj.436.1517240044272; Mon, 29 Jan 2018 07:34:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517240044; cv=none; d=google.com; s=arc-20160816; b=SZvsxSpSpNPrhsvaGobiKNjBm1TBBM7k+4ot6doGwKJQKlJLL/f9qgfXKOgs3dYxul qLJb5c9J6LdnNXaXElWzyhsQToAgNzhFoaccHl6p5+NgHgM7nTCFofULcSsSLmUAyiDz wpsTzcnkKTrbnEkhPygziq9GFJE2947k7PiHCSgxcFMUz7WUf8bQWDqTJH3ns5MZaLvH 0Q/KkphqjxQgJer0ObpuZoq+zFZ4ljoDtTXux4fnNDhyB72vVecltgp4i7lYQh6Tu8Pv dTzCbMBP2epFocXpaKwuL+vNUWj0LnKyHPLkGlFlmLFOpd7DGwc+gCW2J9GnURNvbEv6 GnHA== 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 :organization:references:in-reply-to:message-id:subject:cc:to:from :date:arc-authentication-results; bh=oCn+qd1IL+vvAqqgkLXSgpUzlHyi3Cb7xggvrcPRXEo=; b=emAKTHQo76TzIagAcl+0rlXwcM88NtJraSpRa64ZT4K4oz2FH1gs9Cxds1njDhGwVc cKWmVjLTkF9myD+/0yItqfb9jUmusU4tVuXQL0tJGc3h3V1cM4JIb8NjLKijqTJUfgy6 kNW8QeA53fSC6UQ5CTBqVPSDyNaIAYzgKMEZreHY+g16OSBsBMoTH8q6L7PauSWNO+Dq 7niAiDFQABkral5bEPJGsKaxqlDPu305WwWDxynXZoqc0VJK7nFXliROWZQYOgCrJBEO gCU+s5iENrovjUuNs7C9u0IOJaLMi5yYGB60nlNqjdv6yqJAAvTZPp3cSJS3xTve67XY JOBA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n188si7282482pga.175.2018.01.29.07.33.49; Mon, 29 Jan 2018 07:34:04 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751804AbeA2PdW (ORCPT + 99 others); Mon, 29 Jan 2018 10:33:22 -0500 Received: from mx1.redhat.com ([209.132.183.28]:43354 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751256AbeA2PdV (ORCPT ); Mon, 29 Jan 2018 10:33:21 -0500 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 0CA4D10F3DB; Mon, 29 Jan 2018 15:33:21 +0000 (UTC) Received: from localhost (ovpn-116-44.phx2.redhat.com [10.3.116.44]) by smtp.corp.redhat.com (Postfix) with ESMTP id F1EDA5C25C; Mon, 29 Jan 2018 15:33:16 +0000 (UTC) Date: Mon, 29 Jan 2018 10:33:16 -0500 From: Luiz Capitulino To: Frederic Weisbecker Cc: Ingo Molnar , LKML , Peter Zijlstra , Chris Metcalf , Thomas Gleixner , Christoph Lameter , "Paul E . McKenney" , Wanpeng Li , Mike Galbraith , Rik van Riel Subject: Re: [GIT PULL] isolation: 1Hz residual tick offloading v4 Message-ID: <20180129103316.4d2f9153@redhat.com> In-Reply-To: <20180129011024.GA2942@lerouge> References: <1516320140-13189-1-git-send-email-frederic@kernel.org> <20180124104608.038fb212@redhat.com> <20180129011024.GA2942@lerouge> Organization: Red Hat MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Mon, 29 Jan 2018 15:33:21 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 29 Jan 2018 02:10:26 +0100 Frederic Weisbecker wrote: > On Wed, Jan 24, 2018 at 10:46:08AM -0500, Luiz Capitulino wrote: > > On Fri, 19 Jan 2018 01:02:14 +0100 > > Frederic Weisbecker wrote: > > > > > Ingo, > > > > > > Please pull the sched/0hz-v2 branch that can be found at: > > > > > > git://git.kernel.org/pub/scm/linux/kernel/git/frederic/linux-dynticks.git > > > sched/0hz-v2 > > > > > > HEAD: 9b14d5204490f9acd03998a5e406ecadb87cddba > > > > > > Changes in v4: > > > > > > * Remove the nohz_offload option, just stick with the existing interface, > > > the change is transparent. Suggested by Luiz. > > > > > > * Automatically pin workqueues to housekeepers. > > > > I've been testing this series and the tick doesn't go completely away > > for me: it ticks at around 8 seconds interval. > > > > I've debugged this down to the clocksource_watchdog() timer, which is > > created by clocksource_start_watchdog(). This timer cycles over all online > > CPUs. I couldn't find a way to disable it. It seems to be always enabled > > for x86 by CONFIG_CLOCKSOURCE_WATCHDOG since commit 6471b825c4. > > > > Since the 1Hz tick offload worked for you, I must be missing a way > > to disable this timer or the kernel is thinking my CPU has unstable > > TSC (which it doesn't AFAIK). > > It's beyond the scope of this patchset but indeed that's right, I run my > kernels with tsc=reliable because my CPUs don't have the TSC_RELIABLE flag. > That's the only way I found to shutdown the tick completely on my test > machine, otherwise I keep having that clocksource watchdog. > > You can try "tsc=reliable" but that's at your own risks and it's hard > to tell what exactly are those risks depending on your CPU model (and > perhaps BIOS?). Cool, passing tsc=reliable worked for me. I finally got to the tick to go completely away. While I agree that fixing that is beyond the scope of this series, I think we should improve it anyway since it will probably come up for people trying the new nohz_full=. If this has any value: Tested-by: Luiz Capitulino > You likely already had that watchdog timer before this patchset but didn't > notice because the 1Hz was a more frequent annoyance. That's possible, but I'm not sure the clocksource watchdog timer was there before commit 6471b825c4.