Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1785004ybi; Thu, 20 Jun 2019 03:49:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqxD2pNrjnSvlHObtFO8wpsUZ8c0ebj2HeWj4MFjM/+244clNGE2XuA1bvjQCTRH/tmOtk6Z X-Received: by 2002:a17:902:9041:: with SMTP id w1mr111558539plz.132.1561027745673; Thu, 20 Jun 2019 03:49:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561027745; cv=none; d=google.com; s=arc-20160816; b=X5jIpp0Z/i0EbAgBktx+B6uAD2ON0+G62yL8Bhdaiw5dy6UkKu1k8aeafjtv3OQc2a 3eYr+n4FyuwsSRozVNU09pRzx7duVdV9MPBwfFriPm1poThV4DG+5e8vObIaIQMXYkL6 eunSez0sVHcd5bgTVonFnWLLSLwsjuHs2gtzdf63ErjSdAywohcMetgVjGGj+8y40HRC HzZnZio+QdtFlwfNc/YjhtmJ4mtSBeGFGfz5uzaZLNCmaePdKQGB1qx2WbtKs00iX6DR pYgzdHfl/jkMvTfhE8k9z5ruETekNeCYoJB9cykPU6uYJJxXEETBI5rNra2K/7tbEnsy FW0Q== 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=C28hrFVtjUhKIunxod04yxNRITvcCbSlVw48Ln4UVNM=; b=nrBZhyMxmeaozTZioWKEbArymOgp12uHQ/MzAHIWTaGg+mUYyLjOro5grbEKGoe9eN 0gGi3LqbH8Zxu20wwJVt1HKBpn36tnC55azjXtF5IHXIvHNrUmQ91X44OtbyY63U7ujt 7HKcWOi1TngxsfnOc51tLsWAsJqOjXokpD3FhLgSi9hie2YTY0mdMWKEFvAisKOo+trE VAMw45tCV06kfhCAv/R+X1+/vSKx8/vuz9vHXrDCBHiMK9HC2D2VMzB5gkt5V7BUCds/ 2EPGD2BYv1+6zS57XClcdFa3xEWK7nKtISULPDfkZVkAmirBBMMnEg1PewDdaJrwBIqQ 4dUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hvFne6Ar; 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 g10si5581411pgh.472.2019.06.20.03.48.49; Thu, 20 Jun 2019 03:49:05 -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=hvFne6Ar; 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 S1731448AbfFTKsM (ORCPT + 99 others); Thu, 20 Jun 2019 06:48:12 -0400 Received: from mail-io1-f68.google.com ([209.85.166.68]:33759 "EHLO mail-io1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726492AbfFTKsL (ORCPT ); Thu, 20 Jun 2019 06:48:11 -0400 Received: by mail-io1-f68.google.com with SMTP id u13so520116iop.0 for ; Thu, 20 Jun 2019 03:48:11 -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=C28hrFVtjUhKIunxod04yxNRITvcCbSlVw48Ln4UVNM=; b=hvFne6ArB35ze4xoP1VCRnd7RUmzT9611grtpD0tQTl7dv4MMDP9M9w9vnJNpatVWL OJsoELozsc7E5Fr2R2MaKEnqtTCkdTQajIXvwUZzjjE/Acb2LtidPR9vr16QdoO4IxQp ReYPvaFnqJ+2GwkkMw0JTkogvIfXzN4dz0rKYGblGY46ul/dlvV1FQxZlfzOUZOaFqJv PDMFj2dZKuSrEojC2sqg9Wolpn14In/KceJYw/93k1xz6BYyJa3af4c4jlhvfQAwz++g PuO2nO6zJmwCD8j568e0aQ3lrjxfrKKtw+akQFfKa6xueXT/qG2Q2zyBegDjcH7CRpyD NcUg== 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=C28hrFVtjUhKIunxod04yxNRITvcCbSlVw48Ln4UVNM=; b=r+NtZ9671EloC1dciwIO6EjJVnzQ/PVgSKP36hDYYnmR3jD5+NtF13ifUrYkUjnlNx RhdWP61hPx41IuIcJPhsCIII43Y9GpocxOR761f0chJIkirT/GGA5b2vlFRkHpNIc3UX ZTrvXCkQjMIZutME9VisCFpeVDJh6KFAU/4xJhao5TNe/rcgpP6HGECu0qEZEpW6GrRz 5qSmAqP06P8KdEj3uM6kjsoc00bABAbKayt9VIEy1D2u3pM1xoAlZPLsJuMUISHkDH6W slCm5vt5xNeRSCUvpOOgKBAosGEjTnfZDW9D9eNHVckqMLWXG3yQccV6PGvCkIpeld9+ zrWA== X-Gm-Message-State: APjAAAUvc8OOFaMzUjg75ikIx+yiRMcZvsxgoYSbg/H2ik4eHc2u9/wz LvtSW6NzXFeth/AGjY5Ba8AyCazrGMFPrh2BCJw= X-Received: by 2002:a5d:8451:: with SMTP id w17mr14250011ior.226.1561027690741; Thu, 20 Jun 2019 03:48:10 -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:47:34 +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:23 PM Tetsuo Handa wrote: > > On 2019/06/20 19:10, Yafang Shao wrote: > >>> 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 ? > > Someone might want to print the messages up to only a few times because he/she > does not like the ever-repeating messages. But some new difference hung task information may be missed. And the reason of the new hung task may be different with the old one. So I still can't understand it. It would be better if you could give some use cases in the real world. > But automatically resetting will > forbid his/her wish to print the messages for up to only a few times. > > > > > Btw, why the default value of this setting is 10, instead of -1 ? > > I don't know. I guess just by historical reason, for this variable > has been existed before support of -1 is added. > I think we'd better change the default value from 10 to -1, because this is the common use case. And then the user don't need to write it into sysctl.conf again. Thanks Yafang