Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp4011043imm; Tue, 11 Sep 2018 05:43:27 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZsm86LQBQ8/+CZTLM/kIbryvBxG0nFM5I2npWq33KQ6jp3vMEu3ZfBr8uLzPIb+lrPnGa3 X-Received: by 2002:a17:902:bf46:: with SMTP id u6-v6mr27029061pls.85.1536669807051; Tue, 11 Sep 2018 05:43:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536669806; cv=none; d=google.com; s=arc-20160816; b=L0UCwDvTslE/cHoaSGWtsRdqAQ4aJ48TzdOILSiFbgMMN0Sp+maxZQWkOS9BEzSO2H RIPSPV7dZQFr9M4/xwKg33rLcHE8pZpKLzKm+Zf/670Z4CF3ZoivqGYUUVv37D7ogL4a 1AJvzgsJx69kkRYiGkHAUNoUSjj5c7WrzgQZASal6rDdbJ3+aWZ9BwXubJnmuk7g0ziO srFUTOTunPid2SWTUmJp4HEpU9CVn0OLToZeoY4KoGUA3atZ/14xQmUYnG7LtyBs6Kxb 7s1YIxNhqLt2yGXvPMctiSa7cY1Xvy8JvDODUEwlpKw3VMHcpEHbr6Ie8g7XzlKkDCtk nbwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=GwuQtBCW5Os0wMzRJSsa+/Q08wV1imtXj1xAS6Yq1mQ=; b=mRJpMn1sf0NPCAvDd77eK5RiyIs4EQmyJ5KspGgnAHfwsXbG5s+RfUT8rUZXl3cGYh PhadlPjxh0LxwGug7hmNicG0b37URAYQduzyrzFa3CJ0MmLh55dL+v6GX8Pz53tpggzd kkEL5m14t3Mh4y8E1Wi+4FE2j39c/UTf+fcrbN8M3dPFJNg6MuOlzGlw/+V1+tcMcrmf 3WRBoUq+9APRl2Vr1CSdwcKop72UgEAs9x8yDqts2XZL240fcWNvWRhxHCBUIFOt92vx /tKsHvZD2CyTHvRhAv+mPAh2gq3abNyH3Ms+WPVljK/O4anzYqbGvvUXHIKTynJPvZvm X/Hw== 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 l5-v6si21111359pgb.234.2018.09.11.05.43.10; Tue, 11 Sep 2018 05:43:26 -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 S1727790AbeIKRkQ (ORCPT + 99 others); Tue, 11 Sep 2018 13:40:16 -0400 Received: from seldsegrel01.sonyericsson.com ([37.139.156.29]:7541 "EHLO SELDSEGREL01.sonyericsson.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727125AbeIKRkP (ORCPT ); Tue, 11 Sep 2018 13:40:15 -0400 Subject: Re: [PATCH RFC] mm: don't raise MEMCG_OOM event due to failed high-order allocation To: Michal Hocko , Roman Gushchin CC: , , , Johannes Weiner , Vladimir Davydov References: <20180910215622.4428-1-guro@fb.com> <20180911121141.GS10951@dhcp22.suse.cz> From: peter enderborg Message-ID: <0ea4cdbd-dc3f-1b66-8a5f-8d67ab0e2bc9@sony.com> Date: Tue, 11 Sep 2018 14:41:04 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20180911121141.GS10951@dhcp22.suse.cz> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Language: en-GB Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09/11/2018 02:11 PM, Michal Hocko wrote: > Why is this a problem though? IIRC this event was deliberately placed > outside of the oom path because we wanted to count allocation failures > and this is also documented that way > > oom > The number of time the cgroup's memory usage was > reached the limit and allocation was about to fail. > > Depending on context result could be invocation of OOM > killer and retrying allocation or failing a > > One could argue that we do not apply the same logic to GFP_NOWAIT > requests but in general I would like to see a good reason to change > the behavior and if it is really the right thing to do then we need to > update the documentation as well. > Why not introduce a MEMCG_ALLOC_FAIL in to memcg_memory_event?