Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1695223imm; Thu, 21 Jun 2018 00:38:39 -0700 (PDT) X-Google-Smtp-Source: ADUXVKITBxhcRsD25DQ4qc3AR6qJ3IgPenKsL9xSICD25rT5uAfcnvRZ0r0/h6wA86JNgZE2AtcR X-Received: by 2002:a63:b609:: with SMTP id j9-v6mr21770538pgf.335.1529566719630; Thu, 21 Jun 2018 00:38:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529566719; cv=none; d=google.com; s=arc-20160816; b=xsPyyn19qKUYBIAumxnIvVot4s7/1+U1JSoIW1sxJ8kcRAt+aG74ZaUdQJJQu3alqV jV8annEi9Q6hatLMxWEdpzBurWAd5FmZ3JQhudW4bluc3wRAsnon3aRcLPDUpstS4C6m GD6apyxGIFYuyJU8IGqha34EdtixthO6sfeMmXU0wHQ6UH8JrgkKmrCaKv3HGcIDR8QO 56JmXPkb18ns6uRk268hm44PSGiDasqLtEz6sxodqU7/nMaZRgBI84pmS+u1DMXqNEOs cgj6s1OZ1dK9AS0pCsNT+8QshxQuDDEFnLuA6arf6TdttzsCLHnXD0vUVzNf96buA1aU 4XGw== 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:arc-authentication-results; bh=lhEc67/4QEBFEq/k2ymO/wf1GqRCzKhiVkEyE98Nm+k=; b=BMXBr/DFMtvsxR/r3wcoVz37IRidFmqZTNKHBadVx1aXu8euypRCYI4koMoZHTZTcL yA+jfimpmAeDyjDESNVMpd+BTzjUO22enj2dagFIOphAKcnXAJFlq6TUSMFR1kGtrC2C PPjl3XZ1aRqeo4iYlXptbe4Bi3P7olN856gXTggWwpqf34tpMGGHbmhQQs6GpKkAlkfj WVTwt7fUy3fw8hVQYE0cTQCep324TKCl/JPmB4ZE/L2NXztSOb7aXWZpz3qzysapfrnT 1DpzvyMQd4s6ppmaHHy8+uVTWNrkS6xpU8JqjV4Sb0+F6lKlHRoM9FNTiYKdqKdzjf/5 Lp7w== 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 k3-v6si3426559pgq.28.2018.06.21.00.38.25; Thu, 21 Jun 2018 00:38:39 -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 S1754304AbeFUHgx (ORCPT + 99 others); Thu, 21 Jun 2018 03:36:53 -0400 Received: from mx2.suse.de ([195.135.220.15]:33971 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751150AbeFUHgw (ORCPT ); Thu, 21 Jun 2018 03:36:52 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext-too.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 169E1AC28; Thu, 21 Jun 2018 07:36:51 +0000 (UTC) Date: Thu, 21 Jun 2018 09:36:46 +0200 From: Michal Hocko To: Johannes Weiner Cc: linux-mm@kvack.org, Greg Thelen , Shakeel Butt , Andrew Morton , LKML Subject: Re: [RFC PATCH] memcg, oom: move out_of_memory back to the charge path Message-ID: <20180621073646.GB10465@dhcp22.suse.cz> References: <20180620103736.13880-1-mhocko@kernel.org> <20180620151812.GA2441@cmpxchg.org> <20180620153148.GO13685@dhcp22.suse.cz> <20180620193836.GB4734@cmpxchg.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180620193836.GB4734@cmpxchg.org> User-Agent: Mutt/1.9.5 (2018-04-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed 20-06-18 15:38:36, Johannes Weiner wrote: > On Wed, Jun 20, 2018 at 05:31:48PM +0200, Michal Hocko wrote: > > * Please note that mem_cgroup_oom_synchronize might fail to find a > > * victim and then we have rely on mem_cgroup_oom_synchronize otherwise > > * we would fall back to the global oom killer in pagefault_out_of_memory > > I can't quite figure out what this paragraph is trying to > say. "oom_synchronize might fail [...] and we have to rely on > oom_synchronize". Hm? heh, vim autocompletion + a stale comment from the previous implementation which ENOMEM on the fail path. I went with * Please note that mem_cgroup_out_of_memory might fail to find a * victim and then we have to bail out from the charge path. -- Michal Hocko SUSE Labs