Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1301937ybt; Thu, 18 Jun 2020 05:39:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxdWQWBelDODfD4MwEnAXTS4G+zW87N1Y/gyi0XchR8AEyZUWTcRgWhhsITBjLoPre+addc X-Received: by 2002:a17:907:b05:: with SMTP id h5mr3469323ejl.499.1592483965752; Thu, 18 Jun 2020 05:39:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592483965; cv=none; d=google.com; s=arc-20160816; b=Pi4Rewbr0mmbKy7Ku5ueWXm7aAh+MgwNyETwKVaS1BHiPpjL8zdgy/bsePh2QZwfmS 1M7fVJLMyjv+L+PgpaPAFMqFz4CrHDjT5qqBpANun96NxT7ZQnhzd2cwpni7nm0n2mc9 w0iq5e0E8RTk/v5J8QN6D42Z2e3ekBaA0eGZnDFHW/JfD030to5GB2N/hSh/Vhu8GuNA NbrKXAshjjLgbnY5knJKuXKtObTiyOzbzjLp4MMgiCLhOnxuOhJP5pEXyprSGF6qUHpZ 3EkZ2oCvmUllfOFV8YvHBIj7oAtFYV72RT+jdgm1yiELHGo4lpLIhvRtPvTIP0yoACEE 3FWA== 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:dkim-signature; bh=OgZomFoj/7toYCBCKWRo7nq/kYdKAWeXt05LtEajY3k=; b=aFtMU0hwWUqYc69rn/E0m6h6x4nNlnQ8F0BKPMTPYcIhc9S1ZQtmGA8nbgdPN/MHke vjPTcIJKKJvpDmGGbKBaUWOB6q/9QGlRFxch2s0QusAWK7JZTIMmki4CujZsm6jPNtxD IrJ2TJhV8anIljNhMZnKEtVqUoiMHWTFJc2H6cjke7Z0lgAV3ykcQMd4msqoCJM3O6Oh E63t8X9KP3e2Ayv3pFwCqeHCQAEIpi0gysVdi6pIe2zo+Nc/GKv2b398H31MwP3WmoYa VweOxas1OiUEUVLMeqytaUJuK8fHQrsTkgH5D/jddW6H6FZjwf7pGgrBcNaYf+FEPMG2 mzsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chrisdown.name header.s=google header.b="Vba3/YBp"; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chrisdown.name Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p23si1719786ejb.483.2020.06.18.05.38.55; Thu, 18 Jun 2020 05:39:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chrisdown.name header.s=google header.b="Vba3/YBp"; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chrisdown.name Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728974AbgFRMhr (ORCPT + 99 others); Thu, 18 Jun 2020 08:37:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727022AbgFRMhq (ORCPT ); Thu, 18 Jun 2020 08:37:46 -0400 Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1466EC0613ED for ; Thu, 18 Jun 2020 05:37:46 -0700 (PDT) Received: by mail-wm1-x341.google.com with SMTP id d128so5485405wmc.1 for ; Thu, 18 Jun 2020 05:37:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chrisdown.name; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=OgZomFoj/7toYCBCKWRo7nq/kYdKAWeXt05LtEajY3k=; b=Vba3/YBp135F4zjZnb2RedWXF2lwu1lFFL34CLaNpxPjPTPlt0UR472eYi5S4YZ1Wx Z0rDK+6Hs9d3o0cUOdxwi2SS36Jq5bWlnav7DNmZNgJpcMQ+D8caGFIGg/ORh0SmmPxl k69/g/gWD8TgMCYkGiY2Wz/GRty0LMQ/SrbXk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=OgZomFoj/7toYCBCKWRo7nq/kYdKAWeXt05LtEajY3k=; b=iI3Qx9k1WUV4n6tftLQjE1VwPvvWNVqexyi6txK6RG5RfRuQP55JASBkkpksV/25ZV qaTLHYx53KckuU5pcLP1U9dx8pzBSVF7nw9waQod/aS5vmWw1t0zmQa4m/h05Mw1sWKI GFsyFQvIUnH6EZKau1poI1sYvajVsgIY2HW1nu5VOYD7JQhpCMFOu08snsK+/judn3CO KWwbre3puz9Gy1wFZLRwlH0aDWwD2mGygZVOcaApu3aqM1sV7lVXJ3XCQhWuVFkrN7p+ B0jgsc/0gZQphAkatn4nO/AepcEcAleZsXz9AthOc1Q+2DdweEgp7WdY8msSMmYEde69 clAQ== X-Gm-Message-State: AOAM531WxL66XGeia+RXpcrluhPm1Wn0zbkyTjdMHBoINWQTd3Ivs5NY 8qLuSehY/6Gq8ScT0sm2FpSSiA== X-Received: by 2002:a1c:4143:: with SMTP id o64mr3734793wma.157.1592483864725; Thu, 18 Jun 2020 05:37:44 -0700 (PDT) Received: from localhost ([2a01:4b00:8432:8a00:63de:dd93:20be:f460]) by smtp.gmail.com with ESMTPSA id t82sm2586962wmg.10.2020.06.18.05.37.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jun 2020 05:37:43 -0700 (PDT) Date: Thu, 18 Jun 2020 13:37:43 +0100 From: Chris Down To: Yafang Shao Cc: Naresh Kamboju , Michal Hocko , Anders Roxell , "Linux F2FS DEV, Mailing List" , linux-ext4 , linux-block , Andrew Morton , open list , Linux-Next Mailing List , linux-mm , Arnd Bergmann , Andreas Dilger , Jaegeuk Kim , Theodore Ts'o , Chao Yu , Hugh Dickins , Andrea Arcangeli , Matthew Wilcox , Chao Yu , lkft-triage@lists.linaro.org, Johannes Weiner , Roman Gushchin , Cgroups Subject: Re: mm: mkfs.ext4 invoked oom-killer on i386 - pagecache_get_page Message-ID: <20200618123743.GA694719@chrisdown.name> References: <20200521095515.GK6462@dhcp22.suse.cz> <20200521163450.GV6462@dhcp22.suse.cz> <20200617135758.GA548179@chrisdown.name> <20200617141155.GQ9499@dhcp22.suse.cz> <20200617160624.GS9499@dhcp22.suse.cz> <20200617210935.GA578452@chrisdown.name> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.14.3 (2020-06-14) Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org Yafang Shao writes: >On Thu, Jun 18, 2020 at 5:09 AM Chris Down wrote: >> >> Naresh Kamboju writes: >> >After this patch applied the reported issue got fixed. >> >> Great! Thank you Naresh and Michal for helping to get to the bottom of this :-) >> >> I'll send out a new version tomorrow with the fixes applied and both of you >> credited in the changelog for the detection and fix. > >As we have already found that the usage around memory.{emin, elow} has >many limitations, I think memory.{emin, elow} should be used for >memcg-tree internally only, that means they can only be used to >calculate the protection of a memcg in a specified memcg-tree but >should not be exposed to other MM parts. I agree that the current semantics are mentally taxing and we should generally avoid exposing the implementation details outside of memcg where possible. Do you have a suggested rework? :-)