Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1253764ybk; Thu, 21 May 2020 02:23:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxxfATIEyvXivEmqIG6MfUYkyFyNibw5i0DVqQjhvoyZoePSJdLMQ7WWM2P8bYgXqE8pwiD X-Received: by 2002:a05:6402:1775:: with SMTP id da21mr7229594edb.271.1590052980818; Thu, 21 May 2020 02:23:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590052980; cv=none; d=google.com; s=arc-20160816; b=IGwwzB8l4ViinH06bys9DvObBOA5bcTzksQvXtQ1anFUCdVw6BcqBBD0gIvnsmI+21 uuLMOueAuSO4WI2MdtV+Pbkub4gDBTU36PH3zNdOcsS3i6qjo1mT58s8GiDCYA33X+xc QllHS0mKlcrEnPqP/hnrcHRVikbc6nWA3djkzPi43buL+9/UDlJ/rrE8dgWPnIFFrAv4 3j00fs3leVSZBSTBFEY8r5JDGzllw1OSSH1LVNNO3SCLJMz866jAmRP8rXzmQrq8H812 8JF6BZ4hvJWPFWBPMkNklyfNClNCn9sLXIMgq2HIZdsaS1FwN2w0eHVt6h526Wxi0ws/ GoEw== 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=FIbEyFSF9lKlh/sPieDWc1oRqrvi4vGBjOrvNTlDQgI=; b=jfdCq38IDvmL87RXwq1JRzLbIan6DG6PfiIKhvlxCvSnfSLiGdqsOBWAlnRhrMWzYx UR8uiEHkE7p1uwAx3zaDjSA966nUps15IQmwpPHWMB/tM8bmwdufKLhkyUqWiphj7TOf 9Y0AhsScsp/+YqvuwSQTYKQiI+y8c8cf8Kq7Qn7zaCAuo30vJLkmSeBgN87ZOtBsY8Ho YvwP28mJq0oPCJ0ua0jDAAZptqPij/WnSh5DS93iB+dXlOOAlQNso8LxGqhQF/FsnBds OVfsv3tOnG7m6KqV7U3cXqX//lM7hYq71GLEXOpPgmHD6gyHb/KCrY1vfFn8QmBDk/t4 XWvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Cr+vYd5d; 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 v18si3153800ejb.705.2020.05.21.02.22.28; Thu, 21 May 2020 02:23:00 -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=Cr+vYd5d; 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 S1728729AbgEUJWY (ORCPT + 99 others); Thu, 21 May 2020 05:22:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35274 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728810AbgEUJWY (ORCPT ); Thu, 21 May 2020 05:22:24 -0400 Received: from mail-lf1-x144.google.com (mail-lf1-x144.google.com [IPv6:2a00:1450:4864:20::144]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1DB87C05BD43 for ; Thu, 21 May 2020 02:22:24 -0700 (PDT) Received: by mail-lf1-x144.google.com with SMTP id a4so4029181lfh.12 for ; Thu, 21 May 2020 02:22:23 -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=FIbEyFSF9lKlh/sPieDWc1oRqrvi4vGBjOrvNTlDQgI=; b=Cr+vYd5dIpgIP1m+dtPF8wLQuyM7qoaALMgtSirDDMRRIgqxpytD0hrSF2zko/x5mk l/G2FXraKn8PMsmRDq4Un6jQXt2HJ4hL78VRPU+qdLES1+ToQVDFdGiGtpaOGLK7F2zM 6MKEL1a7yiV4ickufkf1ggX7LbmfPLokTuBN2TG1x20EISryRLnvWvNBgcl/y8m7/sVI MO9cnUWS6iHrtzbq50+WiROYQCTdiEG/ExnjIv1i160UasocMEWgmgikQ3pbvdWCeIhi xdBAwAYfUkhH3wWYCwg1eVm4WzkttSXEgcgDwM0Fh/LeRJSCjz+QgsRbYOOK7ojMzFLX xICg== 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=FIbEyFSF9lKlh/sPieDWc1oRqrvi4vGBjOrvNTlDQgI=; b=YRThBMzSvBYOxFR7ldMc2WYgufRew725n4TYmttcPDcliOOxlXrSIYZIm9XZNgHXFD UGuZavmrNzAEigDIjkRVkcf//c5xFzCKwjhm+SL577lds3sykujewhcCveaywrfMt0f0 M9k20PrkRHYNkUfRZcJeqFmj9uTnDKh2W8Yc/+oQ/wtDzLIXvjjcA7erv1zd2JrdpPPY 4lMDzllWixNgqZ5ACrTEALpvuFSlfCRRLQAnzQu84YNMXdRONCyaFQHbR1xmRJHjGly5 8AEoRZa0y7fI8feJxayQ+UU31Im7wnm707KEQNOOU4sp3Yp8LrqYHa/70V5Zl9AcbiQh VsJA== X-Gm-Message-State: AOAM530dFLhrPhLHkC9KQIfV7NiDLdYNxc+Y1FmgZzG153oo2IxmlD+s rPY2J2T18nTji3e5dTHuWRNFdLBA+Y9al6WV9M05sw== X-Received: by 2002:a19:641b:: with SMTP id y27mr372964lfb.74.1590052942272; Thu, 21 May 2020 02:22:22 -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> In-Reply-To: <20200520190906.GA558281@chrisdown.name> From: Naresh Kamboju Date: Thu, 21 May 2020 14:52:08 +0530 Message-ID: Subject: Re: mm: mkfs.ext4 invoked oom-killer on i386 - pagecache_get_page To: Chris Down Cc: Yafang Shao , 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-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Thu, 21 May 2020 at 00:39, 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. > > Since you have i386 hardware available, and I don't, could you please apply > only "avoid stale protection" again and check if it only happens with that > commit, or requires both? That would help narrow down the suspects. Not both. The bad commit is "mm, memcg: decouple e{low,min} state mutations from protection checks" > > Do you use any memcg protections in these tests? I see three MEMCG configs and please find the kernel config link for more details. CONFIG_MEMCG=y CONFIG_MEMCG_SWAP=y CONFIG_MEMCG_KMEM=y kernel config link, https://builds.tuxbuild.com/8lg6WQibcwtQRRtIa0bcFA/kernel.config - Naresh