Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1273049ybk; Thu, 21 May 2020 02:56:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwpsM5IjNm8fWa7sDjQZtkhSNYkNybBUsUCQcrL1Kp/NkFUKtDdzaud623lZy58QnswHk+K X-Received: by 2002:a17:906:f85:: with SMTP id q5mr2653527ejj.344.1590055004051; Thu, 21 May 2020 02:56:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590055004; cv=none; d=google.com; s=arc-20160816; b=TEI5HohYM/sIs6eenYUdQRRHOFhSzv7Hn7aFn5Jlz3mJFCXAdVflPI4gmqnInohiAd jM1NcMiskW1/HRcJ50uFkKv2adjZJTRufmpzsDLfJ2FM+51Zu3VMRC8tFYLebc+Qeqcr 5PHDduCbeBjMcIyiT5UkNe1opFD1REveUsCT9e9ebqNVBoyIvLUYR5oIsOfClNw292Mk UYiT/84YLgSd8UC0WYk9zPu2QMXoQ6iC3nFZMkDzCI1u0Mk9cde9Ly+HR46/TRAkwXO6 nCjKzaXvmrYlhs2pWD1nvMcUBl1Rr6P/jttmiBgurdAeglsPmRhQBYsxsqhMkctW5LEO lWcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=3bYIDtSe0AYOWKep27yvyR4GhELIyYbRcGxHnYqpsNk=; b=GAnJ0CDjlATF2FDOC8AOpldw/iRfbRJzaY+q/c5G6e/9mYJimMY25o70mb/4QuamXt ZLTUMK9f7HJImlfXrpfZ7kqT7MwhGL8ARLHnqZDIedjnT3RsGoP26L8GJgcN+7eg+r6S akp/Vz/ITGBnx4abja9ysNshrGKKq+gjcgyfeM/4lS6raJPVF8njbD07nPb4tG5NLJe3 MJqrfyFjtZ0QCpJ7YXhe8Pc+ylzyyAQXd+KyMa3ExJ1daoSb+pGniuuA0E8x62rLBhKp mfL/gSAmEJ8fC18rvvjetpEVheeunCs/NY5LTn4t7uO7P/2WPItQA2Ym/GPnaDmrJtvU i3/g== ARC-Authentication-Results: i=1; mx.google.com; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gh17si3051645ejb.517.2020.05.21.02.56.20; Thu, 21 May 2020 02:56:44 -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; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726882AbgEUJzU (ORCPT + 99 others); Thu, 21 May 2020 05:55:20 -0400 Received: from mail-ej1-f66.google.com ([209.85.218.66]:37644 "EHLO mail-ej1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726804AbgEUJzU (ORCPT ); Thu, 21 May 2020 05:55:20 -0400 Received: by mail-ej1-f66.google.com with SMTP id l21so8068704eji.4; Thu, 21 May 2020 02:55:17 -0700 (PDT) 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; bh=3bYIDtSe0AYOWKep27yvyR4GhELIyYbRcGxHnYqpsNk=; b=PRKR26Lz0e+qdIbEKH2d4X5454Hjintqj25qzGCUiD/kEfLjr9IXRWPQRWoHeqGY4u p35iqCdZlU9fz+6AiiCAH49ZFayzQkE7o1cIUvo2Z6V1tcg3kCX80SeTB1ACmSliGte/ NDt1ZwiXQO7XqdXGS/4SAH27Y+s1LLrB+hSLWyLqz9J5IyTS7SQ1m8OW+tcfwR3wHeCt 1QahWIEuUunpBK8u4m6Z8rWVZ2qMUtZ5YElgF3HEH31I27S6mdFBz6M2JelQ3kpiAwBP ZWmGo8hBxp3UXKykO0j5f1LZh0Fn8mShQJfHTHM0TpYir61E3TH3qqouhmDYHmC9NBls UKEg== X-Gm-Message-State: AOAM532tUFI12dY9zTjGxaP6ss43+zPWTJ0Jx3dINb+OPcSaD1N8WaIu fM3j7EMeA8BCevq3siyuroE= X-Received: by 2002:a17:906:3a11:: with SMTP id z17mr2778167eje.460.1590054916702; Thu, 21 May 2020 02:55:16 -0700 (PDT) Received: from localhost (ip-37-188-180-112.eurotel.cz. [37.188.180.112]) by smtp.gmail.com with ESMTPSA id z12sm4507462edk.78.2020.05.21.02.55.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 May 2020 02:55:15 -0700 (PDT) Date: Thu, 21 May 2020 11:55:15 +0200 From: Michal Hocko To: Naresh Kamboju , Chris Down Cc: 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@vger.kernel.org Subject: Re: mm: mkfs.ext4 invoked oom-killer on i386 - pagecache_get_page Message-ID: <20200521095515.GK6462@dhcp22.suse.cz> References: <20200501135806.4eebf0b92f84ab60bba3e1e7@linux-foundation.org> <20200519075213.GF32497@dhcp22.suse.cz> <20200519084535.GG32497@dhcp22.suse.cz> <20200520190906.GA558281@chrisdown.name> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200520190906.GA558281@chrisdown.name> Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org 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. Btw. do you see the problem when booting with cgroup_disable=memory kernel command line parameter? I suspect that something might be initialized for memcg incorrectly and the patch just makes it more visible for some reason. -- Michal Hocko SUSE Labs