Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp857504imm; Wed, 10 Oct 2018 05:32:04 -0700 (PDT) X-Google-Smtp-Source: ACcGV62GwI4Fy7vKw7YtchH7LexuQy1cknan6XPXD72pcNfpY2tKLcgS+vHd8AXPn3VnQq1ovsdA X-Received: by 2002:a62:5e02:: with SMTP id s2-v6mr23484251pfb.146.1539174724230; Wed, 10 Oct 2018 05:32:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539174724; cv=none; d=google.com; s=arc-20160816; b=peg0Ct6QQuiKGz1GSvr2CqNkyDD7naGP/p+omWA/1gXCGYPEC1UZEnoL3RRidL9gDO YiPJtKdN29aeafg0KNFSj8lKW3MkCqidBl9+h1zSyBbCBFH8HZkEuUMA9qNiHVEk4pNw ndwO5vt0w+lV0pN+ib/j+K+wvluKEGsMSNnZ+L2pia0ngf3qI/9iGMFpdcFmlyJ0Z/61 fd7G5OxmBDZffzsQZwKPStOJOqmAVlhDnqWk+tgwpPYSRJ+9SHD9nZhKNk1RmZ6KcfTe MNzia4iZBs6yH85LFT8cxALa1SCNWxeWCc8PDnqQ9W168uaz4BmAUjrSPbnpFvbQ8GzU uU+g== 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 :references:in-reply-to:mime-version:dkim-signature; bh=O0TqrtLynyOzG0Q8a1r+9ryCvb0PwuY8Q+HlWlOqKx0=; b=G4fNGmLb7wOBhmyLGkxdILebSwDNRq9gN7MoTDiHYEtnrP21vTiGwr6+o0cYPkff50 Gy7oW+cLjgSMMf9szgWin7A2IRzYbIGT+HhxmCPGQqLckvFKlheovT6q31QTCG18RPkc dyYs/dVBDzg6+a+ODuluqCOF3WKzttirvMiUooCiyAGpfAQ1QuPR4godlEXUclCv8V7c 1QuK0QRNKCz8Gdy16VGjj2JE8qG3p/JDtthB3KbeEnwd4PEmQDlf1eYn50egtmux4/dC gdzUBppP0FErhfIgLYUjIjsC27Za2T71HRFVLGT2xUgKD2/9rV/P648gN/qOfwAvmC4W xbuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="p/V2B+KR"; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k17-v6si24427931pll.429.2018.10.10.05.31.49; Wed, 10 Oct 2018 05:32:04 -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=@google.com header.s=20161025 header.b="p/V2B+KR"; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726712AbeJJTv7 (ORCPT + 99 others); Wed, 10 Oct 2018 15:51:59 -0400 Received: from mail-it1-f196.google.com ([209.85.166.196]:37174 "EHLO mail-it1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726503AbeJJTv7 (ORCPT ); Wed, 10 Oct 2018 15:51:59 -0400 Received: by mail-it1-f196.google.com with SMTP id e74-v6so7653918ita.2 for ; Wed, 10 Oct 2018 05:30:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=O0TqrtLynyOzG0Q8a1r+9ryCvb0PwuY8Q+HlWlOqKx0=; b=p/V2B+KRHmhZ9Y9x39tDlCaNMIQQR3I4UxwCSo7aB4yUIUYmseTn5XnGpKk8HfV7wB th6bwn5NWwP97hWKV0AZIDgPwWK0xqwZAD/tb8tzB6i1Tjw6sc0ptaEKn+38n6LZh71a dHdy0dJuRDecm47lhneJjjSTp36N+BKijLmsZxPtps2EgzY5YUctehrGV9MoQMyp8d9K Wvr5YxgBye6ij6e5F2PVsNu5WAbi7aJr8mxyocVonJSAp5gurjmUg/SCOb0AWje7v1Ss i14HCKB8U+53PCnHKhiO6rDlf8lAoy5RrWJY/9VHF6C/YO0wjbXDe3KEyq1EJaYOMEBq F+nQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=O0TqrtLynyOzG0Q8a1r+9ryCvb0PwuY8Q+HlWlOqKx0=; b=pHMyLUyiDaXs4RDVuvL5c+NMeHWMl+EmBpd7RYlDW0XNeFGtHyJAVo9x1uKNWlHgGs jzHvSiXj1tG2jmF6Hj1px2wJrVnjyYBzJBe+Jc3TEZC75qL/xCSnYt86w+9EXGrTi2tq 2ka1GStEQ7GtJfMcNB8pHui99hFW1q8yf9efQwlieO6bwQwbyaM57+lCrhaRO/8mnqNP tgaUPWRHO8dm7PRxuxqFPviXlAx2V6sJyxkuNp6feekIysdVIxYsfEzTH7n7kQXng3R0 Y5+rxjZFnj/0aWzbCUHAKrpHy57Y4aKrXcN5qOSHQOc3kORrrDzGy1UBhNYJ1fCOejCG 5M3A== X-Gm-Message-State: ABuFfoj+EPI3G1/LE2ZONoiqR3zGInr7BAAnZffdm1PYV3+aeZJ4xa6l pPaDwVYJK2LaSsmEBJv06Rosn1e5IXjAJ8fhkWb3Hw== X-Received: by 2002:a24:f584:: with SMTP id k126-v6mr511529ith.166.1539174600624; Wed, 10 Oct 2018 05:30:00 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a02:1003:0:0:0:0:0 with HTTP; Wed, 10 Oct 2018 05:29:40 -0700 (PDT) In-Reply-To: <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> <20181010122539.GI5873@dhcp22.suse.cz> From: Dmitry Vyukov Date: Wed, 10 Oct 2018 14:29:40 +0200 Message-ID: Subject: Re: INFO: rcu detected stall in shmem_fault To: Michal Hocko Cc: Sergey Senozhatsky , Tetsuo Handa , syzbot , Johannes Weiner , Andrew Morton , guro@fb.com, "Kirill A. Shutemov" , LKML , Linux-MM , David Rientjes , syzkaller-bugs , Yang Shi , Sergey Senozhatsky , Petr Mladek 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 Wed, Oct 10, 2018 at 2:25 PM, Michal Hocko wrote: > 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. I think Sergey meant that this place may need to use larger-than-default values because it prints lots of output per instance (whereas the default limit is more tuned for cases that print just 1 line). I've found at least 1 place that uses DEFAULT_RATELIMIT_INTERVAL*10: https://elixir.bootlin.com/linux/latest/source/fs/btrfs/extent-tree.c#L8365 Probably we need something similar here.