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=-1.0 required=3.0 tests=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 B2A93C433E0 for ; Tue, 19 May 2020 07:52:19 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 80B702075F for ; Tue, 19 May 2020 07:52:19 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 80B702075F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 09E7880007; Tue, 19 May 2020 03:52:19 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 04E7C80005; Tue, 19 May 2020 03:52:18 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id E324080007; Tue, 19 May 2020 03:52:18 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0009.hostedemail.com [216.40.44.9]) by kanga.kvack.org (Postfix) with ESMTP id CD76780005 for ; Tue, 19 May 2020 03:52:18 -0400 (EDT) Received: from smtpin03.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id 81F67180AD811 for ; Tue, 19 May 2020 07:52:18 +0000 (UTC) X-FDA: 76832700756.03.smell64_6b6740d8e770a X-HE-Tag: smell64_6b6740d8e770a X-Filterd-Recvd-Size: 4511 Received: from mail-wm1-f67.google.com (mail-wm1-f67.google.com [209.85.128.67]) by imf16.hostedemail.com (Postfix) with ESMTP for ; Tue, 19 May 2020 07:52:17 +0000 (UTC) Received: by mail-wm1-f67.google.com with SMTP id m12so2017737wmc.0 for ; Tue, 19 May 2020 00:52: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=q9ehllzv4GXD6PHjLq8rxZ0NEvwuAG+BryL3jyLoW3I=; b=Qenb41qOqr56Dvs0q4DXs9U6HanUQNliPP3hqZhzxWZzxvLb/i+yv71UYbLcoDT2Ev WJFbu01yeLuqtT0OUhBowQigTxPb7xLZ9UE1QMU61p7wwsFKuw5D0kkZ6XoSKTN9u5v3 3BCf2/iOLe30ZKTLqVO0pDQjMlhgefzzNnFKHXIB9tFVu0xXHxw/uPLz4ONSccfDqLgY Pj1ki0CDUZlr6vVRIdrHZ4Zu/zjvVzxinx1XjyP5+nkm/66dc2GMXHfR4BAczYLD8ZGL TCL+VhK5nzfSTgH2MRgV/DdQ/TTDTSNQpqgxH/sgp/g95vWTqUuGxQiQtT4ExiM9DRZn p2/w== X-Gm-Message-State: AOAM530T6ndG5jlgrRr4KnwC2WKKpnVj9Uyda3Sedq80i9iyOujNtIuz ZVBKu0DU3TfR8ct6/yJatVE= X-Google-Smtp-Source: ABdhPJzhMPJJ+bOTnb0XzxprTwcOOTMoZpRkuCsUFILfWTJFhfoKhfdBOE3Io5xf2x700pgQq1fN2w== X-Received: by 2002:a1c:1902:: with SMTP id 2mr3881648wmz.178.1589874736792; Tue, 19 May 2020 00:52:16 -0700 (PDT) Received: from localhost (ip-37-188-176-234.eurotel.cz. [37.188.176.234]) by smtp.gmail.com with ESMTPSA id q2sm19274851wrx.60.2020.05.19.00.52.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 May 2020 00:52:15 -0700 (PDT) Date: Tue, 19 May 2020 09:52:13 +0200 From: Michal Hocko To: Naresh Kamboju Cc: linux-f2fs-devel@lists.sourceforge.net, linux-ext4 , linux-block , Andrew Morton , open list , Linux-Next Mailing List , linux-mm , Andreas Dilger , Jaegeuk Kim , Theodore Ts'o , Chao Yu , Arnd Bergmann , Hugh Dickins , Andrea Arcangeli , Matthew Wilcox , Chao Yu , lkft-triage@lists.linaro.org Subject: Re: mm: mkfs.ext4 invoked oom-killer on i386 - pagecache_get_page Message-ID: <20200519075213.GF32497@dhcp22.suse.cz> References: <20200501135806.4eebf0b92f84ab60bba3e1e7@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Mon 18-05-20 19:40:55, Naresh Kamboju wrote: > Thanks for looking into this problem. > > On Sat, 2 May 2020 at 02:28, Andrew Morton wrote: > > > > On Fri, 1 May 2020 18:08:28 +0530 Naresh Kamboju wrote: > > > > > mkfs -t ext4 invoked oom-killer on i386 kernel running on x86_64 device > > > and started happening on linux -next master branch kernel tag next-20200430 > > > and next-20200501. We did not bisect this problem. [...] > Creating journal (131072 blocks): [ 31.251333] mkfs.ext4 invoked > oom-killer: gfp_mask=0x101cc0(GFP_USER|__GFP_WRITE), order=0, > oom_score_adj=0 [...] > [ 31.500943] DMA free:187396kB min:22528kB low:28160kB high:33792kB > reserved_highatomic:0KB active_anon:0kB inactive_anon:0kB > active_file:4736kB inactive_file:431688kB unevictable:0kB > writepending:62020kB present:783360kB managed:668264kB mlocked:0kB > kernel_stack:888kB pagetables:0kB bounce:0kB free_pcp:880kB > local_pcp:216kB free_cma:163840kB This is really unexpected. You are saying this is a regular i386 and DMA should be bottom 16MB while yours is 780MB and the rest of the low mem is in the Normal zone which is completely missing here. How have you got to that configuration? I have to say I haven't seen anything like that on i386. The failing request is GFP_USER so highmem is not really allowed but free pages are way above watermarks so the allocation should have just succeeded. -- Michal Hocko SUSE Labs