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 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 40CDCC25B7E for ; Sat, 1 Jun 2024 06:02:33 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 5F5966B0093; Sat, 1 Jun 2024 02:02:32 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 57ED66B0098; Sat, 1 Jun 2024 02:02:32 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 3F7AF6B009A; Sat, 1 Jun 2024 02:02:32 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 1808A6B0093 for ; Sat, 1 Jun 2024 02:02:32 -0400 (EDT) Received: from smtpin11.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 86E93A13BF for ; Sat, 1 Jun 2024 06:02:31 +0000 (UTC) X-FDA: 82181275302.11.BC4E531 Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.42]) by imf15.hostedemail.com (Postfix) with ESMTP id ADA3DA0004 for ; Sat, 1 Jun 2024 06:02:29 +0000 (UTC) Authentication-Results: imf15.hostedemail.com; dkim=pass header.d=google.com header.s=20230601 header.b="CpS/g1UR"; spf=pass (imf15.hostedemail.com: domain of yuzhao@google.com designates 209.85.128.42 as permitted sender) smtp.mailfrom=yuzhao@google.com; dmarc=pass (policy=reject) header.from=google.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1717221749; a=rsa-sha256; cv=none; b=iZtuEi0mHDDDv0oay742VggWJomDKfDAxF6W108Ab9P3PqLKvkh00Z9goOouRWqG/PEv2H ELgzyExgAjbJQ+dHRzCob8kRe0yrzdQssUWoq/SfSnxG04KiBPChNCw+VAnSNQr8fMoRRU fQ//SeDqrFxRieH/MxGhRpse1C9vQHM= ARC-Authentication-Results: i=1; imf15.hostedemail.com; dkim=pass header.d=google.com header.s=20230601 header.b="CpS/g1UR"; spf=pass (imf15.hostedemail.com: domain of yuzhao@google.com designates 209.85.128.42 as permitted sender) smtp.mailfrom=yuzhao@google.com; dmarc=pass (policy=reject) header.from=google.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1717221749; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=03Wu35we0AtpCbYTPC6nQVPEe1FBNArJXj6MHkLG5QE=; b=H9An3R6IU9Ioywz6ea5n0gc8sVPAjzUzEkj236PV4AuQrbhylVjQGp27gAnRD9DVx0lW62 y2qLzDH8oH+ceY6v7hxkrA17K42ofoFZ6TiMCApFmO7XcF6oRy4JCUk1or/dB+QyA+ktLN P8cKdrEUXBcPwRQdyzvuVB9RON8MPHc= Received: by mail-wm1-f42.google.com with SMTP id 5b1f17b1804b1-42133fbe137so23415e9.0 for ; Fri, 31 May 2024 23:02:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1717221748; x=1717826548; darn=kvack.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=03Wu35we0AtpCbYTPC6nQVPEe1FBNArJXj6MHkLG5QE=; b=CpS/g1URyb4HnQzib2a+FoGby5nOIUa6bXcRgaJlqHQ0IZLNsqZ2k4lWv+E9NLTM+m w9VW5xQmvqR5S7xKIzFvf6hqwHPnSqEdGAbAv/UikjbFcXJK+uFNFRsYxUxT1r8JDmng eRoAy6CvbEvFV35cUQgc+OUteO9tWK/TaJp4AXpwsexGqUxDqX5h6iaBjD8LhSLTWJyn ep++FeByIFKapaFqiVi8jN1GQqChYC4HFbgPzElV1F2qWLXGt55i0GWF85yROcFvClj5 7vbvrGVhlc+oYa1Tx9DfTVW+ie+Fk6VpK1K14WkUVZnusbeYxwjGI368z+sQL5PP9bi9 ncEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717221748; x=1717826548; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=03Wu35we0AtpCbYTPC6nQVPEe1FBNArJXj6MHkLG5QE=; b=MK2WXxCe1N14uL5uc9yop2XmuZHGNasO/8eJhMYxPvxhcqZR4RhkKt18QU6bMKhd2Z YIfg1PSp+1rVlQwFMWN/qDqe2CjbGhltXD6p+Wt7GE3jM1Yz7qpJ0Kuk30h4OFKv+ZQW Fo79Gzv1ue9UpZq90p2cRsFP5CKhZmbU4MJCheXfZe5sLzuN+ePge+nlFTVg2whj6T8B ucTkC7ppu5q5Cq1zIC02ECqT6iNpSuZ2UVPWOoh6LkZA+g+s+Uz+CptUPBnRgdyMaRqc oPesRh2I5pc4xBlQplxlC0bcc9m/DYoQ2IMoZGdJ4IUtr6UKqoHVpTLMZuUtJTD4gj7f rjMw== X-Gm-Message-State: AOJu0YxXlMag2IEtbVuPjWpBjHfZ/PQQUQYX9T96+Z/zr07KxD9e+zLE LVWGCab2eRlEiX9+2dmp5KRpQkoYNo4JyXUrTHKzXg05a/5v7FEjvFzWD8Fxw3Vnog29jX4ziXq Lr71Vsp5TSHZbUs7ih1qvQhhB77QIFS4K994F X-Google-Smtp-Source: AGHT+IEVUzMdm8Lm7SZSaitHhHrP131BbDBUR9UqoctY0LV310H6evrUmHxPt9jXfff6VgaBsMCnfOFvtBHzsqfwy5Y= X-Received: by 2002:a05:600c:3ca6:b0:41b:4c6a:de6d with SMTP id 5b1f17b1804b1-421358c4114mr613585e9.5.1717221747058; Fri, 31 May 2024 23:02:27 -0700 (PDT) MIME-Version: 1.0 References: <20240508202111.768b7a4d@yea> <20240515224524.1c8befbe@yea> In-Reply-To: From: Yu Zhao Date: Sat, 1 Jun 2024 00:01:48 -0600 Message-ID: Subject: Re: kswapd0: page allocation failure: order:0, mode:0x820(GFP_ATOMIC), nodemask=(null),cpuset=/,mems_allowed=0 (Kernel v6.5.9, 32bit ppc) To: Erhard Furtner Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: ADA3DA0004 X-Rspam-User: X-Rspamd-Server: rspam12 X-Stat-Signature: 86bebifaic9qbndp9xusmw3r87uo91cf X-HE-Tag: 1717221749-389253 X-HE-Meta: U2FsdGVkX18HPuTBjpF24M+gco8L/YKci9CV5iaN7QzbeJNJWAJZcP/T4HeJix6vuJiLjrxFkZVQak0v/ERP79/af/5kvsoHbLE+MZnwppoT8Ac7XYOnPHIJvuD6QDZOs/4JJTtmw/XNJQrMlmPxkHjo+M60TcWQ94HRbH8GpY1/uuAkfmLMXr8txFFJAcrceMfD6/pvPGdmvFg1/wGOBGWcZG1uPOnulH+9Ul03yQId7GtNbF4yWxq1aOr3cJtEYMHdJMvA4LMunmVDN7AGJKvryejvA9kQCcp5Afu71Q7DfEa6p9ZuPWS9yyiBrO4jrbWBJMRdpnaLUNMhem3246MaPUyBRjkQjRt8m8Fi3CwuIOBCnOLlRqLAE85qw7AvyjaJZ/F4bymFb31yPYIK8klg6tk1hl65R1qKvAHImTF2lzmGSGLH+VtQf5XFLKkkuZ5MItKXFWc46lUpnEbIgsUKWSouurDjpqkLYqszUZ4FQcVeHITKAzoh5hDYdxECF7KPg3tig3TNelpcTlZXKwk7YhOZD7zCX/ZFxXxagjGojw30bYty9S7SoCwAbzaNRf3qtDgpaXIDBHJP2+IZvnnneogGHl5I0EUusSmQrTCpQbkLfmaWUmwfldPEY+KjaeHK/u/VScMREFsz3etHDcnPiXiHSHkiiyKru1DbuV7qWg3C1Kbpy3wIMYnBKkTp8uAE5BLlvoVGeTbjwA00I9bOnNTUj1zGMZYpO92Fqx4UP49ORQ00hGLuhEl/pbYgnyKK142ncUCguxtaQ401G++l0WunCF8YCFMwp9NFyZSOIeBS9xPpWfRNoujCsu5dctiQRwMbOOvWQh0OFaw1rxYX1IJpBisZt3NoB1n9gibel6m9KiS4x+7iTcyq9yCmLtn/2okotY74/KQIsRCgiGZETrNhBJxUo39SPIpau7C+3L/mFlxBk5sfDlgsIeBxlo1KAGUXklX+ZehD5tS DUsN5AGx 3zI4eYfA10SRYVrbEKqE7uiY4oHc/it5opRvHdD0976My6R/rcQeMo28Nu1ROLHvggNEjgELw09ATatXr2RNhlLa6wxK+ulkbmdhSPVI1kbmkUwJ2bgiT7NKlsL/zKpKWUDe3FfJU/TqqwocmUJzdKXx9WRnR5SwZhSOVn/FTlPo8EuJweCcSZiP8XhZButL9EpNsasj7AE5hsnGejdiizuG0bF5FN+uVTEpEGu/dZ02nmiPPIHBB11/gtPEdF8WO3TJ+NNn3JGM1VoX57GgSMDG/ZHP9jWxStYQei1hXCiEdRPoZR0Sb+OmzfETsivDBNrRT3ooJgEdlh0gD34Jn5nfSE5Wzu7MZi8RjYHJYcpeM0CdbGXPQN73tOtNkKyGauCXn 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: List-Subscribe: List-Unsubscribe: On Wed, May 15, 2024 at 4:06=E2=80=AFPM Yu Zhao wrote: > > On Wed, May 15, 2024 at 2:45=E2=80=AFPM Erhard Furtner wrote: > > > > On Wed, 8 May 2024 20:21:11 +0200 > > Erhard Furtner wrote: > > > > > Greetings! > > > > > > Got that on my dual CPU PowerMac G4 DP shortly after boot. This does = not happen every time at bootup though: > > > > > > [...] > > > kswapd0: page allocation failure: order:0, mode:0x820(GFP_ATOMIC), no= demask=3D(null),cpuset=3D/,mems_allowed=3D0 > > > CPU: 1 PID: 40 Comm: kswapd0 Not tainted 6.8.9-gentoo-PMacG4 #1 > > > Hardware name: PowerMac3,6 7455 0x80010303 PowerMac > > > > Very similar page allocation failure on the same machine on kernel 6.9.= 0 too. Seems it can easily be provoked by running a memory stressor, e.g. "= stress-ng --vm 2 --vm-bytes 1930M --verify -v": > > > > [...] > > kswapd0: page allocation failure: order:0, mode:0xcc0(GFP_KERNEL), node= mask=3D(null),cpuset=3D/,mems_allowed=3D0 > > CPU: 0 PID: 41 Comm: kswapd0 Not tainted 6.9.0-gentoo-PMacG4 #1 > > Hardware name: PowerMac3,6 7455 0x80010303 PowerMac > > Call Trace: > > [c1c65940] [c07926d4] dump_stack_lvl+0x80/0xac (unreliable) > > [c1c65960] [c01b6234] warn_alloc+0x100/0x178 > > [c1c659c0] [c01b661c] __alloc_pages+0x370/0x8d0 > > [c1c65a80] [c01c4854] __read_swap_cache_async+0xc0/0x1cc > > [c1c65ad0] [c01cb580] zswap_writeback_entry+0x50/0x154 > > [c1c65be0] [c01cb6f4] shrink_memcg_cb+0x70/0xec > > [c1c65c10] [c019518c] __list_lru_walk_one+0xa0/0x154 > > [c1c65c70] [c01952a4] list_lru_walk_one+0x64/0x7c > > [c1c65ca0] [c01cad00] zswap_shrinker_scan+0xac/0xc4 > > [c1c65cd0] [c018052c] do_shrink_slab+0x18c/0x304 > > [c1c65d20] [c0180a40] shrink_slab+0x174/0x260 > > [c1c65da0] [c017cb0c] shrink_one+0xbc/0x134 > > [c1c65dd0] [c017e3e4] shrink_node+0x238/0x84c > > [c1c65e50] [c017ed38] balance_pgdat+0x340/0x650 > > [c1c65f50] [c017f270] kswapd+0x228/0x25c > > [c1c65fc0] [c006bbac] kthread+0xe4/0xe8 > > [c1c65ff0] [c0015304] start_kernel_thread+0x10/0x14 > > SLUB: Unable to allocate memory on node -1, gfp=3D0x820(GFP_ATOMIC) > > cache: skbuff_small_head, object size: 480, buffer size: 544, default= order: 1, min order: 0 > > node 0: slabs: 15, objs: 225, free: 0 > > SLUB: Unable to allocate memory on node -1, gfp=3D0x820(GFP_ATOMIC) > > cache: skbuff_small_head, object size: 480, buffer size: 544, default= order: 1, min order: 0 > > node 0: slabs: 15, objs: 225, free: 0 > > SLUB: Unable to allocate memory on node -1, gfp=3D0x820(GFP_ATOMIC) > > cache: skbuff_small_head, object size: 480, buffer size: 544, default= order: 1, min order: 0 > > node 0: slabs: 15, objs: 225, free: 0 > > SLUB: Unable to allocate memory on node -1, gfp=3D0x820(GFP_ATOMIC) > > cache: skbuff_small_head, object size: 480, buffer size: 544, default= order: 1, min order: 0 > > node 0: slabs: 15, objs: 225, free: 0 > > SLUB: Unable to allocate memory on node -1, gfp=3D0x820(GFP_ATOMIC) > > cache: skbuff_small_head, object size: 480, buffer size: 544, default= order: 1, min order: 0 > > node 0: slabs: 15, objs: 225, free: 0 > > SLUB: Unable to allocate memory on node -1, gfp=3D0x820(GFP_ATOMIC) > > cache: kmalloc-rnd-15-2k, object size: 2048, buffer size: 6144, defau= lt order: 3, min order: 1 > > kmalloc-rnd-15-2k debugging increased min order, use slab_debug=3DO t= o disable. > > node 0: slabs: 33, objs: 165, free: 0 > > SLUB: Unable to allocate memory on node -1, gfp=3D0x820(GFP_ATOMIC) > > cache: skbuff_small_head, object size: 480, buffer size: 544, default= order: 1, min order: 0 > > node 0: slabs: 15, objs: 225, free: 0 > > SLUB: Unable to allocate memory on node -1, gfp=3D0x820(GFP_ATOMIC) > > cache: kmalloc-rnd-15-2k, object size: 2048, buffer size: 6144, defau= lt order: 3, min order: 1 > > kmalloc-rnd-15-2k debugging increased min order, use slab_debug=3DO t= o disable. > > node 0: slabs: 33, objs: 165, free: 0 > > SLUB: Unable to allocate memory on node -1, gfp=3D0x820(GFP_ATOMIC) > > cache: skbuff_small_head, object size: 480, buffer size: 544, default= order: 1, min order: 0 > > node 0: slabs: 15, objs: 225, free: 0 > > SLUB: Unable to allocate memory on node -1, gfp=3D0x820(GFP_ATOMIC) > > cache: kmalloc-rnd-15-2k, object size: 2048, buffer size: 6144, defau= lt order: 3, min order: 1 > > kmalloc-rnd-15-2k debugging increased min order, use slab_debug=3DO t= o disable. > > node 0: slabs: 33, objs: 165, free: 0 > > Mem-Info: > > active_anon:340071 inactive_anon:139179 isolated_anon:0 > > active_file:8297 inactive_file:2506 isolated_file:0 > > unevictable:4 dirty:1 writeback:18 > > slab_reclaimable:1377 slab_unreclaimable:7426 > > mapped:6804 shmem:112 pagetables:946 > > sec_pagetables:0 bounce:0 > > kernel_misc_reclaimable:0 > > free:1141 free_pcp:7 free_cma:0 > > Node 0 active_anon:1360284kB inactive_anon:556716kB active_file:33188kB= inactive_file:10024kB unevictable:16kB isolated(anon):0kB isolated(file):0= kB mapped:27216kB dirty:4kB writeback:72kB shmem:448kB writeback_tmp:0kB ke= rnel_stack:1560kB pagetables:3784kB sec_pagetables:0kB all_unreclaimable? n= o > > DMA free:56kB boost:7756kB min:11208kB low:12068kB high:12928kB reserve= d_highatomic:0KB active_anon:635128kB inactive_anon:58260kB active_file:268= kB inactive_file:3000kB unevictable:0kB writepending:324kB present:786432kB= managed:746644kB mlocked:0kB bounce:0kB free_pcp:28kB local_pcp:28kB free_= cma:0kB > > lowmem_reserve[]: 0 0 1280 1280 > > DMA: 0*4kB 0*8kB 0*16kB 0*32kB 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB = 0*2048kB 0*4096kB =3D 0kB > > 63943 total pagecache pages > > 53024 pages in swap cache > > Free swap =3D 8057248kB > > Total swap =3D 8388604kB > > 524288 pages RAM > > 327680 pages HighMem/MovableOnly > > 9947 pages reserved > > warn_alloc: 396 callbacks suppressed > > kswapd0: page allocation failure: order:0, mode:0xcc0(GFP_KERNEL), node= mask=3D(null),cpuset=3D/,mems_allowed=3D0 > > CPU: 1 PID: 41 Comm: kswapd0 Not tainted 6.9.0-gentoo-PMacG4 #1 > > Hardware name: PowerMac3,6 7455 0x80010303 PowerMac > > Call Trace: > > [c1c65940] [c07926d4] dump_stack_lvl+0x80/0xac (unreliable) > > [c1c65960] [c01b6234] warn_alloc+0x100/0x178 > > [c1c659c0] [c01b661c] __alloc_pages+0x370/0x8d0 > > [c1c65a80] [c01c4854] __read_swap_cache_async+0xc0/0x1cc > > [c1c65ad0] [c01cb580] zswap_writeback_entry+0x50/0x154 > > [c1c65be0] [c01cb6f4] shrink_memcg_cb+0x70/0xec > > [c1c65c10] [c019518c] __list_lru_walk_one+0xa0/0x154 > > [c1c65c70] [c01952a4] list_lru_walk_one+0x64/0x7c > > [c1c65ca0] [c01cad00] zswap_shrinker_scan+0xac/0xc4 > > [c1c65cd0] [c018052c] do_shrink_slab+0x18c/0x304 > > [c1c65d20] [c0180a40] shrink_slab+0x174/0x260 > > [c1c65da0] [c017cb0c] shrink_one+0xbc/0x134 > > [c1c65dd0] [c017e3e4] shrink_node+0x238/0x84c > > [c1c65e50] [c017ed38] balance_pgdat+0x340/0x650 > > [c1c65f50] [c017f270] kswapd+0x228/0x25c > > slab_out_of_memory: 53 callbacks suppressed > > SLUB: Unable to allocate memory on node -1, gfp=3D0x820(GFP_ATOMIC) > > cache: skbuff_small_head, object size: 480, buffer size: 544, default= order: 1, min order: 0 > > node 0: slabs: 18, objs: 270, free: 0 > > SLUB: Unable to allocate memory on node -1, gfp=3D0x820(GFP_ATOMIC) > > cache: skbuff_small_head, object size: 480, buffer size: 544, default= order: 1, min order: 0 > > node 0: slabs: 18, objs: 270, free: 0 > > SLUB: Unable to allocate memory on node -1, gfp=3D0x820(GFP_ATOMIC) > > cache: skbuff_small_head, object size: 480, buffer size: 544, default= order: 1, min order: 0 > > node 0: slabs: 18, objs: 270, free: 0 > > SLUB: Unable to allocate memory on node -1, gfp=3D0x820(GFP_ATOMIC) > > cache: skbuff_small_head, object size: 480, buffer size: 544, default= order: 1, min order: 0 > > node 0: slabs: 18, objs: 270, free: 0 > > SLUB: Unable to allocate memory on node -1, gfp=3D0x820(GFP_ATOMIC) > > cache: skbuff_small_head, object size: 480, buffer size: 544, default= order: 1, min order: 0 > > node 0: slabs: 18, objs: 270, free: 0 > > SLUB: Unable to allocate memory on node -1, gfp=3D0x820(GFP_ATOMIC) > > cache: kmalloc-rnd-15-2k, object size: 2048, buffer size: 6144, defau= lt order: 3, min order: 1 > > kmalloc-rnd-15-2k debugging increased min order, use slab_debug=3DO t= o disable. > > node 0: slabs: 33, objs: 165, free: 0 > > SLUB: Unable to allocate memory on node -1, gfp=3D0x820(GFP_ATOMIC) > > cache: skbuff_small_head, object size: 480, buffer size: 544, default= order: 1, min order: 0 > > node 0: slabs: 18, objs: 270, free: 0 > > SLUB: Unable to allocate memory on node -1, gfp=3D0x820(GFP_ATOMIC) > > cache: kmalloc-rnd-15-2k, object size: 2048, buffer size: 6144, defau= lt order: 3, min order: 1 > > kmalloc-rnd-15-2k debugging increased min order, use slab_debug=3DO t= o disable. > > node 0: slabs: 33, objs: 165, free: 0 > > SLUB: Unable to allocate memory on node -1, gfp=3D0x820(GFP_ATOMIC) > > cache: skbuff_small_head, object size: 480, buffer size: 544, default= order: 1, min order: 0 > > node 0: slabs: 18, objs: 270, free: 0 > > SLUB: Unable to allocate memory on node -1, gfp=3D0x820(GFP_ATOMIC) > > cache: kmalloc-rnd-15-2k, object size: 2048, buffer size: 6144, defau= lt order: 3, min order: 1 > > kmalloc-rnd-15-2k debugging increased min order, use slab_debug=3DO t= o disable. > > node 0: slabs: 33, objs: 165, free: 0 > > [c1c65fc0] [c006bbac] kthread+0xe4/0xe8 > > [c1c65ff0] [c0015304] start_kernel_thread+0x10/0x14 > > Mem-Info: > > active_anon:351976 inactive_anon:123514 isolated_anon:0 > > active_file:4648 inactive_file:2081 isolated_file:0 > > unevictable:4 dirty:1 writeback:39 > > slab_reclaimable:918 slab_unreclaimable:7222 > > mapped:5359 shmem:21 pagetables:940 > > sec_pagetables:0 bounce:0 > > kernel_misc_reclaimable:0 > > free:2563 free_pcp:142 free_cma:0 > > Node 0 active_anon:1407904kB inactive_anon:494056kB active_file:18592kB= inactive_file:8324kB unevictable:16kB isolated(anon):0kB isolated(file):0k= B mapped:21436kB dirty:4kB writeback:156kB shmem:84kB writeback_tmp:0kB ker= nel_stack:1552kB pagetables:3760kB sec_pagetables:0kB all_unreclaimable? no > > DMA free:0kB boost:7756kB min:11208kB low:12068kB high:12928kB reserved= _highatomic:0KB active_anon:199336kB inactive_anon:491432kB active_file:461= 2kB inactive_file:5980kB unevictable:0kB writepending:660kB present:786432k= B managed:746644kB mlocked:0kB bounce:0kB free_pcp:568kB local_pcp:20kB fre= e_cma:0kB > > lowmem_reserve[]: 0 0 1280 1280 > > DMA: 0*4kB 0*8kB 0*16kB 0*32kB 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB = 0*2048kB 0*4096kB =3D 0kB > > 45961 total pagecache pages > > 39207 pages in swap cache > > Free swap =3D 8093096kB > > Total swap =3D 8388604kB > > 524288 pages RAM > > 327680 pages HighMem/MovableOnly > > 9947 pages reserved > > warn_alloc: 343 callbacks suppressed > > kswapd0: page allocation failure: order:0, mode:0xcc0(GFP_KERNEL), node= mask=3D(null),cpuset=3D/,mems_allowed=3D0 > > CPU: 0 PID: 41 Comm: kswapd0 Not tainted 6.9.0-gentoo-PMacG4 #1 > > Hardware name: PowerMac3,6 7455 0x80010303 PowerMac > > Call Trace: > > [c1c65940] [c07926d4] dump_stack_lvl+0x80/0xac (unreliable) > > [c1c65960] [c01b6234] warn_alloc+0x100/0x178 > > [c1c659c0] [c01b661c] __alloc_pages+0x370/0x8d0 > > [c1c65a80] [c01c4854] __read_swap_cache_async+0xc0/0x1cc > > [c1c65ad0] [c01cb580] zswap_writeback_entry+0x50/0x154 > > [c1c65be0] [c01cb6f4] shrink_memcg_cb+0x70/0xec > > [c1c65c10] [c019518c] __list_lru_walk_one+0xa0/0x154 > > slab_out_of_memory: 59 callbacks suppressed > > SLUB: Unable to allocate memory on node -1, gfp=3D0x820(GFP_ATOMIC) > > cache: skbuff_small_head, object size: 480, buffer size: 544, default= order: 1, min order: 0 > > node 0: slabs: 18, objs: 270, free: 0 > > SLUB: Unable to allocate memory on node -1, gfp=3D0x820(GFP_ATOMIC) > > cache: skbuff_small_head, object size: 480, buffer size: 544, default= order: 1, min order: 0 > > node 0: slabs: 18, objs: 270, free: 0 > > SLUB: Unable to allocate memory on node -1, gfp=3D0x820(GFP_ATOMIC) > > cache: skbuff_small_head, object size: 480, buffer size: 544, default= order: 1, min order: 0 > > node 0: slabs: 18, objs: 270, free: 0 > > SLUB: Unable to allocate memory on node -1, gfp=3D0x820(GFP_ATOMIC) > > cache: skbuff_small_head, object size: 480, buffer size: 544, default= order: 1, min order: 0 > > node 0: slabs: 18, objs: 270, free: 0 > > SLUB: Unable to allocate memory on node -1, gfp=3D0x820(GFP_ATOMIC) > > cache: skbuff_small_head, object size: 480, buffer size: 544, default= order: 1, min order: 0 > > node 0: slabs: 18, objs: 270, free: 0 > > SLUB: Unable to allocate memory on node -1, gfp=3D0x820(GFP_ATOMIC) > > cache: kmalloc-rnd-15-2k, object size: 2048, buffer size: 6144, defau= lt order: 3, min order: 1 > > kmalloc-rnd-15-2k debugging increased min order, use slab_debug=3DO t= o disable. > > node 0: slabs: 33, objs: 165, free: 0 > > SLUB: Unable to allocate memory on node -1, gfp=3D0x820(GFP_ATOMIC) > > cache: skbuff_small_head, object size: 480, buffer size: 544, default= order: 1, min order: 0 > > node 0: slabs: 18, objs: 270, free: 0 > > SLUB: Unable to allocate memory on node -1, gfp=3D0x820(GFP_ATOMIC) > > cache: kmalloc-rnd-15-2k, object size: 2048, buffer size: 6144, defau= lt order: 3, min order: 1 > > kmalloc-rnd-15-2k debugging increased min order, use slab_debug=3DO t= o disable. > > node 0: slabs: 33, objs: 165, free: 0 > > SLUB: Unable to allocate memory on node -1, gfp=3D0x820(GFP_ATOMIC) > > cache: skbuff_small_head, object size: 480, buffer size: 544, default= order: 1, min order: 0 > > node 0: slabs: 18, objs: 270, free: 0 > > SLUB: Unable to allocate memory on node -1, gfp=3D0x820(GFP_ATOMIC) > > cache: kmalloc-rnd-15-2k, object size: 2048, buffer size: 6144, defau= lt order: 3, min order: 1 > > kmalloc-rnd-15-2k debugging increased min order, use slab_debug=3DO t= o disable. > > node 0: slabs: 33, objs: 165, free: 0 > > [c1c65c70] [c01952a4] list_lru_walk_one+0x64/0x7c > > [c1c65ca0] [c01cad00] zswap_shrinker_scan+0xac/0xc4 > > [c1c65cd0] [c018052c] do_shrink_slab+0x18c/0x304 > > [c1c65d20] [c0180a40] shrink_slab+0x174/0x260 > > [c1c65da0] [c017cb0c] shrink_one+0xbc/0x134 > > [c1c65dd0] [c017e3e4] shrink_node+0x238/0x84c > > [c1c65e50] [c017ed38] balance_pgdat+0x340/0x650 > > [c1c65f50] [c017f270] kswapd+0x228/0x25c > > [c1c65fc0] [c006bbac] kthread+0xe4/0xe8 > > [c1c65ff0] [c0015304] start_kernel_thread+0x10/0x14 > > Mem-Info: > > active_anon:235002 inactive_anon:240975 isolated_anon:0 > > active_file:4356 inactive_file:2551 isolated_file:0 > > unevictable:4 dirty:7 writeback:19 > > slab_reclaimable:1008 slab_unreclaimable:7218 > > mapped:5601 shmem:21 pagetables:939 > > sec_pagetables:0 bounce:0 > > kernel_misc_reclaimable:0 > > free:1340 free_pcp:23 free_cma:0 > > Node 0 active_anon:940008kB inactive_anon:963900kB active_file:17424kB = inactive_file:10204kB unevictable:16kB isolated(anon):0kB isolated(file):0k= B mapped:22404kB dirty:28kB writeback:76kB shmem:84kB writeback_tmp:0kB ker= nel_stack:1552kB pagetables:3756kB sec_pagetables:0kB all_unreclaimable? no > > DMA free:0kB boost:7756kB min:11208kB low:12068kB high:12928kB reserved= _highatomic:0KB active_anon:644060kB inactive_anon:36332kB active_file:5276= kB inactive_file:5516kB unevictable:0kB writepending:348kB present:786432kB= managed:746644kB mlocked:0kB bounce:0kB free_pcp:92kB local_pcp:92kB free_= cma:0kB > > lowmem_reserve[]: 0 0 1280 1280 > > DMA: 0*4kB 0*8kB 0*16kB 0*32kB 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB = 0*2048kB 0*4096kB =3D 0kB > > 116345 total pagecache pages > > 109413 pages in swap cache > > Free swap =3D 7819300kB > > Total swap =3D 8388604kB > > 524288 pages RAM > > 327680 pages HighMem/MovableOnly > > 9947 pages reserved > > > > > > I switched from zstd to lzo as zswap default compressor so zstd does no= t show up on the dmesg. But the rest looks pretty similar. > > > > Full dmesg and kernel .config attached. > > > > Regards, > > Erhard > > Hi Erhard, > > Thanks for the reports. I'll take a look at them and get back to you > in a few days. Hi Erhard, The OOM kills on both kernel versions seem to be reasonable to me. Your system has 2GB memory and it uses zswap with zsmalloc (which is good since it can allocate from the highmem zone) and zstd/lzo (which doesn't matter much). Somehow -- I couldn't figure out why -- it splits the 2GB into a 0.25GB DMA zone and a 1.75GB highmem zone: [ 0.000000] Zone ranges: [ 0.000000] DMA [mem 0x0000000000000000-0x000000002fffffff] [ 0.000000] Normal empty [ 0.000000] HighMem [mem 0x0000000030000000-0x000000007fffffff] The kernel can't allocate from the highmem zone -- only userspace and zsmalloc can. OOM kills were due to the low memory conditions in the DMA zone where the kernel itself failed to allocate from. Do you know a kernel version that doesn't have OOM kills while running the same workload? If so, could you send that .config to me? If not, could you try disabling CONFIG_HIGHMEM? (It might not help but I'm out of ideas at the moment.) Thanks!