Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp168388lqt; Wed, 5 Jun 2024 22:56:52 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXQHz9PhaxB6ONhjixBSFYTpWEFiXREhZkSQrJRkctPxySSg7rTdEn/bUNrDRDIBX/Fxo4no+Jdksx0FmmLiUFjrQ3l2QWGdKqokxO3pw== X-Google-Smtp-Source: AGHT+IEbSizhzn0EJuema2z43xv6gTlPt7gJjoM7l6dz5mVb8TCGUqpYDphDhdcVOOWKo3rWF1qy X-Received: by 2002:a05:6a20:6a09:b0:1af:cbe1:8a50 with SMTP id adf61e73a8af0-1b2b6e2a39bmr5575011637.10.1717653411815; Wed, 05 Jun 2024 22:56:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717653411; cv=pass; d=google.com; s=arc-20160816; b=f7Avm40g+sfi8gdby5xM7fxVVFSjSCJYexZnRayLpaWlYqGGzpavID6vzBUiUpP+vO wDihyIfKpGMlGCEV2h1eipdvFDZNl06LUkUiKlErhMi4dD2Hl2SxdqmhJdIGLNCpBzQk 9YxkkyGhXLXi8tytL7bkSHGOQy7aQhTZ/k8C230LZCrSdlPG/5C6f5xrbmACwh+otnvz LOHXhEPfskDTHNxq731DbaS00wDWG2tbog6w6efZyxtiJLZaxkS57kri2PJ/fccsz9FL TEIoDpTnq/2gysCEBnYCjrPOCHx0qNsHyyCBZiVVhz375ZDLiAo/WLoJxO/Fdly8Lh6m NVwA== 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:references:cc:to :content-language:subject:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=+8Z5XmpUE3zx1Y8cy7cbU/CoYCfPRTM2B2i5o3MFz18=; fh=NK8Ws7CZkV7avTctGyVFSsT9+7Szuqdp3smnEI/z4Ao=; b=B6XYlLAFCwoclDRzQDTI2Fy6QlVqysVJPekBoSv0zuOmk0Kz0bUr1hxc/5G33iEz0I RclgCKpg9ZzgjFhVQK/4xTIBqy3rBb1A7s9ZBQpJE0V9/10Fiz8VitFYeczkujipwjem u8PyH5urWOCFEiE/6cuiCheDxcJZNZ/Aluvh90RMSAd5JM2Xlk1VMtHxNiQAUL99glBo EbjIDQeMELneKHPWWFnA8dtIcGlMUPXcswwZl1B7lyOEIHe+5AXIiU+WaPrOdKlFYiPo WHE+ayZo/LVjNWOUC7f6CC95chzLfDnz7C+HTmqT03eRcVMGcex/QDfpgrOjMzB+fA35 3cwQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=iwKwqsfj; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-203630-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203630-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2c29c37ca36si628422a91.123.2024.06.05.22.56.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 22:56:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-203630-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=iwKwqsfj; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-203630-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203630-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 959B4282EC0 for ; Thu, 6 Jun 2024 05:56:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D2EE147A62; Thu, 6 Jun 2024 05:56:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="iwKwqsfj" Received: from out-186.mta0.migadu.com (out-186.mta0.migadu.com [91.218.175.186]) (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 A8CD145BE3 for ; Thu, 6 Jun 2024 05:56:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.186 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717653383; cv=none; b=Wan04Nr2yXHMarp1yyScq/IjaVdD2NU5RRJk+DYArkatcvwmwnKU9uLnTL63TGhhlJe0Aqxijn5T2MSCMmDsEeVse/vd375p4Nn83DKU6HpU0m0nLtFhnkacMV63zc38dqraRB8NXSzKAtmRCAZopV1IBPNpJ73oyqXbk79BNSE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717653383; c=relaxed/simple; bh=Rn6MIgAHXThpOou1fRNGm5w62PA8fwoF6VJ/NPzgQgI=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=BsvZjO6WPzVYUNu2f+JakQfTJttegN4AYTfXanvEBKrbq79Pqjmgu8I2QfPjalIy1Dg0IRKiiomvwK5zvan3EQBGt0CaJzCyzJYpeyQpk14qnAXwaAtUTCAUYOQNFc32kbX+nd7550zehbDcbtnFKyZimn8NUdt/p4l3GICAXQs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=iwKwqsfj; arc=none smtp.client-ip=91.218.175.186 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev X-Envelope-To: senozhatsky@chromium.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1717653378; h=from:from: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; bh=+8Z5XmpUE3zx1Y8cy7cbU/CoYCfPRTM2B2i5o3MFz18=; b=iwKwqsfjoGXVgQe/po1O8i4bOhN+NhoK5vwBxCPBRqhvuJO6LC62WtY9E5l6kKozckGXAN ENQD0kw1r5cy9frpP4esDYHVVJkYEgPMeRbsQqoP8S+NpNI4S+mRQgCBad5qPF4uRF7Akg A+vmKupx/CjWu2gH98ucZkabpnMTcQs= X-Envelope-To: yosryahmed@google.com X-Envelope-To: erhard_f@mailbox.org X-Envelope-To: yuzhao@google.com X-Envelope-To: linux-mm@kvack.org X-Envelope-To: linux-kernel@vger.kernel.org X-Envelope-To: linuxppc-dev@lists.ozlabs.org X-Envelope-To: hannes@cmpxchg.org X-Envelope-To: nphamcs@gmail.com X-Envelope-To: minchan@kernel.org X-Envelope-To: vbabka@kernel.org Message-ID: Date: Thu, 6 Jun 2024 13:55:50 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: kswapd0: page allocation failure: order:0, mode:0x820(GFP_ATOMIC), nodemask=(null),cpuset=/,mems_allowed=0 (Kernel v6.5.9, 32bit ppc) Content-Language: en-US To: Sergey Senozhatsky Cc: Yosry Ahmed , Erhard Furtner , Yu Zhao , linux-mm@kvack.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, Johannes Weiner , Nhat Pham , Minchan Kim , "Vlastimil Babka (SUSE)" References: <20240604231019.18e2f373@yea> <20240606010431.2b33318c@yea> <20240606043156.GC11718@google.com> <6335c05d-9493-4b03-85a7-f2dd91db9451@linux.dev> <20240606054334.GD11718@google.com> X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Chengming Zhou In-Reply-To: <20240606054334.GD11718@google.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_OUT On 2024/6/6 13:43, Sergey Senozhatsky wrote: > On (24/06/06 12:46), Chengming Zhou wrote: >>>> Agree, I think we should try to improve locking scalability of zsmalloc. >>>> I have some thoughts to share, no code or test data yet: >>>> >>>> 1. First, we can change the pool global lock to per-class lock, which >>>> is more fine-grained. >>> >>> Commit c0547d0b6a4b6 "zsmalloc: consolidate zs_pool's migrate_lock >>> and size_class's locks" [1] claimed no significant difference >>> between class->lock and pool->lock. >> >> Ok, I haven't looked into the history much, that seems preparation of trying >> to introduce reclaim in the zsmalloc? Not sure. But now with the reclaim code >> in zsmalloc has gone, should we change back to the per-class lock? Which is > > Well, the point that commit made was that Nhat (and Johannes?) were > unable to detect any impact of pool->lock on a variety of cases. So > we went on with code simplification. Right, the code is simpler. > >> obviously more fine-grained than the pool lock. Actually, I have just done it, >> will test to get some data later. > > Thanks, we'll need data on this. I'm happy to take the patch, but > jumping back and forth between class->lock and pool->lock merely > "for obvious reasons" is not what I'm extremely excited about. Yeah, agree, we need test data.