Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp3312514ybk; Tue, 19 May 2020 01:12:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxSkHj88Qha1MdaX0z5LvNvVpRoUheaI4oal+JirvcC8ZY2j0jbDyFWz/g6eSDqNfZgY9zY X-Received: by 2002:a17:906:1857:: with SMTP id w23mr18862565eje.273.1589875952614; Tue, 19 May 2020 01:12:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589875952; cv=none; d=google.com; s=arc-20160816; b=lZ2ADU9uRLCpqejK3nyEe2xmSZBCT5t+5urERWj3hNxYdvhOaj7riV0UiBQ6GV9ajX 1fJkrXOsWH2HZMQ6nKmOfz49mYA+Y/UneJYDPsGz6KLlLuSa33wG1TCe5/NcOF8k3IXF SYEUOYHhH7w0848hpx9lpe9KZT1rYCbDsAQipoiZXXbir7Ay82FXeiDURJKfWGoNrbTq CHTp/LdHbGeQtg+jxh2ciSNdsjfYv2zh4ZMPUEsVVIWQPnNsQy1Ja9OXUF9WAsmIRo8c H1ldvG3DU7NR3+ZFlwfooSjbKDcaKNLUIFfqE4KYsAARgZaq0tEl/heA0VaK0QXeMTQ8 rpcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=SIEMLhuI2j/tP4ZKiNZCmoLQcBISGVYT22LEmWN3Et0=; b=EC5wFWjAuNKp/HmnkohmY3qOA9RvMljASe41+cBSDhctvhWAAYt0BQHq7fWdfBnRvC aauc4YCaAfxnGjwb8/xdfpZeH3z9fFu6P09TPE8C/jy8aI4S7n/yXNvL5h7hVkAoX9V8 1mrecoE3JgwEPv2L6Fgl/omyL4w+McrwrWTHq9eBxv7apeUKZXg5W9hPbzrPTJX63WfC 3s4+dkAlL3bMGABSHRkzT/2qxV/EMGPnSB8Hf3tlIQX27XFt/KgOK8UAw1THyghBD+YW gXCv3lxRYDC+uXpopatPzPv9An6wGNfH5DP8n3wXqwz5+/5URVZeaNsXd1FAhJmInYvn vJmg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y43si8587065ede.404.2020.05.19.01.12.08; Tue, 19 May 2020 01:12:32 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726333AbgESILt (ORCPT + 99 others); Tue, 19 May 2020 04:11:49 -0400 Received: from mout.kundenserver.de ([212.227.126.130]:32807 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726318AbgESILs (ORCPT ); Tue, 19 May 2020 04:11:48 -0400 Received: from mail-qk1-f180.google.com ([209.85.222.180]) by mrelayeu.kundenserver.de (mreue010 [212.227.15.129]) with ESMTPSA (Nemesis) id 1MMG6Y-1jJyQo3ZBe-00JIG7; Tue, 19 May 2020 10:11:45 +0200 Received: by mail-qk1-f180.google.com with SMTP id g185so13774114qke.7; Tue, 19 May 2020 01:11:44 -0700 (PDT) X-Gm-Message-State: AOAM530DaOx6VGD4hAtL1MtDchRPiAqc8ofyewQS4diTO0MnWW+lLrUg 4oN4bcjyKAHfcf+Wz1vur9k4+YZZBgETN85Y6iQ= X-Received: by 2002:a37:aa82:: with SMTP id t124mr18447360qke.3.1589875903344; Tue, 19 May 2020 01:11:43 -0700 (PDT) MIME-Version: 1.0 References: <20200501135806.4eebf0b92f84ab60bba3e1e7@linux-foundation.org> <20200519075213.GF32497@dhcp22.suse.cz> In-Reply-To: <20200519075213.GF32497@dhcp22.suse.cz> From: Arnd Bergmann Date: Tue, 19 May 2020 10:11:25 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: mm: mkfs.ext4 invoked oom-killer on i386 - pagecache_get_page To: Michal Hocko Cc: Naresh Kamboju , "Linux F2FS DEV, Mailing List" , linux-ext4 , linux-block , Andrew Morton , open list , Linux-Next Mailing List , linux-mm , Andreas Dilger , Jaegeuk Kim , "Theodore Ts'o" , Chao Yu , Hugh Dickins , Andrea Arcangeli , Matthew Wilcox , Chao Yu , lkft-triage@lists.linaro.org Content-Type: text/plain; charset="UTF-8" X-Provags-ID: V03:K1:2/mAmEdLTn1HGgMYfMHYI+jtPMkkNSk61dkTTHTMQH78jKNjHU0 /MgCf92uJ27qRjxKmEqcmyBuW+bQhtuYlH4oo+3kZVwSbR9mwCoXoDGR9yg5IiFN02jdIf+ MW7go5jPQhVxGK34JppEJKAwvA3tJhq55I3YPzfRPY9AHeVt1GJel0JEkN/uBcFXRtHvEco ab9CQEc7l/7/7HkRM9OWA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:6KykcjFhjmQ=:LLXV0qw1dXrPKBJyO7uXLI S7ohXmM68ZCBLiT1sDMs0CPPwQRzxCCPtR8DzAJizCdb/qwlOFkjz6GUN74SObx0g6xGgmM+a x3xjIMoAAs9Ec8LvidgLlDzvronTa/nKK9TKZDCcVYnbIJrKd1NORcRfG0BLKfFb1hJMnykH1 a+ilOJpLl99n7nH3klZJL3NppTKLUJJAvEc+sO+BzRxe3pIpIkzrfGZFT8kGUhO6SMwRB9TIH miiuWcNCBUwJ7nsoL7IhQzrZrVoEipUHOsGpNGx8UzMaZkM1Xnbhq4iPazBu0hBuy09i8VogG Jc04uj9CcVfJJqRJ1N+bCV8xuZo9M6thWI8hl1NPE+EU71PsNCdkqEXhFNZDv1UXqU9Vrfry5 O8tWru8gdILfzQBi7OdHEOrFeUeQEIfZ2lI6vczGDRNbgmCXKJ4+UH5zJcheDuWoRqRuiP4J1 M6bI7uqJiZbsLk71SpW2XJFtKqh9P3kmZcwUZq6YxQBxxPm2fq9xKAu4PYI60SsdLUiNp82ea yhWlGasyUUTAO7k1Jb73KuoL0Aumoj75/mxfrkO6fFEA30+oSNEDB7c5ZGnW4iogqi8/1vlt9 XwIjSBExYqCIj7PqUj2ue6SDJbfjUwrUQclmDfomglAJ0j8JeowbDbhLKuAxPP6pyl7oLUZUq UCdaxwDKOGx6EZIb8Fu2vw13sgG/Rsjs5m44IqCCBsxvLjQUYo/FfIjAHPE4plVh41VHpFJpT GAhWuw+qNbtM4q6w/rlx3DsWI7oospXsSTkOsASShFRdsG0SiNBv1ueb29mn4UKwunXUpwQD0 HMhCgPFcf3IaVVGWzRM8lee5MUz1ThcGaCRjrCdOZ3RAgjx+U4= Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Tue, May 19, 2020 at 9:52 AM Michal Hocko wrote: > > 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. I think that line comes from an ARM32 beaglebone-X15 machine showing the same symptom. The i386 line from the log file that Naresh linked to at https://lkft.validation.linaro.org/scheduler/job/1406110#L1223 is less unusual: [ 34.931663] Node 0 active_anon:21464kB inactive_anon:8688kB active_file:16604kB inactive_file:849976kB unevictable:0kB isolated(anon):0kB isolated(file):0kB mapped:25284kB dirty:58952kB writeback:27772kB shmem:8944kB writeback_tmp:0kB unstable:0kB all_unreclaimable? yes [ 34.955523] DMA free:3356kB min:68kB low:84kB high:100kB reserved_highatomic:0KB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:11964kB unevictable:0kB writepending:11980kB present:15964kB managed:15876kB mlocked:0kB kernel_stack:0kB pagetables:0kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB [ 34.983385] lowmem_reserve[]: 0 825 1947 825 [ 34.987678] Normal free:3948kB min:7732kB low:8640kB high:9548kB reserved_highatomic:0KB active_anon:0kB inactive_anon:0kB active_file:1096kB inactive_file:786400kB unevictable:0kB writepending:65432kB present:884728kB managed:845576kB mlocked:0kB kernel_stack:1112kB pagetables:0kB bounce:0kB free_pcp:2908kB local_pcp:500kB free_cma:0kB [ 35.017427] lowmem_reserve[]: 0 0 8980 0 [ 35.021362] HighMem free:1049496kB min:512kB low:1748kB high:2984kB reserved_highatomic:0KB active_anon:21464kB inactive_anon:8688kB active_file:15508kB inactive_file:51612kB unevictable:0kB writepending:0kB present:1149540kB managed:1149540kB mlocked:0kB kernel_stack:0kB pagetables:712kB bounce:0kB free_pcp:1524kB local_pcp:292kB free_cma:0kB [ 35.051717] lowmem_reserve[]: 0 0 0 0 [ 35.055374] DMA: 8*4kB (UE) 1*8kB (E) 1*16kB (E) 0*32kB 0*64kB 0*128kB 1*256kB (E) 0*512kB 1*1024kB (E) 1*2048kB (E) 0*4096kB = 3384kB [ 35.067446] Normal: 27*4kB (U) 23*8kB (U) 12*16kB (UE) 12*32kB (U) 4*64kB (UE) 2*128kB (U) 2*256kB (UE) 1*512kB (E) 0*1024kB 1*2048kB (U) 0*4096kB = 4452kB [ 35.081347] HighMem: 2*4kB (UM) 0*8kB 1*16kB (M) 2*32kB (UM) 1*64kB (U) 0*128kB 1*256kB (M) 1*512kB (M) 0*1024kB 0*2048kB 256*4096kB (M) = 1049496kB Arnd