Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp199550lqt; Thu, 6 Jun 2024 00:25:14 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXQmT/Agz+iR834Gfy399BmKD/fsgMXXw6pC+01rAX4qE7Izvm4Og9WRS2TzelHdPLuCUVZCyfKylQlNQ3Cl8hJo/rkHLy7w+fWDmb9nw== X-Google-Smtp-Source: AGHT+IFUqDRqc+jz7k3Zd+S6He8M7U3JWFChjm/xJFvMBa75pibqRmLMEwhMh5FtntXnyOjubfMq X-Received: by 2002:a05:6a20:3c94:b0:1b2:b183:69f6 with SMTP id adf61e73a8af0-1b2c563e8a1mr2877771637.16.1717658713671; Thu, 06 Jun 2024 00:25:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717658713; cv=pass; d=google.com; s=arc-20160816; b=LSTLhQuBBCfMwONbJBNJt4OmlpsRhVEauqNbtfk0VRydsdiL+CDR6pew+Fj758r9Mm fwzAcW/A8+ZcJPEmavBwccfZF9oTD5M6p4vHWHB9ZBHwTzKP8ySq7TqQ7qG0ShnssMFj rWaoDL9QWlNbOUTi1IBPbsCNcNtp4GejMdjLLKFDtUXY5dvq45hPvQirq9rBIZ6Zuva2 h0VQ2dJgDd7WBc7L2GrdnEx3bK0vhSk6WFBZkpQeCxX4Xfz0wZjTkTRvcwjx+7+eOXWu XblfBGb4Ox20ihSc9lpQXC0BtZBiaz2WKgOXV8Wfxn/Q7975rJIONqSdTqZXVi2wKY5/ QJvA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=rc1ZdrGi+nIE/KLHuHchsW8YjNe2lt+qDFcTcnOBV4g=; fh=lOW3UIPgaPssajjl2+DAYESATNfQhHpNvJr/afqVjYQ=; b=SF1+G3YKOYkVnVslK81Ou3FKW2CCG+l/JnmgYFIchNsry47Uqa7FnAo0QVkLA2wKx6 q9KV7euDgvN+wEyTC4aJVByj5zlIeoBTyxqpMisN/xZuJIgh9BG/Vd8jddSYVuGomBP6 38cde+VdXuUpH9RGis6xVmhCCzCwK7CfK9X2tt7NDDJKDR+DSndLFKQBdaPexOZ8DEfQ +k41cKmPEfcblP68q7YR9WEPbRF5DwGBBM7fpGiHXkmZTrsGNmFWef4G60lRnYIfz8Rz A9cMetgSMqxH5s7Mkl0vsYCWOVHzCu7qerbEHBTw5fSuOzSNQbOGu53P5x8Yx6Fy5889 hAmA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="eyz90bN/"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-203727-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203727-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 41be03b00d2f7-6de262c0063si678304a12.420.2024.06.06.00.25.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 00:25:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-203727-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="eyz90bN/"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-203727-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203727-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 3E491B2295D for ; Thu, 6 Jun 2024 07:25:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 36F3E13B5B9; Thu, 6 Jun 2024 07:25:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="eyz90bN/" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 61F7B38DE0 for ; Thu, 6 Jun 2024 07:25:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717658703; cv=none; b=GVwrNBMN+gkfA4wcSopoK7B8OcFIOC890OHOp3+dn7987nqcCGaYb2bIMX1RdnTq2j0QmPCCopAoMPd4o9fB4CB98WWioYL29v+tj1IzpZjEgd6qmSUMkDghg3xZmTkTNjdqRaOIxA7/Y+Thvi7ClUaJJnJhMyIXOXnbSv2f6Ug= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717658703; c=relaxed/simple; bh=6ArXguUdE1tEHqkTMArHl/jywTYi8V4U84K1ePj0AoI=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=LkIdHAs8PoLd66bYbSZko2H3JaWeBc0LdWp+xeWr0Ya1S1wJ9uj07idJhM3cuXtWQHctEb6dhj3sipO/d5mUQ4nMLOYjn+xe1eOsHcX0nyXe5hFBjorCO+En5qpZ681rCrQHj2/PL1c9EMgt7cGOpUt7AbxCHGwbXre+rC+LXh4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=eyz90bN/; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 15335C2BD10; Thu, 6 Jun 2024 07:24:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717658702; bh=6ArXguUdE1tEHqkTMArHl/jywTYi8V4U84K1ePj0AoI=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=eyz90bN/icwoyAAxZFaUXkgseagaj2+gtayVvlpSEO85FPkYRqDSaed7AKTltqH1P Gnx4K273UguPCqIpoIGhVPhu93b4OwT1dENhWnEBqJkGXXHCn+feY5bujIXE0dC8hZ cutWHUYG3O/eEQ5TsOiWO/9/K3YBctwGgDMXp4SW3Pqow5dCGg8kGuu83Fm9lT5oQD +diJGGWlE2oX9IPx1XfRecSCr1sJkDOR0x/ZvHdbaCD+8Bq1w1ozRjrpfSEaRBFpjq 4MMgKh9Ubu5JJt1tHLXFcVY0Gx3b0Y7aFuGCCuGK6Lp+STOdppusIoXuNTojDozxoL 5LYs9ZPnUKn2g== Message-ID: Date: Thu, 6 Jun 2024 09:24:56 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird 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: Yosry Ahmed , Erhard Furtner Cc: Yu Zhao , linux-mm@kvack.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, Johannes Weiner , Nhat Pham , Chengming Zhou , Sergey Senozhatsky , Minchan Kim , Michal Hocko References: <20240508202111.768b7a4d@yea> <20240515224524.1c8befbe@yea> <20240602200332.3e531ff1@yea> <20240604001304.5420284f@yea> <20240604134458.3ae4396a@yea> <20240604231019.18e2f373@yea> <20240606010431.2b33318c@yea> Content-Language: en-US From: "Vlastimil Babka (SUSE)" In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 6/6/24 1:41 AM, Yosry Ahmed wrote: > On Wed, Jun 5, 2024 at 4:04 PM Erhard Furtner wrote: > > I am personally leaning toward (c), but I want to hear the opinions of > other people here. Yu, Vlastimil, Johannes, Nhat? Anyone else? Besides the zpool commit which might have just pushed the machine over the edge, but it was probably close to it already. I've noticed a more general problem that there are GFP_KERNEL allocations failing from kswapd. Those could probably use be __GFP_NOMEMALLOC (or scoped variant, is there one?) since it's the case of "allocating memory to free memory". Or use mempools if the progress (success will lead to freeing memory) is really guaranteed. Another interesting data point could be to see if traditional reclaim behaves any better on this machine than MGLRU. I saw in the config: CONFIG_LRU_GEN=y CONFIG_LRU_GEN_ENABLED=y So disabling at least the second one would revert to the traditional reclaim and we could see if it handles such a constrained system better or not. > In the long-term, I think we may want to address the lock contention > in zsmalloc itself instead of zswap spawning multiple zpools. > >> >> The patch did not apply cleanly on v6.9.3 so I applied it on v6.10-rc2. dmesg of the current v6.10-rc2 run attached. >> >> Regards, >> Erhard >