Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp811733imm; Wed, 10 Oct 2018 04:50:55 -0700 (PDT) X-Google-Smtp-Source: ACcGV614auxUua0Q9vqr18l5muW5s/dxoXXHJg4Qag6O3GPNobNsgKV3KzyTns8B+8GXO8pBqN8s X-Received: by 2002:a63:2019:: with SMTP id g25-v6mr8913302pgg.235.1539172255563; Wed, 10 Oct 2018 04:50:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539172255; cv=none; d=google.com; s=arc-20160816; b=EUkgVPimWZtH7py1YrhaTjXAHKi9JKZMHrnUw//sqVhangNwVlxh9qGhCfrESw4mSd jLx3pZd1NbgL9W6Jw7bkVxkmxortRzC9Je5ZvAf3l2V5V1PP45h/kzKBgLkrJi84MB1M lDIpsTl7aE3+ZBSEHa0HOKMS+NdwO7Df9gcj+3KzruaMhLX8NspSRkHr5gYRcyvlGQqE BlRK2XDM3ZhqqNHRKN1SSltLc/xBOL2anYMXD2iskO3mtit6A74Bnw7Yiv8mTXkAgALA ME2GtI2i/Jp7yDJdQRP4+ec4rP7YLMS9jSlg9qGo8zZvb5yq2Exm+ZbdIr+dOW3DYjG/ WU/Q== 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:date:from:dkim-signature; bh=F9rX++vGHuUVTHBx+RFzH2Dn0pBlm6wwSZMASPuD7SI=; b=wUilQpAqgbX/cx9MSZyQ0+ZR8Eqblbzt7vyWog1fWFuWnbwsb7P1lBP1c/QL2/OyiL xS0CCR1RYNb1gFpYqxeO+dKpxEpzmRIYvC4fe21B3gq4+HauBo3vyg0l2yhplmRFvOnc 5klCXqv0970vynRFQHXSVnLrjvh86R2Sb6J8PzsUpyyY7umYmvkLfApn7JuOuBs6Re0B FaJV+TCT7WEt4GmAWnbp/jTLZqhzUPgL6eWHjneENPAG++W0LXaJZc8W2RblZJLa0zxP kpDscLCnYR7b1KUU1A6B8jyxMno7Md7EhOOjRWliiM3Ud7MAWTtzyAq8xynCI/EYXwpT 1opw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=oYfuJZ21; 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 b13-v6si27446226plm.275.2018.10.10.04.50.40; Wed, 10 Oct 2018 04:50: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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=oYfuJZ21; 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 S1726788AbeJJTKg (ORCPT + 99 others); Wed, 10 Oct 2018 15:10:36 -0400 Received: from mail-pl1-f194.google.com ([209.85.214.194]:39300 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726206AbeJJTKg (ORCPT ); Wed, 10 Oct 2018 15:10:36 -0400 Received: by mail-pl1-f194.google.com with SMTP id w14-v6so2418206plp.6 for ; Wed, 10 Oct 2018 04:48:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=F9rX++vGHuUVTHBx+RFzH2Dn0pBlm6wwSZMASPuD7SI=; b=oYfuJZ21idS0i7mMiLtpFk/WQxesC0htAnq2gDyArprwfbFmyu62Rd6Q38SuWJOtC0 HbQ71bkTg1dcxeaWl+dGmypjd2Uulla2PnIlRhb2iBzZTholHO2zM+1031mUntPfcmvu q1U4uiK9D9G2gF22DMhLK5TueCdA3AyGEmWNwXR+gT7M2zCUOOapLZtTuMt0Hn3PUM91 Taukb/XtJ2SXtgXTW3x1Lk+I3xoJvgFWMGE3rUGaS6JC6Hl3BWBZ6gUioJC3DoSa9uZ0 9+XzvMghUDfxZfY1kfhb/D2w7j4y2/ET1f9yLCNQV4N8iTiLb1t+zOvpezbkrRepexVf Hr0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=F9rX++vGHuUVTHBx+RFzH2Dn0pBlm6wwSZMASPuD7SI=; b=Qw+sRcP1F8Da51QhQ+G2r8PDFobTtk9HZl1jWRnuWtWpiEbUuACw3JYXusnL/JhM48 mWovRTLi7rEDaLAD+RWMMHt8rKvV5ovkh0bvgSSYEnizZcrjayys6P5anM49+sc+xN7n ravy2ge+ItyYRzfcq3o96zT2BBsjcTgtf6hXUFa12rbHDQpuXVnGrS1iOGnk8Usf2sJE 99dNeW0GJiMWfDIy7ZRHH4uuxgz++uXacvUxMl1PqsSQJdiowAQ+V1PBMCrCGCQfDSBN yNaf1qbj+JUuEzAVzDtlJ0hIKwt0TU0D5DdrUHivR9FQxpJf9xEA/96t/oLNN8zufjR7 t84A== X-Gm-Message-State: ABuFfohRC5Z57pZCbu9q07LeNQeYj7lcjh9aqbwtupgQiECkjaQxAynw C4mEQozOcLaGlhMlc5OBI5c= X-Received: by 2002:a17:902:934a:: with SMTP id g10-v6mr33344138plp.288.1539172129172; Wed, 10 Oct 2018 04:48:49 -0700 (PDT) Received: from localhost ([121.137.63.184]) by smtp.gmail.com with ESMTPSA id c124-v6sm38452056pfa.119.2018.10.10.04.48.45 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 10 Oct 2018 04:48:48 -0700 (PDT) From: Sergey Senozhatsky X-Google-Original-From: Sergey Senozhatsky Date: Wed, 10 Oct 2018 20:48:33 +0900 To: Michal Hocko 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 , Sergey Senozhatsky , Petr Mladek Subject: Re: INFO: rcu detected stall in shmem_fault Message-ID: <20181010114833.GB3949@tigerII.localdomain> References: <000000000000dc48d40577d4a587@google.com> <201810100012.w9A0Cjtn047782@www262.sakura.ne.jp> <20181010085945.GC5873@dhcp22.suse.cz> <20181010113500.GH5873@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181010113500.GH5873@dhcp22.suse.cz> 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 (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? -ss