Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1751058ybi; Thu, 20 Jun 2019 03:11:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqyBFBInnc/vfD30lrF75Etv54oaDpve6VEj0dFbOwOgq6xhj7HaC7HedFIQ4AwmSf9Q4YtP X-Received: by 2002:a63:fa0d:: with SMTP id y13mr12194453pgh.258.1561025472681; Thu, 20 Jun 2019 03:11:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561025472; cv=none; d=google.com; s=arc-20160816; b=sXhXZdRPK5JpEO7WithhwU0w+22fz04E3edNvT0yhT6cGAnGloPC4npJRRdtyqgK6Y rAFyRP1GvJjK/i4EwGzkvEz0meWVLAdCLDfkw7m5NpSj3qSSu62dk2U9wes7DOhupyMH zcVpjOK7Fb3je1ialr5CQV/MLSxbaJfobOUqgeY5ajpmUxuDLtTIThGj01ybX2BOYWY5 SqmLI5zadqLT57BZBF3rRy6QirXm0v1V+oJtP9YJsP+dCBgXPseTUCWajBfMxsZZZj4x 7bJf+TDYlLEwrJf3UlblOos/1RI8eAQhqUfoIp7mZ+dT/yjgKXakiJIPMPJgNrQ/LA9E 7ZtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=jV1xtT6Suu2NuepDJacPY34RkA8y/nPmx6sAGtZRT34=; b=sIzQxGB9A5S44AfuS45qYDL4iU6WXHiwBhCMGi6Lk1jEUappZUj4tlFtMFopCI1Qzy 4kGqt8PPhz/4zOMEtKHtucyE5CTq3QZt/2wnAIX35/CoeLaFhPeRqVWU5oh5NulWe/+u 0cwNayIBeDTTFG+hvsqcFl7Jrau1PFp8MJJD4TfvcaKQLhT4yZp8Jehrr2k9A1NLNbqv oQaqpAZDBDKJyQ0ml11hivZxMhiEKryDGBfA2l3WdaZ1R4JuQnOOAYCT6Itf1Xn0R0yc Dfkt+QLi+oG7zn+tvwqBG+thaAPWY+ncU4AOpKKlp76eYlHBHjMk4AJbuo3v5xpXBMQC 5oew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=GY2ZZVmW; 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 f10si5492729pgg.348.2019.06.20.03.10.55; Thu, 20 Jun 2019 03:11:12 -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=GY2ZZVmW; 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 S1726468AbfFTKKo (ORCPT + 99 others); Thu, 20 Jun 2019 06:10:44 -0400 Received: from mail-io1-f67.google.com ([209.85.166.67]:36180 "EHLO mail-io1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726268AbfFTKKo (ORCPT ); Thu, 20 Jun 2019 06:10:44 -0400 Received: by mail-io1-f67.google.com with SMTP id h6so583808ioh.3 for ; Thu, 20 Jun 2019 03:10:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=jV1xtT6Suu2NuepDJacPY34RkA8y/nPmx6sAGtZRT34=; b=GY2ZZVmWjBrdNDwcAe2jMlFCfNtgQN0w5U1L+db+0QpM3lW9DPZ2NfMbwq3++n0jA6 Le2FL8yvB6nCDV/2LW26NC1EESOrQOsfZCofRk4J9JQw5XGIDPwI3G41vBg+zpGbegwJ +L4DdDU8lW7reNaEGIPsO2SrWj12DKBKmKDKwOcaSpiwQ/rJCohB9+56IXfOMAVrPYpf mBo+hoH5uAvY9hKbIo/F0C8wiToqwKaaUOT5lK2U0UQSYilthGv2de/kGOZHt3KTNM0z qlYFbfpILWyUmCd831Tnyt/aLVlPY5gp6g/R86gnmcZjiJQO5Lig9MGF+0/LDk3j/zXf seSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=jV1xtT6Suu2NuepDJacPY34RkA8y/nPmx6sAGtZRT34=; b=okLKfc2VCdHu0tuzyX6fSmo5KxgFmk7KZ+OCfwbvsUpxpVa9FGhyu6oBSF3BQ/475s qIHXEXPm79PxqSgdque8e9OCaJPfKqdGl6zoTaZpzG1mJ7x5bNn6o+Qdmgm7RL8HRpXV CF4A8It7Jf2CBf+/1NX+pL7vT77AnFPLLL07LVBo5L4LBUGYlRbRdvXCkbI+xWvTZVK4 MxwITnTETn39hBGdMDye5hHhzgGoP2xzJ9k4C6b+hw7yaB71VfDTS8Akz9EHwRHU4Yot aIaCAD8/8Ypsn1fSuCs0cBqb5DFqHyIjzVg8H7EhvXD+0+JzemxyQzmcY1fKAM5Dymbi tPkQ== X-Gm-Message-State: APjAAAWaK5x+dNK8cPgyZwOgk9Ll9Fmjzhod2wSCh+RgMI7fGOllTg9/ 86t9wpeYVnpxbqvICWoEegDIB6tR2/rG2HnfdcQY9rlJ4kI= X-Received: by 2002:a5e:9e0a:: with SMTP id i10mr11582392ioq.44.1561025443346; Thu, 20 Jun 2019 03:10:43 -0700 (PDT) MIME-Version: 1.0 References: <1561010100-14080-1-git-send-email-laoar.shao@gmail.com> In-Reply-To: From: Yafang Shao Date: Thu, 20 Jun 2019 18:10:06 +0800 Message-ID: Subject: Re: [PATCH] hung_task: recover hung task warnings in next check interval To: Tetsuo Handa Cc: Andrew Morton , Dmitry Vyukov , LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 20, 2019 at 6:03 PM Tetsuo Handa wrote: > > On 2019/06/20 14:55, Yafang Shao wrote: > > When sys_hung_task_warnings reaches 0, the hang task messages will not > > be reported any more. > > It is a common mistake that sys_hung_task_warnings is already 0 when > a real problem which should be reported occurred. > > > > > If the user want to get more hung task messages, he must reset > > kernel.hung_task_warnings to a postive integer or -1 with sysctl. > > People are setting sys_hung_task_warnings to -1 in order to make sure > that the messages are printed. > > > This is not a good way for the user. > > But I don't think we should reset automatically. > > > We'd better reset hung task warnings in the kernel, and then the user > > don't need to pay attention to this value. > > I suggest changing the default value of sys_hung_task_warnings to -1. > Yes, that's what we have did now. > > > > With this patch, hung task warnings will be reset with > > sys_hung_task_warnings setting in evenry check interval. > > Since it is uncommon that the messages are printed for more than 10 > times for one check_hung_uninterruptible_tasks() call, this patch is > effectively changing to always print the messages (in other words, > setting -1). If sys_hung_task_warnings can't be recovered, does it make sense to exist? In which case do we need this setting ? Btw, why the default value of this setting is 10, instead of -1 ? Thanks Yafang