Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp852114imm; Wed, 10 Oct 2018 05:27:10 -0700 (PDT) X-Google-Smtp-Source: ACcGV62mWpxPN5fzTtu+6LtA9xRXH9CHJmaTpX8pKwnfj5o0G+IxBA/oqTVir6SaGgTKR7Pd8d9G X-Received: by 2002:a17:902:30a3:: with SMTP id v32-v6mr32416066plb.277.1539174430629; Wed, 10 Oct 2018 05:27:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539174430; cv=none; d=google.com; s=arc-20160816; b=bTMdxXH+c1zN8qJLvPsYHtP7iJmyrZUATlogwb4XKL1pxeehQy33sOGIEsi/Bqen40 zSrReGKyELp0TBfgAZd4wtPpJgVeAAU2+Ngz85DDmA2pqVlqMqjfObltS8FdCuu+T4/Z HHYABwZeywAxqy+t8Wd2IhmJab6hzQeN40OWfjbn6GEnXMTHLRkFM47y0QdBYXpC/Sv+ J55p+c9cQrxJZ16xGzEgLwsqbCc27168hJzDjwXn7fERHLT+EULheWiLlgm6F+yVFWZq Pzvr0IftVyjZu/8C4ynX+oG6Gmu/ooHlGLbqEYJryO4/YNckSoo+ZpY96eF5LA8ZlADf sn5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=pfNnDXQGpKoPxwzk4axQvkJmOpQJU/jObrUOTuHhLKw=; b=ymeA9X8Fa37NNgThGPRPNWhPDR6TYjHxyOmYWkdNCHGZ+u49/4SQ1pC+MlrRFZgIjm wt6jppoG4zWzF4/euyZPXaybtAISj2wC/DJlQiBmBKQKBPppDpkOGjyb7Z9D9rUMY5cW Gf7Fmg214u3la46b4PfsS13kigrJm6xw6UNOQhtXgQHQpeIh1E4E7G1W7wPM/ZSUlJYH sMLxU9NxdpsxWby/GKpoH4kdz0N1/lb19yKrhnAIS+w6BcXLqFR+fYbkWwFXcJSF5wS5 e0K5riFi6hGzKtM+O/V/0n+7bRGY8GTirsJfK/Sg7ungwezJOSRmv1lm0BwH1yPXY8on bExA== 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r12-v6si7846579pga.346.2018.10.10.05.26.56; Wed, 10 Oct 2018 05:27:10 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726761AbeJJTrj (ORCPT + 99 others); Wed, 10 Oct 2018 15:47:39 -0400 Received: from mx2.suse.de ([195.135.220.15]:38414 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726649AbeJJTrj (ORCPT ); Wed, 10 Oct 2018 15:47:39 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 7D4B9B091; Wed, 10 Oct 2018 12:25:41 +0000 (UTC) Date: Wed, 10 Oct 2018 14:25:39 +0200 From: Michal Hocko To: Sergey Senozhatsky Cc: Tetsuo Handa , syzbot , hannes@cmpxchg.org, akpm@linux-foundation.org, guro@fb.com, kirill.shutemov@linux.intel.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, rientjes@google.com, syzkaller-bugs@googlegroups.com, yang.s@alibaba-inc.com, Sergey Senozhatsky , Petr Mladek Subject: Re: INFO: rcu detected stall in shmem_fault Message-ID: <20181010122539.GI5873@dhcp22.suse.cz> References: <000000000000dc48d40577d4a587@google.com> <201810100012.w9A0Cjtn047782@www262.sakura.ne.jp> <20181010085945.GC5873@dhcp22.suse.cz> <20181010113500.GH5873@dhcp22.suse.cz> <20181010114833.GB3949@tigerII.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181010114833.GB3949@tigerII.localdomain> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed 10-10-18 20:48:33, Sergey Senozhatsky wrote: > On (10/10/18 13:35), Michal Hocko wrote: > > > Just flooding out of memory messages can trigger RCU stall problems. > > > For example, a severe skbuff_head_cache or kmalloc-512 leak bug is causing > > > > [...] > > > > Quite some of them, indeed! I guess we want to rate limit the output. > > What about the following? > > A bit unrelated, but while we are at it: > > I like it when we rate-limit printk-s that lookup the system. > But it seems that default rate-limit values are not always good enough, > DEFAULT_RATELIMIT_INTERVAL / DEFAULT_RATELIMIT_BURST can still be too > verbose. For instance, when we have a very slow IPMI emulated serial > console -- e.g. baud rate at 57600. DEFAULT_RATELIMIT_INTERVAL and > DEFAULT_RATELIMIT_BURST can add new OOM headers and backtraces faster > than we evict them. > > Does it sound reasonable enough to use larger than default rate-limits > for printk-s in OOM print-outs? OOM reports tend to be somewhat large > and the reported numbers are not always *very* unique. > > What do you think? I do not really care about the current inerval/burst values. This change should be done seprately and ideally with some numbers. -- Michal Hocko SUSE Labs