Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp948723ybt; Wed, 17 Jun 2020 18:46:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxWRDnoRfsNiOQn4aUSmEmJjni+rQP+kwS6x0krVdnNQR5P2OJWxfS+jfesSU0GEoE9NInB X-Received: by 2002:aa7:ca02:: with SMTP id y2mr1860346eds.106.1592444777726; Wed, 17 Jun 2020 18:46:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592444777; cv=none; d=google.com; s=arc-20160816; b=ZdNwG7wlVa9a0fcstU3Ii66fUkuez74bk5R3N7XeN7WaWPzwLx5qBAc4ukt+47Jijn z5PrsRV6X4JTH+/gL6Y4+CPdVNV/T+SJUWZT30QIeJrFxEDm2uPr9GYYRHa7R42I6xpa t9H3GW7yI+zOLOqLC+bVxIEkgy7BVhg5A33hkPv4aMgmDYW0T7i6FxHndbA4zf+5GONc xrJuZqTYy9zZNFikMKSylihqhhmUfKg8ZHuiOA2UkxiB4KuhDPylebb54kQvIJwUJ7NH vjbxpKUT1OcHSTDDXFb0Y+VlLS+BTAGroCJQaJzyM0MmmuG1dteqQtfK9uBx8OJpf1d1 +Tjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=/NV0zNhM4fAGBEvR6pS4jubz62WIXqxLs8Qbcn4M8G8=; b=j1ZsnvhoE4su26QvlmMkV+GtD445J9koYcm/WjfIcA/xnow+NwV/C5mWnBItzFOdz0 WrPg8vy2XbW+HNxZ6+XjzjDJxfAKKnh/Zs7gBwCXen8GEtawgAfgjyoRr/usoJPqeI47 e8UHSFyQMYwXcO9z4k2NXhzb4bZ2Lkl93ZRjJUlKHXSgz/JfPV+TT8gRyynLu5dgWPWp zPeQ4YZuI2uxywpx/1K6PVFxgz7PWJUOp+UbgtC7qvFzsHWXaxniSSVZ1zJN4dicFwTp KaE17bYPlkUl0yer/Z4ro4hBHDolzJ20rG5GD+9+eFD4gxOdYYn3Uk4MdhDac8hKL1Lg wYGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=dDcozoF3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dn11si1028071edb.170.2020.06.17.18.45.55; Wed, 17 Jun 2020 18:46:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@gmail.com header.s=20161025 header.b=dDcozoF3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730759AbgFRBnr (ORCPT + 99 others); Wed, 17 Jun 2020 21:43:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50440 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729997AbgFRBnm (ORCPT ); Wed, 17 Jun 2020 21:43:42 -0400 Received: from mail-il1-x131.google.com (mail-il1-x131.google.com [IPv6:2607:f8b0:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E92D2C06174E; Wed, 17 Jun 2020 18:43:41 -0700 (PDT) Received: by mail-il1-x131.google.com with SMTP id j19so4243037ilk.9; Wed, 17 Jun 2020 18:43:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=/NV0zNhM4fAGBEvR6pS4jubz62WIXqxLs8Qbcn4M8G8=; b=dDcozoF3gjERlnIYD/aopfiDz8+Xk7wB85tQ+JG+fS/wcxWZRWOO9ndR3j6DlLjase pakWhsVPQ1s1RE4tdxVgckkmbgQQmy7KzyUVIgo8XiewLQf5iDAQQHzmV55SqyA3ni0l UhO1lJ4tnxN9yr+l1R5SlEBFs6N7bGO1IezGVFxCOKnzKhYGlAd0C60gF1lzq5zPgtZ5 9JgAPTH5CwMDcYYdYBRFRY59OOo2Ufb2xXI6CZ33SNJk34h80UPpZg/jdNoIWaOmSADF HprtPmsk/lgc7E5A+WM5WfU02YavO+ic/3qkx+0n65e7+GL5yWyxbhFZWUcj97Z490uK AJxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=/NV0zNhM4fAGBEvR6pS4jubz62WIXqxLs8Qbcn4M8G8=; b=rIZaeZTMyB+E9IELLbPTjBPoCCaBgD3xQt1ws8BU4h9XstxN3oZN8RRILpTQ4uXQmv cXVnyuNmNjOsK9YJzEz/33jmCbeqZXOHypH4Zqr6izzZXuj0AtnuKmdNXfuxHbYRF2H6 j3eoZTp+6Rsa/iTM6VuJPmhM7cbez1oFBZ4FsG0xI2WpGUSKFKpMt26GsmJ8YRhiRgd1 JF7A9z+tUxOQaJ3YJusjuZmowsqkbr8kNn6dsC8UdxUiCTTeFRnXDw3bL3VRTJNzZAJz Qd2ngfmMwYX6ZcerUAuNG5bGYZn83XSt4PEPFvemdEu48FNflsj37H2WGLfe+nnZT5Mk QtOg== X-Gm-Message-State: AOAM532Bac1QzSwCth3YFWtbUrdp2SmwUmrp6GQ3dBHgcArhsOSGaf50 lIOM/P6Ix+OA6HFX3w6m06pzkFXlG1Jfpy7sikM= X-Received: by 2002:a05:6e02:542:: with SMTP id i2mr1867971ils.203.1592444621188; Wed, 17 Jun 2020 18:43:41 -0700 (PDT) MIME-Version: 1.0 References: <20200520190906.GA558281@chrisdown.name> <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> In-Reply-To: <20200617210935.GA578452@chrisdown.name> From: Yafang Shao Date: Thu, 18 Jun 2020 09:43:05 +0800 Message-ID: Subject: Re: mm: mkfs.ext4 invoked oom-killer on i386 - pagecache_get_page To: Chris Down 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 Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. -- Thanks Yafang