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.5 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED 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 E645AC433E0 for ; Sat, 4 Jul 2020 12:01:48 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id A3C0A20870 for ; Sat, 4 Jul 2020 12:01:48 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="iJG7zjXq" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A3C0A20870 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 155D78D0061; Sat, 4 Jul 2020 08:01:48 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 1069D8D0001; Sat, 4 Jul 2020 08:01:48 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 01BCA8D0061; Sat, 4 Jul 2020 08:01:47 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0040.hostedemail.com [216.40.44.40]) by kanga.kvack.org (Postfix) with ESMTP id E135A8D0001 for ; Sat, 4 Jul 2020 08:01:47 -0400 (EDT) Received: from smtpin16.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id 8C485181AC9C6 for ; Sat, 4 Jul 2020 12:01:47 +0000 (UTC) X-FDA: 77000254254.16.wren88_49116cb26e9a Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin16.hostedemail.com (Postfix) with ESMTP id 83C02100E5A44 for ; Sat, 4 Jul 2020 12:01:41 +0000 (UTC) X-HE-Tag: wren88_49116cb26e9a X-Filterd-Recvd-Size: 3589 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf11.hostedemail.com (Postfix) with ESMTP for ; Sat, 4 Jul 2020 12:01:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; 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; bh=l06a6VZ9cFiyXyetgETfYvB9rnS8I7DnascZo6bKFN4=; b=iJG7zjXqVBjxuboNQ0FMbFvv7n IDdYhXp2IK24dOrP/z5wz1hZxZAqMNFSCP5PGYEY4zlq4upCP4p3zNWDTbeV3LgvaT3lLmaZ7g4n+ fTk2vh8bnnne2jipK9gcE5hcCzd5jdbprMtddZmV/qJ0aADndFI4QsGbkFlYlc4yhTzU9wholoBVs gXlrMvi/q08L9sdxivrePhSr2eW2hUf0eikqde9IsYky6Bi6Ya/3ZVi+b9S5XPToY3XaMJlM3RC7Z xH8JX0n9zptZhrs/m6/E1ZQATi7xT/lObHNVe0HmyDAQETIVFzoHILHQHB8c2w2NK35T+6vistE0H 9jVyb8sA==; Received: from willy by casper.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1jrgrP-0000CH-Dq; Sat, 04 Jul 2020 12:01:35 +0000 Date: Sat, 4 Jul 2020 13:01:35 +0100 From: Matthew Wilcox To: Pekka Enberg Cc: Chris Murphy , Linux Memory Management List , Dan Williams , Mike Kravetz Subject: Re: 5.8.0rc3 page allocation failure: order:0, mode:0x40810 Message-ID: <20200704120135.GO25523@casper.infradead.org> References: <20200704113722.GM25523@casper.infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Rspamd-Queue-Id: 83C02100E5A44 X-Spamd-Result: default: False [0.00 / 100.00] X-Rspamd-Server: rspam05 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 Sat, Jul 04, 2020 at 02:49:32PM +0300, Pekka Enberg wrote: > Hi Matthew, > > On Sat, Jul 4, 2020 at 2:37 PM Matthew Wilcox wrote: > > > > On Sat, Jul 04, 2020 at 01:21:05AM -0600, Chris Murphy wrote: > > > Hi, > > > > > > This seems to be a one off - I'm not even sure what was happening at > > > the time. Possibly running a qemu-kvm VM. > > > > > > 5.8.0-0.rc3.1.fc33.x86_64+debug > > > i7-2820QM > > > MemTotal: 8021304 kB > > > $ swapon > > > NAME TYPE SIZE USED PRIO > > > /dev/sda5 partition 10.4G 0B -2 > > > /dev/zram0 partition 3.8G 9M 100 > > > $ zramctl > > > NAME ALGORITHM DISKSIZE DATA COMPR TOTAL STREAMS MOUNTPOINT > > > /dev/zram0 lzo-rle 3.8G 7.8M 2.3M 4.5M 8 [SWAP] > > > > > > > > > > > > > > > [126841.385050] swapper/2: page allocation failure: order:0, > > > mode:0x40810(GFP_NOWAIT|__GFP_COMP|__GFP_RECLAIMABLE), > > > > This is one for Dan; he decided to use GFP_NOWAIT in commit > > 0abdd7a81b7e3fd781d7fabcca49501852bba17e > > Why is that a problem? Unless I am missing something, there's plenty > of free pages available for the slab allocation: > > > > [126841.385277] Node 0 Normal: 366*4kB (UME) 413*8kB (UME) 76*16kB > > > (UME) 18*32kB (UME) 20*64kB (UME) 16*128kB (UME) 10*256kB (UME) > > > 8*512kB (ME) 5*1024kB (UE) 2*2048kB (UM) 6*4096kB (M) = 50336kB One of the things we (mostly Mike Kravetz) found recently when debugging a memory allocation stall issue is that this message does not capture the state which actually caused the message to be printed. In the intervening time between the memory allocation failure being detected and this message being printed, kswapd may have made forward progress.