Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp6600236ybf; Fri, 6 Mar 2020 00:42:57 -0800 (PST) X-Google-Smtp-Source: ADFU+vu9eruOvfK0xVepKheuDtmTqgdRqT7dXBk0oUBvvtdX2Z2571thH5cntbsIbJgFVsPkRIfc X-Received: by 2002:a05:6808:6cd:: with SMTP id m13mr1775751oih.53.1583484177336; Fri, 06 Mar 2020 00:42:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583484177; cv=none; d=google.com; s=arc-20160816; b=nXk7AoguUHNOM+anzqaKRkUO01yeEhcCdBTnV8T63COCu1l9HhsUH7yK/t8nifg12G tqOC6838LOv7hSbwS1veuOzrKA4eOeNUh3ez6NUEyQkEs7AkjhX++yFR3LNLDX1u2+/T dJdn/wbhMj8JYjk8Iham+VOYOV3PX5+LQwgmgx5R8IXeFms8w1M5AGira6cQwzMBW+4W KWhdfjW3wa/w/ekQ9t1WviUkUE+3jAfMrwods8+uc4XgVj2BJmqHXtfJgGLRvjj+nBXz 0rbPFWGas+KieX0PhWnIojviAPxIj/U5YzdrTjxxLQ2iqIU1K/QvGd7UCHpMSpSHT5XW A3eQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=b5AjsHscbwI1owfnFTdyAB+4fcyVggSrpzwiFpHNLpY=; b=i9lV+MiJpGDV5NkfiKAv9cjsntXvzt6MEMHZGyaFQoNSeXr9sqQnf5XNvySZjnuq4z DGZmIV3z011qeahU4nYmsTcx54m0P2DA1UGuCjADk+k0QrtdW9y4AeQ2y4NyROXJPdt2 sILA22OA7l1sOit4WjTz35CfNaixf9Yr8j44B4P+jI6sll5FYybBcKbufUzrU4ww+V3+ njK6yI9oAdQxf83XNHAjHl7OoEVXtmRi6eHY9cYwF7e6z2+IYN25K/fPNY2eI8GC2Iam LkYj6MytoEcEpeSJ6W/IhKiJZtL+Lrm/nSGhAf2kkXvGOVxLCfJhEP1Nk5G/a8hHNyTm EpAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=hK2++YzU; 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 j6si949761oij.262.2020.03.06.00.42.45; Fri, 06 Mar 2020 00:42:57 -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; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=hK2++YzU; 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 S1726091AbgCFIky (ORCPT + 99 others); Fri, 6 Mar 2020 03:40:54 -0500 Received: from merlin.infradead.org ([205.233.59.134]:35330 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725855AbgCFIky (ORCPT ); Fri, 6 Mar 2020 03:40:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=b5AjsHscbwI1owfnFTdyAB+4fcyVggSrpzwiFpHNLpY=; b=hK2++YzUYjAqhxwL2oc1TcxkSP r1MUE2g2XnsXl6+37tytskVF2/PKJxKpH14gA9ZKNkkIXh6OGxz0Xyzs7scoqHBgGC57YNPWB0u0n 0spRt410wprUOuEOfCquce+EF/lXkpSg3mzX463wwacwrVCsTMS8n5BE0wvCMEu4S3+wg+WHhRfDf 8X8IHsJQ+xSUA8H891q+EcE9fSlR07Gesh4F1tpOHpBnHYe6dQEmG1q0LhcFuww4UekORHrYrRKbJ sc+0Hzv+zN6CmT7QfsZqUXqmOhLwcIJFICr9Er+aGfc4SarSfRnn5qGMtnfC7vaZs9fRzzB+xSAoC 62gAhiYg==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1jA8XC-0001dQ-GA; Fri, 06 Mar 2020 08:40:42 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id B2BE23013A4; Fri, 6 Mar 2020 09:40:39 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 9734D20139C6B; Fri, 6 Mar 2020 09:40:39 +0100 (CET) Date: Fri, 6 Mar 2020 09:40:39 +0100 From: Peter Zijlstra To: Paul Turner Cc: Xi Wang , Ingo Molnar , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Josh Don , LKML , linux-fsdevel@vger.kernel.org Subject: Re: [PATCH] sched: watchdog: Touch kernel watchdog in sched code Message-ID: <20200306084039.GC12561@hirez.programming.kicks-ass.net> References: <20200304213941.112303-1-xii@google.com> <20200305075742.GR2596@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 05, 2020 at 02:11:49PM -0800, Paul Turner wrote: > The goal is to improve jitter since we're constantly periodically > preempting other classes to run the watchdog. Even on a single CPU > this is measurable as jitter in the us range. But, what increases the > motivation is this disruption has been recently magnified by CPU > "gifts" which require evicting the whole core when one of the siblings > schedules one of these watchdog threads. > > The majority outcome being asserted here is that we could actually > exercise pick_next_task if required -- there are other potential > things this will catch, but they are much more braindead generally > speaking (e.g. a bug in pick_next_task itself). I still utterly hate what the patch does though; there is no way I'll have watchdog code hook in the scheduler like this. That's just asking for trouble. Why isn't it sufficient to sample the existing context switch counters from the watchdog? And why can't we fix that?