Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1304924ybt; Thu, 18 Jun 2020 05:44:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwqrFJRCztOZri3nnO1hV89hK5lU9bmcB3dV3szU0/llu6qhk+P10q00aYdxL1kKD6W3flM X-Received: by 2002:a17:906:c9d6:: with SMTP id hk22mr3646736ejb.101.1592484257107; Thu, 18 Jun 2020 05:44:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592484257; cv=none; d=google.com; s=arc-20160816; b=pq0SRTJeoLg0cKQA4JLggX1Pg62R6Fr1YdQ01oChas5yh3hlK4u2efusjJ+iJJcXf7 8qD2SfSrz81FnVeZpKP0v364IbuEldrfZJOlQgJZdC4lMGD+QHkN1STAcCt7RPV+IzXN GJmNSeYb597xY0IxCzJare+Xi94wJNSq0muq+qDTRqcMiCZLhUovKQOb16JzvF6j7rRu xQdDk5v1Udmj75fU0T4liqAcGvJWfScDd5FIJL6C4WbqUF0EoezkhW+H7nLbk01O+/Uj oZibWnQT7ACSNnazZLfMAOo7h6NRrVQkFIWl7qa3bbJdMc0fBJx+2W6B0sH8nIjufSgF b1JQ== 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=GwWWgp6poedvgja7RNEoGmK1y3wNcNo/q/dYBmBGoA8=; b=iJTJvQL47BvzCFqV1rX1SMnQcJPETGHJDckyk+0FM3IVCUr5oKcWtD6xJUUacYzfIl j02vKe4NNa3z2wNJyC31TpGHs6inP+fc2QWqOM3UYPFu6RwmKi5LZmq+u/1GX5WTFCYz R2DPGiI7FOdQDh0hKDfu3HXU93mBT1glImRqFPtYKiDp0o/J1pQA35KluC1TGGcYwdaw gnxfYlnWU8/l0Gsn6UCVHRjy/viFlQO0qm95ekf2YL98d55eK02btD8ca66VVjNR2Sku ldE2uj0JhAudPwke+o5OEqwWLUet3Hfd9Am9CPwx26dIUJiGbCo7FW9csCoevLYBzokZ JnLA== 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 bc12si1920021edb.348.2020.06.18.05.43.52; Thu, 18 Jun 2020 05:44:17 -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 S1729145AbgFRMlh (ORCPT + 99 others); Thu, 18 Jun 2020 08:41:37 -0400 Received: from mail-ej1-f65.google.com ([209.85.218.65]:40645 "EHLO mail-ej1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727091AbgFRMlg (ORCPT ); Thu, 18 Jun 2020 08:41:36 -0400 Received: by mail-ej1-f65.google.com with SMTP id q19so6243055eja.7; Thu, 18 Jun 2020 05:41:33 -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=GwWWgp6poedvgja7RNEoGmK1y3wNcNo/q/dYBmBGoA8=; b=o8iKAGvPelZ799l0MgRR7gBeWope4OBEX/NDyfdtQx5l0XVPqxEXTLkzyAN8zAqTka pCTFcf4Mq3hXNkb73wjBquHHGOlZ0TV4DtXn7IsriCM5ZU2uu5gnd5ys4MEfFtVYASqe aovR3jFsdDdD5WpKqeR7mT+EoiB1BCO7Gm6c7Xu1Txjj6mXz4j5TMGt+yhHzYdOShA4W ZKjJBG6kCVog1crDs4rjS/+VuE7MVtYo9JyKTIikWISY5ySFs+N0d1ojPvHmzSjbQSKN RYHKamwenkP+F3qVryByBY1PJHDyCH0oFqkjWQbINQrlF/R+eeiPujCrBGsRDnglaOcs 6oYw== X-Gm-Message-State: AOAM533EKMj4LcuBj/8vMS6Z0z+u1pZd4xAn5TE1HUrnLeHZqgUxJiMH lyrhO7HzZyvFURM84sH880Y= X-Received: by 2002:a17:907:20e5:: with SMTP id rh5mr3971654ejb.80.1592484092440; Thu, 18 Jun 2020 05:41:32 -0700 (PDT) Received: from localhost (ip-37-188-189-34.eurotel.cz. [37.188.189.34]) by smtp.gmail.com with ESMTPSA id dn15sm2375487ejc.26.2020.06.18.05.41.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jun 2020 05:41:31 -0700 (PDT) Date: Thu, 18 Jun 2020 14:41:29 +0200 From: Michal Hocko To: Chris Down Cc: Yafang Shao , Naresh Kamboju , 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: <20200618124129.GC15447@dhcp22.suse.cz> References: <20200521163450.GV6462@dhcp22.suse.cz> <20200617135758.GA548179@chrisdown.name> <20200617141155.GQ9499@dhcp22.suse.cz> <20200617160624.GS9499@dhcp22.suse.cz> <20200617210935.GA578452@chrisdown.name> <20200618123743.GA694719@chrisdown.name> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200618123743.GA694719@chrisdown.name> Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Thu 18-06-20 13:37:43, Chris Down wrote: > Yafang Shao writes: > > 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. > > I agree that the current semantics are mentally taxing and we should > generally avoid exposing the implementation details outside of memcg where > possible. Do you have a suggested rework? :-) I would really prefer to do that work on top of the fixes we (used to) have in mmotm (with the fixup). -- Michal Hocko SUSE Labs