Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1657820ybk; Thu, 21 May 2020 12:01:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwzb/QNZhg8rN7upyz1LmMez8+5cxHjNYudjIXiKJj+L0EYp8tIfgGOP1TwyymZGX9o6tvG X-Received: by 2002:a05:6402:74b:: with SMTP id p11mr96329edy.229.1590087702600; Thu, 21 May 2020 12:01:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590087702; cv=none; d=google.com; s=arc-20160816; b=BGghrVl4WiwoOXOB+2OX9iBTy1iv0GeEr0aiIwxw08ozz/K+Mg+SRxUG6jIlUWbWyb jhMzTAcTqKk+g428HoWjjwbkmZoriCUwvlYtUK31gcxwbQUzRak6Y9PuulyzeHbsChD7 urcXExpsMGKtPjfqYkKlVt2lQgKMFKXTN+yImSNuHTWEp7jpN72Bp0w6TR5K7Lt13ZqJ P5ecHltdqW9xsLxxW2plHlMKbBXh4uXAIvmFJI23nNQ5JcY4Krmu0wZ7IB5yAhgXzlHO 3i9T88Hj6RxQujkkP6j57Zfba7cCEeOBoF3r/fJmEP1BoiS2mQGS22DO/HXMHIH1qEhS +Xcw== 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=AXqOJl5SmNS23EUn7DmXTUU6aYLgyfPvo+AUamH08Ps=; b=xltzC6E2WbKP2BFPt8ud9ebkHd4yvjffIvIediC6QLsfFVgFgqWRil+SCQIMT27Qs/ LPd9Xs9dkoMEJ5ke8Hv/WhtOU9j/plWf1Ch8ogWaavn6nZZ3NDwWeV5SQsWGlCPuiwVm F8X6Aof0F+EiPkAT2QQDdMQz1q9qnTJJ//XZ6rK2usvoVwApTnhk7Zpd2xSzQ4wffxBp wrf8Xp/hCLYLmbgA21J/XkeihX+OQN8lbTM5KFu/rnZ5JnsIJV6BTyOrNNIo+m4LxgUY ZYx2iXWNdINFLmJsyripYmrufzlxdZCmALVsjV0S+Dig+0gZpzrllSnayq1hZ1wsgHhf zWeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EV5SVn70; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k13si3212993edv.394.2020.05.21.12.01.09; Thu, 21 May 2020 12:01:42 -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=@linaro.org header.s=google header.b=EV5SVn70; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729990AbgEUTA2 (ORCPT + 99 others); Thu, 21 May 2020 15:00:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41048 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729793AbgEUTA1 (ORCPT ); Thu, 21 May 2020 15:00:27 -0400 Received: from mail-lj1-x241.google.com (mail-lj1-x241.google.com [IPv6:2a00:1450:4864:20::241]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3DB3DC08C5C0 for ; Thu, 21 May 2020 12:00:27 -0700 (PDT) Received: by mail-lj1-x241.google.com with SMTP id z18so9577088lji.12 for ; Thu, 21 May 2020 12:00:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=AXqOJl5SmNS23EUn7DmXTUU6aYLgyfPvo+AUamH08Ps=; b=EV5SVn70MuPiXaA+/GpI4b2qrg0jB93InY/vaKKkvXw3rt6V19F3iaEfufdWjb2vSa LFgwuEMLZ0kF+u4vLem/Ho+YYOlDTSymGzxy0FWxZiHOsB3Pb3GSFPQ6THq8MehoMw81 61D12qPxoVMXCVN5YnrMpoSh0ZCOqjVhvK2/icCRVt/PPsd4BcWFGL0kAP/7zDq1hN3x a1rzoPThWH5HcKX0GiUC4cxi3kkuCMXpV76kYKiXipe6YgwkiIKVt/YehTDSxdT8FKMQ CKv5YcXmrRHEWyhnCcxlLCZV3yGZBNkQfBJxwnNbBjgGPVYWSZIk3apxM0beTrE2kQJt vtEg== 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=AXqOJl5SmNS23EUn7DmXTUU6aYLgyfPvo+AUamH08Ps=; b=ibXGyIsYys9Cqy2asiKX6Zw25OVCtmCmYMoc9eycgoWKdf60VEeGIpBoZKQV5HgDYf xgsONRenMpS46a+VBtkBdAzsbLAbi8suoyCJfgtOVlrEb1xJHTbevpPnXFMWhYs+UNwX Nupukxm3bjsDPAieVAc5oz7Suq3mwh58ulPpBhS9gJtWDJnKCAg54su2Of0UHJpmDK7e r4yGV2caTc4Hik5jdwc3wvUasvpCL42KDqlcPx9Cxjdq5sfbL3ylnTt+wTjM0G1KvZ7V dyKZKWhWqMcoRE3181KAxVxmrsTCe6PiJm+8LxZWAvmug5I89qNmFcajLa9okc2l70Vl WePA== X-Gm-Message-State: AOAM5315zwpnTOkcihuOGUqp8GmPlTaxB3cDfzqxSp0/ThilgCGCBpxB JVKsAE3Ezgzo6y2sXH0MS9EWuicyyDK16sCafmxsTA== X-Received: by 2002:a2e:6c0c:: with SMTP id h12mr5664520ljc.266.1590087625478; Thu, 21 May 2020 12:00:25 -0700 (PDT) MIME-Version: 1.0 References: <20200501135806.4eebf0b92f84ab60bba3e1e7@linux-foundation.org> <20200519075213.GF32497@dhcp22.suse.cz> <20200519084535.GG32497@dhcp22.suse.cz> <20200520190906.GA558281@chrisdown.name> <20200521095515.GK6462@dhcp22.suse.cz> <20200521163450.GV6462@dhcp22.suse.cz> In-Reply-To: <20200521163450.GV6462@dhcp22.suse.cz> From: Naresh Kamboju Date: Fri, 22 May 2020 00:30:13 +0530 Message-ID: Subject: Re: mm: mkfs.ext4 invoked oom-killer on i386 - pagecache_get_page To: Michal Hocko Cc: Chris Down , Yafang Shao , 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-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Thu, 21 May 2020 at 22:04, Michal Hocko wrote: > > On Thu 21-05-20 11:55:16, Michal Hocko wrote: > > On Wed 20-05-20 20:09:06, Chris Down wrote: > > > Hi Naresh, > > > > > > Naresh Kamboju writes: > > > > As a part of investigation on this issue LKFT teammate Anders Roxell > > > > git bisected the problem and found bad commit(s) which caused this problem. > > > > > > > > The following two patches have been reverted on next-20200519 and retested the > > > > reproducible steps and confirmed the test case mkfs -t ext4 got PASS. > > > > ( invoked oom-killer is gone now) > > > > > > > > Revert "mm, memcg: avoid stale protection values when cgroup is above > > > > protection" > > > > This reverts commit 23a53e1c02006120f89383270d46cbd040a70bc6. > > > > > > > > Revert "mm, memcg: decouple e{low,min} state mutations from protection > > > > checks" > > > > This reverts commit 7b88906ab7399b58bb088c28befe50bcce076d82. > > > > > > Thanks Anders and Naresh for tracking this down and reverting. > > > > > > I'll take a look tomorrow. I don't see anything immediately obviously wrong > > > in either of those commits from a (very) cursory glance, but they should > > > only be taking effect if protections are set. > > > > Agreed. If memory.{low,min} is not used then the patch should be > > effectively a nop. > > I was staring into the code and did not see anything. Could you give the > following debugging patch a try and see whether it triggers? These code paths did not touch it seems. but still see the reported problem. Please find a detailed test log output [1] And One more test log with cgroup_disable=memory [2] Test log link, [1] https://pastebin.com/XJU7We1g [2] https://pastebin.com/BZ0BMUVt