Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp685484imm; Fri, 12 Oct 2018 05:11:28 -0700 (PDT) X-Google-Smtp-Source: ACcGV61wOQKAbJDuMgoY9/Mbp0WwHZ45vnQfPVlB93O/9HrXch22J36+V0qVoyNthiY+af5rA/4M X-Received: by 2002:a65:53c9:: with SMTP id z9-v6mr5351477pgr.203.1539346288781; Fri, 12 Oct 2018 05:11:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539346288; cv=none; d=google.com; s=arc-20160816; b=T44rExGHleQ+2gJf2i5xeqWazP+Z3H/BCbUhFXyqBqayYOISkNBC0BuGAddCGD4gF0 RhREZOr1GWS16aKO1ifDznkvzE14/dKjRRZyfgzBv06w2MJr6etN2dyjArYcaaWRQ2GL E34HotmeTPab8XaY/SCJYhY5G2nrhwswmEJ+wHZHkWefV4PcdFvSXHQM6NPaP1HmsZ1E HYvAVF+hr/cSkyGE+Ui3ZMgPFk5cD0xasXZgwjF0BcZGolAfxGb9xUjMUqAZUGmHfM6N yztIhwrxwrDHyiQj70DZfN6rHJcC62fEy2RxrK9xIOrCkrFH1rGpYPHePIDIxbEEob4P EJvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=DKU13RpMjQNFECvYQKC0OrZhH6Dsn8E/TWWRVsTRozc=; b=p0CaomnrxO7t+rQUhLYT9S7HaEkesNWR0udFTCiJWD4lqH+TSxjZcCjcFFrZWqKRuF DjzMc5ExWag29iT48PuZWp+bzPxZi3nLLu0KRiD8zE+QGksZ6CBscJsFq0ONbgWvds5X 4U153/u51CrpeqjWzESrHuyUM4yGr6SO8iGhxE2oSonjCcS1hX/zpvSpnhcdJgm2bl9c 0eH18lkdv1IP7G1Aekk41TC6+ihtek0nIWm0K5Xt6VetuyrigCGUOJamFXJyfMsBV8iK i8S/vkVu7JeEb0CVg42H+54kV2w9FH9IZhIC+MTwYyECZ5tSFJGUElqlxDc0nfVygUjk zUFA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t62-v6si1150868pfj.53.2018.10.12.05.11.14; Fri, 12 Oct 2018 05:11:28 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728595AbeJLTm4 (ORCPT + 99 others); Fri, 12 Oct 2018 15:42:56 -0400 Received: from www262.sakura.ne.jp ([202.181.97.72]:49624 "EHLO www262.sakura.ne.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728213AbeJLTm4 (ORCPT ); Fri, 12 Oct 2018 15:42:56 -0400 Received: from fsav110.sakura.ne.jp (fsav110.sakura.ne.jp [27.133.134.237]) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTP id w9CCAiLx064878; Fri, 12 Oct 2018 21:10:44 +0900 (JST) (envelope-from penguin-kernel@i-love.sakura.ne.jp) Received: from www262.sakura.ne.jp (202.181.97.72) by fsav110.sakura.ne.jp (F-Secure/fsigk_smtp/530/fsav110.sakura.ne.jp); Fri, 12 Oct 2018 21:10:44 +0900 (JST) X-Virus-Status: clean(F-Secure/fsigk_smtp/530/fsav110.sakura.ne.jp) Received: from [192.168.1.8] (softbank060157066051.bbtec.net [60.157.66.51]) (authenticated bits=0) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTPSA id w9CCAetM064838 (version=TLSv1.2 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 12 Oct 2018 21:10:44 +0900 (JST) (envelope-from penguin-kernel@i-love.sakura.ne.jp) Subject: Re: [RFC PATCH] memcg, oom: throttle dump_header for memcg ooms without eligible tasks To: Michal Hocko , Johannes Weiner Cc: linux-mm@kvack.org, syzkaller-bugs@googlegroups.com, guro@fb.com, kirill.shutemov@linux.intel.com, linux-kernel@vger.kernel.org, rientjes@google.com, yang.s@alibaba-inc.com, Andrew Morton References: <000000000000dc48d40577d4a587@google.com> <20181010151135.25766-1-mhocko@kernel.org> <20181012112008.GA27955@cmpxchg.org> <20181012120858.GX5873@dhcp22.suse.cz> From: Tetsuo Handa Message-ID: <9174f087-3f6f-f0ed-6009-509d4436a47a@i-love.sakura.ne.jp> Date: Fri, 12 Oct 2018 21:10:40 +0900 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20181012120858.GX5873@dhcp22.suse.cz> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018/10/12 21:08, Michal Hocko wrote: >> So not more than 10 dumps in each 5s interval. That looks reasonable >> to me. By the time it starts dropping data you have more than enough >> information to go on already. > > Yeah. Unless we have a storm coming from many different cgroups in > parallel. But even then we have the allocation context for each OOM so > we are not losing everything. Should we ever tune this, it can be done > later with some explicit examples. > >> Acked-by: Johannes Weiner > > Thanks! I will post the patch to Andrew early next week. > How do you handle environments where one dump takes e.g. 3 seconds? Counting delay between first message in previous dump and first message in next dump is not safe. Unless we count delay between last message in previous dump and first message in next dump, we cannot guarantee that the system won't lockup due to printk() flooding.