Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp735704imd; Thu, 1 Nov 2018 04:56:55 -0700 (PDT) X-Google-Smtp-Source: AJdET5dUDGCXeYDeID0EpuZDdKQumxMqUGRLsCBZ8gA6auKDpCaJffv+EW06QDN7R/ZzlwPxMVYO X-Received: by 2002:a17:902:d24:: with SMTP id 33-v6mr7324586plu.137.1541073415483; Thu, 01 Nov 2018 04:56:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541073415; cv=none; d=google.com; s=arc-20160816; b=fg/gW6+M8vGMLvtOoEZYUUVR2sZWne27UN1pRy4Lf1xF6bwsH4BrHy8puYfG9EtFd3 aVL+CAX8svVgQN7mhrrcl72Iw4zxg+NZl/7DyOlfKeVL3TQuZPsvlfm4OeA6VrvMNTeV bA/z8lxD6IGYXR6BgOCl8EgNSTUDYQ88XTpmKXT5jiunG+QG3HcThBpkjTJANPLpRSde ymRTH3Lm1eU2Or3YZwXZZaxgYGpMFk2PPfKflNpwNiI4gpsaf9avMk83oyEr9HKQU+3m uPQiht10E03wyfxUnXnztPoeA3wPjWckxYEFxe14NMUiIbPDuWSa6XYEiaQafQFDH/Bk kx6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=t8OJz6IaSx3n9xxL3pSrXMZkptzOyyBBSZbLkpHS2u4=; b=D8kKnS2UoHPX2NrTaj5EWzYEHfj7RO/0DZ9KdfrQNbQ/NgwUTHjq3X2QSLc365VDay cw90bcfELvXnYgBTD+O4hXS2j7+nuW6AuZZyIzFBucvJDE2S1AHZ3obKjCzTrkdN0HSr 5UcTcOQnYpmToUkGxIuleeCy2Zzzoy3zIzt6r3z+biMlKS1sH/uKq9Bq0iM6cRyUfOZF gSQFLuMwhFP8eAJKyqHLTzex47Uoz5GjFGVTNSYzMp90pHHi6D7+w/D6Hhuc9KaggSVC lRd2xUqh0eXNivcPQbI9dEG8C1fZdnlTMXUvDapNtVZcD65/Huhde8bHUeGxumUNrknK z/9w== 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 b35-v6si22825961pgb.183.2018.11.01.04.56.36; Thu, 01 Nov 2018 04:56:55 -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 S1728489AbeKAU5t (ORCPT + 99 others); Thu, 1 Nov 2018 16:57:49 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:57331 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728012AbeKAU5t (ORCPT ); Thu, 1 Nov 2018 16:57:49 -0400 Received: from p5492fe24.dip0.t-ipconnect.de ([84.146.254.36] helo=nanos) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1gIBZ6-0003P6-IX; Thu, 01 Nov 2018 12:55:08 +0100 Date: Thu, 1 Nov 2018 12:55:08 +0100 (CET) From: Thomas Gleixner To: Laurence Oberman cc: linux-kernel@vger.kernel.org, rdunlap@infradead.org, prarit@redhat.com Subject: Re: [PATCH] [PATCH V7] watchdog/core: Add watchdog_thresh command line parameter In-Reply-To: <1540911004-11539-1-git-send-email-loberman@redhat.com> Message-ID: References: <1540911004-11539-1-git-send-email-loberman@redhat.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Laurence, On Tue, 30 Oct 2018, Laurence Oberman wrote: This looks much better. But please send your patches first to yourself. Your subject ended up with '[PATCH] [PATCH V7]' instead of just '[PATCH V7]' > Both graphics and serial consoles are exposed to hard lockups > when handling a large amount of messaging. The kernel watchdog_thresh > parameter up to now has not been available to be set on the kernel line for kernel command line please. kernel line does not mean anything, > early boot. > This patch allows the setting of watchdog_thresh to be increased Again: git grep 'This patch' Documentation/process/ This leads you to: "Describe your changes in imperative mood, e.g. "make xyzzy do frotz" instead of "[This patch] makes xyzzy do frotz" or "[I] changed xyzzy to do frotz", as if you are giving orders to the codebase to change its behaviour." Documentation is there for a reason. > Both graphics and serial consoles are exposed to hard lockups > when handling a large amount of messaging. The kernel watchdog_thresh > parameter up to now has not been available to be set on the kernel line for > early boot. > This patch allows the setting of watchdog_thresh to be increased > when needed to extend the hard lockup timer in the console code. > Note that this also affects the soft lockup detector Just for nitpickings sake. The change log is slightly confusing. Let me give you a suggestion: The hard and soft lockup detector threshold has a default value of 10 seconds which can only be changed via sysctl. During early boot lockup detection can trigger when noisy debugging emits a large amount of messages to the console, but there is no way to set a larger threshold on the kernel command line. The detector can only be completely disabled. Add a new watchdog_thresh= command line parameter to allow boot time control over the threshold. It works in the same way as the sysctl and affects both the soft and the hard lockup detectors. Hmm? > --- a/Documentation/admin-guide/kernel-parameters.txt > +++ b/Documentation/admin-guide/kernel-parameters.txt > @@ -4957,6 +4957,14 @@ > or other driver-specific files in the > Documentation/watchdog/ directory. > > + watchdog_thresh= Please use tabs instead of spaces > + [KNL] > + Set the hard lockup detector stall duration > + threshold in seconds. The soft lockup detector > + threshold is set to twice the value. A value of 0 > + disables both lockup detectors. Default is 10 > + seconds. Same here. Thanks, tglx