From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 240B7C433E0 for ; Fri, 12 Jun 2020 12:09:20 +0000 (UTC) Received: from lists.sourceforge.net (lists.sourceforge.net [216.105.38.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E959B20792 for ; Fri, 12 Jun 2020 12:09:19 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=sourceforge.net header.i=@sourceforge.net header.b="Q3n4IBqh"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=sf.net header.i=@sf.net header.b="S5BAdKWD" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E959B20792 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linux-f2fs-devel-bounces@lists.sourceforge.net Received: from [127.0.0.1] (helo=sfs-ml-2.v29.lw.sourceforge.com) by sfs-ml-2.v29.lw.sourceforge.com with esmtp (Exim 4.90_1) (envelope-from ) id 1jjiUn-0006kw-03; Fri, 12 Jun 2020 12:09:17 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-2.v29.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jjiUl-0006kp-UF for linux-f2fs-devel@lists.sourceforge.net; Fri, 12 Jun 2020 12:09:15 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=In-Reply-To:Content-Type:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=0z8NpPBTC8fx2bnuG8Z/NmM1px6+WjPFa2BhCesn7bM=; b=Q3n4IBqh5iYn2Z1C0Eipq/JCed XYN4n4uvnt76RtJoUjrYLFTdOJKxHEGqOti4bxK/SaN7PZG2iPvDvhKq1eKfVdy/MbKwsBcbRC94F r7jKZ5NwpjiBa8N7XAAAVRMQaSd0UeTcrsiP3OUbdzVIxGAtekxhhEIUSJSjFznJJTWo=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To :From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=0z8NpPBTC8fx2bnuG8Z/NmM1px6+WjPFa2BhCesn7bM=; b=S5BAdKWDK3BvJgXbK0WAbzNRb2 R5FFqsXnkIIy6EYjJoNJVM7UXcqD69YRxwYXk/UOIA3wz77/9m9XCCKuGw5aB59kYuMe1vhvU2gFi RIlWFTy04iL0EyzmisflnM5tLOlH+2cU/RoW1EJqrW4JeGt3mz9LXluOXoUvLqq3HDXk=; Received: from mail-wr1-f67.google.com ([209.85.221.67]) by sfi-mx-4.v28.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.92.2) id 1jjiUk-0038XX-KI for linux-f2fs-devel@lists.sourceforge.net; Fri, 12 Jun 2020 12:09:15 +0000 Received: by mail-wr1-f67.google.com with SMTP id h5so9503880wrc.7 for ; Fri, 12 Jun 2020 05:09:14 -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=fzqJmet95W2dGX4ZTPFG2Ly34nYWHw+irH8IVfArhCKtbAnejnUu1dCdYjr6gvQsfS ilGijpKTI4gOzo6NvFF4ZrsjruNWxadZ7fVf+4pHBGzXCEm9DAhTLjtG3AOP2X+sotR2 AjdyKMW0UxNmDMldXYPXQoZVkk1SvAH17NYm2+JKTekVG9UhWGWZHlj9cL0aCFhkwI+w X7xi38wonSZHznJlb+DdRuo6CLeJpt8/oeM6eXbj/Ubou0krvxzTUt0Ds4K0KpknIcKz yMhlJvAkV5BtBMRr8A0ykwJ4wI0I6Yky8c2hAyq0iq12hpNSAUj8FJCIG7YkwEM5wUgS mRkQ== X-Gm-Message-State: AOAM531s6ciT1jvITLbCww3zcWHTztKJrtTIjanvwqptSFY+7jJweJaN tHZyzJIS89wwMHx1gnDJvc7/5Ms3 X-Google-Smtp-Source: ABdhPJz1sL62XzpDAGQuQcumUUzvpkSfg7su7rAnvTQ7e/vCPEMTYoz1QoY8w+Uh8QVrBnRvZKmM4A== 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 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-Disposition: inline In-Reply-To: X-Headers-End: 1jjiUk-0038XX-KI Subject: Re: [f2fs-dev] mm: mkfs.ext4 invoked oom-killer on i386 - pagecache_get_page X-BeenThere: linux-f2fs-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: lkft-triage@lists.linaro.org, linux-mm , Yafang Shao , Andreas Dilger , Cgroups , Andrea Arcangeli , Anders Roxell , Hugh Dickins , Matthew Wilcox , Linux-Next Mailing List , linux-ext4 , Arnd Bergmann , linux-block , Jaegeuk Kim , Theodore Ts'o , Chris Down , open list , "Linux F2FS DEV, Mailing List" , Johannes Weiner , Andrew Morton , Roman Gushchin Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net 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 _______________________________________________ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel