Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp154898ybm; Thu, 28 May 2020 18:59:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzqpxN66grEykAaXpRZPxlzNWdKut52qTEkofaaIL3ZqVWAFaQonCSiWw3L5hRC3yKnYfAj X-Received: by 2002:a17:906:fb0e:: with SMTP id lz14mr5470612ejb.237.1590717573902; Thu, 28 May 2020 18:59:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590717573; cv=none; d=google.com; s=arc-20160816; b=okDIDgAie4xhz/A50RKpjEYlKcy35J2jsBr71NK0jmU8tdxb1XJUUQbjCXbaQMVHTG DFoR3GZ1LiE0MO9HiRKF1W5L1ApU/9iXVOFwhb+Zu/0PIZvvdTvyNrt30Ci2HwYRNsbB gv5n8pVqcig9AmsgleCaZlvT76O5xdjwKa156kTg7xGdOm292UrZhs+UcVad53G2mgMs ScaGdspZOxEhcymiduQTuXI6btBRntj8MF1iMpBNUtluAbKkFabZ2Lv4bPqmTTApO/Vd Ccckxy84WvbM0fD7uNA6QAdKXvV9p3rPojYd/t4djd2Y9tCf0htxvvmK5hIXt9BR3wm8 AUOg== 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=GN9DgkPdwejhyEVH1kmP5gS0KBOAcxSeuTuQOx2XI9o=; b=wfIoWkSp6jVcssOa0FcymFw4Pa1l9SEaT/nNxGz1vVMdCDBRX5WAPQu66Le/ccZ6dV zGa+lkw/YGJ5SuVDNiF/9fAXcNsYkVpAs9idYvLx0s5g20cs26hnAVxHDaI397hB/qMt Q+qyBPuEju+pWmrOvBF8jTvnX1JqoiBlTQgQrRudNKvSofG7gJmujNU5UbjwjVBhqgam CnygwkBm6CgO7+zuVoUMINozPY1Ogyynn6LxGCihKuvGRwHeBivcoFqjc8hsYF3g5PWh 8j+O3Nge/Gr0XcoHOxdeQFil97GoyRArb6wyEaq2BSrtSeiaHGzG08AHXr3CywcBgkSm Fzsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chrisdown.name header.s=google header.b=lkBaXTV2; 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 bq16si5101871ejb.322.2020.05.28.18.59.09; Thu, 28 May 2020 18:59:33 -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=lkBaXTV2; 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 S2404585AbgE2B4x (ORCPT + 99 others); Thu, 28 May 2020 21:56:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36464 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391547AbgE2B4v (ORCPT ); Thu, 28 May 2020 21:56:51 -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 6BFB4C08C5C9 for ; Thu, 28 May 2020 18:56:47 -0700 (PDT) Received: by mail-wm1-x341.google.com with SMTP id d128so1451633wmc.1 for ; Thu, 28 May 2020 18:56:47 -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=GN9DgkPdwejhyEVH1kmP5gS0KBOAcxSeuTuQOx2XI9o=; b=lkBaXTV2ZUB6ZO5yX3Ng0K/CASCbc9oNlaDIc8KLZ8e4v2cb+z5+AxOSC0HUqdLw42 pPHQXKJiXMf7fSmverIul8xSND7c0ygaABLVaG0hqIXTL8OJ4e0fS8l8+kZ0LHaXgNsT f3Y+1qQWXh34SIawtNNfPuqOwbkRTPMzu6he4= 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=GN9DgkPdwejhyEVH1kmP5gS0KBOAcxSeuTuQOx2XI9o=; b=rsy0Xt6Q7VgpRdVj+TNSEP/VtFpoah1JcIxOobxq//TSkppNvp9093E4T/EsJrXoR1 XgA0+a28n4x39/xQQcLv1f8MfGtJc8gYwl+L/JvSSSV84h2pceCmcFLcJ/BokWODW4hR ojWxf5ivWETwl6ezi2y6wWv2tIxu3zYEDk4UwuI3XNhWCt0iuilPUtAilXuCUgf01je9 H/9/uApJ1oU064zdLfSbv5iE3Nn71yCGdRf3Pa2G0xhvsb/3PXKTHXx9UvqvjdOrBZsl I8Pl5LvIPZgLe3BJXYcwY7lW6xqvYxDuds1rXctaFFScfoQjkUcWUJcv7ADP2zepjIhn A3+g== X-Gm-Message-State: AOAM533CWQbIT6vaVVQw1yQbVxZqobdM8MEFaMkn6Ui02stMHcwU029Q UU4A3vUNn4Y7wiN38oyXhvwGSw== X-Received: by 2002:a7b:c096:: with SMTP id r22mr6033969wmh.92.1590717405871; Thu, 28 May 2020 18:56:45 -0700 (PDT) Received: from localhost ([2a01:4b00:8432:8a00:56e1:adff:fe3f:49ed]) by smtp.gmail.com with ESMTPSA id q11sm1858042wrv.67.2020.05.28.18.56.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 May 2020 18:56:45 -0700 (PDT) Date: Fri, 29 May 2020 02:56:44 +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: <20200529015644.GA84588@chrisdown.name> References: <20200520190906.GA558281@chrisdown.name> <20200521095515.GK6462@dhcp22.suse.cz> <20200521163450.GV6462@dhcp22.suse.cz> <20200528150310.GG27484@dhcp22.suse.cz> <20200528164121.GA839178@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.2 (2020-05-25) Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org Yafang Shao writes: >Look at this patch[1] carefully you will find that it introduces the >same issue that I tried to fix in another patch [2]. Even more sad is >these two patches are in the same patchset. Although this issue isn't >related with the issue found by Naresh, we have to ask ourselves why >we always make the same mistake ? >One possible answer is that we always forget the lifecyle of >memory.emin before we read it. memory.emin doesn't have the same >lifecycle with the memcg, while it really has the same lifecyle with >the reclaimer. IOW, once a reclaimer begins the protetion value should >be set to 0, and after we traversal the memcg tree we calculate a >protection value for this reclaimer, finnaly it disapears after the >reclaimer stops. That is why I highly suggest to add an new protection >member in scan_control before. I agree with you that the e{min,low} lifecycle is confusing for everyone -- the only thing I've not seen confirmation of is any confirmed correlation with the i386 oom killer issue. If you've validated that, I'd like to see the data :-)