Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp418180ybg; Fri, 12 Jun 2020 05:09:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyyR79tFWhKJCPvuET7mv8Tv8EOGSqSWOvtBdxlB6OEVTZ7C553zGK2LatJpD/d5dqfooya X-Received: by 2002:a05:6402:31bb:: with SMTP id dj27mr11585214edb.156.1591963797791; Fri, 12 Jun 2020 05:09:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591963797; cv=none; d=google.com; s=arc-20160816; b=qnlx/tL2tCiEEiavZP8xrx5Ptdbxak8F6Pd3472jN5yBu0CayHFobZbIR0c65ZrTts ZgHRSwOBzgX99b/IyZ6luLCyTs99XzfOMdtnq0UpAxqtXjqMX8BLF3HzBug4Lt9Pz1mO 51+4HGL44FvH7ncjJ7ia1F1mwsgVHW4xC7AdG16bkUgoDpmpKGJQk5JhO+wfGftlQ66F N+W1phf7rcrm3LwN/bVLXKJ2JKFfz7ZpenSt9QeXsheInGtjfsSSAx6TWQg71QEZ2hX5 nHM8KYB20rqHZabcYqLJCO4d7EENmb6Kwe8wG00gT+zjczycCNkSybzLLZbEuo0xCWAe BpOg== 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=0z8NpPBTC8fx2bnuG8Z/NmM1px6+WjPFa2BhCesn7bM=; b=DDBVGbQ7n6N1OtfGrEwPBcJteJnyKaqJZp0gnEUzl3MMAprvT28zgx3UsVng1WGidK dlowv6gJf2KtA5jHVR+K98kkW4UFoflWiw/vGz6I7WAsp3vvt4kkSCZ3AgEMOABgY79p vEyXW2iiGslXB9LKYICkc4jf/0N0Vkns5DPuNkL6UX1q86ID28kqkgoFA9qsFBf5wSRf MZgsQr85yqHQZ6laweGwQgQN7Z9eskgs6fhDrps942txRHSQJVQdbgxS3AdcF5YGRuQo SxoHQSk6Hqwc8T7vqWkp5uMP2CYyJmon4V3ILlcmgvmBc5o/o7rpDFTn1fiVAfQMrj7U 9uEQ== 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 s9si3667134edx.608.2020.06.12.05.09.25; Fri, 12 Jun 2020 05:09:57 -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 S1726053AbgFLMJM (ORCPT + 99 others); Fri, 12 Jun 2020 08:09:12 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:36922 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725791AbgFLMJM (ORCPT ); Fri, 12 Jun 2020 08:09:12 -0400 Received: by mail-wr1-f65.google.com with SMTP id x13so9494574wrv.4; Fri, 12 Jun 2020 05:09:08 -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=0z8NpPBTC8fx2bnuG8Z/NmM1px6+WjPFa2BhCesn7bM=; b=dwnmoXthax/50cYKAd2YDKOcoUZGZ40vfZxg8MCacIHv1HWxewXKYMVXB6iepuaAD1 DUoRH8fH6vP6uZePzk2ZbBA35FsWL9StD0xCH3yuU5Kfylnp1F2OQY/YOxznxRN0ta53 5NNXNtWr3a9ZFnER1wWXh12ZTJx2mKUa/ax28gJnxUDfTaDY0VVsBS9U6vkkVJOkfYy3 WrLnQLQx3PinJv9PsOWt5O6SvJGoQGRmbV8KYKKCMqtTu+FrLMzn2MV3JdA1rYv6imWK P5OnZpf0A/Tq/XDBVA2LF3wKX3f5ZNqPlRplNEhPpkmDEQ+yyQYC5rQkFjj+gNCHEF5w rhuA== X-Gm-Message-State: AOAM531xfznxpy8lXvdt7BeWSnJgiUnkLe5E3nbDJryK8/aP8D/Ze7lg gCAVB9vF2Fkict2wXAM65rM= X-Received: by 2002:a05:6000:1104:: with SMTP id z4mr14545075wrw.272.1591963748046; Fri, 12 Jun 2020 05:09:08 -0700 (PDT) Received: from localhost (ip-37-188-174-201.eurotel.cz. [37.188.174.201]) by smtp.gmail.com with ESMTPSA id a3sm9652169wrp.91.2020.06.12.05.09.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Jun 2020 05:09:06 -0700 (PDT) Date: Fri, 12 Jun 2020 14:09:04 +0200 From: Michal Hocko To: Naresh Kamboju 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 Subject: Re: mm: mkfs.ext4 invoked oom-killer on i386 - pagecache_get_page Message-ID: <20200612120904.GA8641@dhcp22.suse.cz> References: <20200528150310.GG27484@dhcp22.suse.cz> <20200528164121.GA839178@chrisdown.name> <20200529015644.GA84588@chrisdown.name> <20200529094910.GH4406@dhcp22.suse.cz> <20200611095514.GD20450@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Fri 12-06-20 15:13:22, Naresh Kamboju wrote: > On Thu, 11 Jun 2020 at 15:25, Michal Hocko wrote: > > > > On Fri 29-05-20 11:49:20, Michal Hocko wrote: > > > On Fri 29-05-20 02:56:44, Chris Down wrote: > > > > Yafang Shao writes: > > > Agreed. Even if e{low,min} might still have some rough edges I am > > > completely puzzled how we could end up oom if none of the protection > > > path triggers which the additional debugging should confirm. Maybe my > > > debugging patch is incomplete or used incorrectly (maybe it would be > > > esier to use printk rather than trace_printk?). > > > > It would be really great if we could move forward. While the fix (which > > has been dropped from mmotm) is not super urgent I would really like to > > understand how it could hit the observed behavior. Can we double check > > that the debugging patch really doesn't trigger (e.g. > > s@trace_printk@printk in the first step)? > > Please suggest to me the way to get more debug information > by providing kernel debug patches and extra kernel configs. > > I have applied your debug patch and tested on top on linux next 20200612 > but did not find any printk output while running mkfs -t ext4 /drive test case. Have you tried s@trace_printk@printk@ in the patch? AFAIK trace_printk doesn't dump anything into the printk ring buffer. You would have to look into trace ring buffer. -- Michal Hocko SUSE Labs