Received: by 2002:a05:7412:f589:b0:e2:908c:2ebd with SMTP id eh9csp866841rdb; Wed, 1 Nov 2023 05:24:04 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEutgH0QtWkRSqbUgyd9nk1gFyFOoA05jynTbUvzeMttJg4sdHoVwPKFGNFSdwMEA/SvvzQ X-Received: by 2002:a05:6870:d683:b0:1e9:a741:44f3 with SMTP id z3-20020a056870d68300b001e9a74144f3mr18741427oap.14.1698841444239; Wed, 01 Nov 2023 05:24:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698841444; cv=none; d=google.com; s=arc-20160816; b=SztqAUOicE+r19VMGM8gWeL+uF3Yv74GuNpx0JmbamT+W5QDdjDJPX+AgOTsgASbqi F5FzWy/9sZk0gDdzxp3kgqs3J8iKsRUm7Wuwm9kh87kHhkPrGvPXUZpetjD/BUae1mUr P3ZqNFUDdC15UsWuariZ1QeBKanfNA76O/yHnQr5z7lBccJvie9w4O2oaBechTH/hsBq ixPdmvGT4NRj0EaKbekZpCztSFsTXWTRi48X7N3ZthHL43zxrerdBG6flt+ELqv7yPx1 YC23tAe5BE/Uy+VSvLBnJCImR9UdDqhOSkl/cSFPQpPdeLHbckxkQyywwGjNUlHXwzWv 2WNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature:dkim-signature; bh=gPsifyV8shqMQXEa/4w4t95u3kMaNN4UM0BOjLt3aZg=; fh=suORmLv81bmxmsxgBYcTGwm+Eb6wK1U9HatYR2UaW3A=; b=zHEXTJ9QWT2r/3zHDvZ+qgN4/xqN8P/0ogoyXovL0plTnTqQ9/xkDwRBUFGW3UU8cz oMNuLnWFu4WULoIP5zTVgQvIDUMXyhTXpgIJgHSpCLc3zhwNkF01t+6wwfF/PXQIiOL0 Zp92q9x4hLL2HB5sMrOgbb0e+UM4wH0DFwD3auUJ84/on2NGxfstoFaEvuvVpYFEFbEI wa0vuGal+GOQ6m+T/NHLLBVLvBaRrQ/zWB6L9g0rC49CrzUq7Epp1Ily4dDdLsGpkX0A BxzYRCCEpUBCcmNw+S3zPqbVeOS56+F6TBF/E+1IvhVV3iaZ/irS9BXli5B36srpmv9f vfDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=JV59Akw2; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=aQJ5z1nE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id by26-20020a056a02059a00b005849fe1d3aesi3123509pgb.458.2023.11.01.05.24.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Nov 2023 05:24:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=JV59Akw2; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=aQJ5z1nE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 3065C80A7CFB; Wed, 1 Nov 2023 05:23:59 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343569AbjKAMXg (ORCPT + 99 others); Wed, 1 Nov 2023 08:23:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38692 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235095AbjKAMXf (ORCPT ); Wed, 1 Nov 2023 08:23:35 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C550B103 for ; Wed, 1 Nov 2023 05:23:29 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 55F021F74D; Wed, 1 Nov 2023 12:23:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1698841408; h=from:from:reply-to: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=gPsifyV8shqMQXEa/4w4t95u3kMaNN4UM0BOjLt3aZg=; b=JV59Akw2KvxeTN3uvAXLU2aWY4Uq/ShszP+FSw5xt+ry24V/9mVFBPxAeQp4ZtIteTGG+4 Y7yTPCCC9vHbyqU8Qa6rDQJXAryCDxEzQsizGjZ3m0kPu2nniTdWqAAOEjMXzb7KbsgCYA lSonpR3N/1wmfgTfjqpZKTJMhfASHvs= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1698841408; h=from:from:reply-to: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=gPsifyV8shqMQXEa/4w4t95u3kMaNN4UM0BOjLt3aZg=; b=aQJ5z1nESWyjdSY5p0JtF1SchC+0JMTIkOBaHxP1pJCjoy4pC9zb35Utk7c97g2fKXWM0P FW5hIfsZ4OXsRhCw== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 250521348D; Wed, 1 Nov 2023 12:23:28 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id y/4vCEBDQmX3UgAAMHmgww (envelope-from ); Wed, 01 Nov 2023 12:23:28 +0000 Message-ID: <0273835d-5aac-f8b5-7675-7c7aeca3cb4d@suse.cz> Date: Wed, 1 Nov 2023 13:23:27 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [RFC PATCH v4 3/9] slub: Keep track of whether slub is on the per-node partial list Content-Language: en-US To: chengming.zhou@linux.dev, cl@linux.com, penberg@kernel.org, willy@infradead.org Cc: rientjes@google.com, iamjoonsoo.kim@lge.com, akpm@linux-foundation.org, roman.gushchin@linux.dev, 42.hyeyoo@gmail.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Chengming Zhou References: <20231031140741.79387-1-chengming.zhou@linux.dev> <20231031140741.79387-4-chengming.zhou@linux.dev> From: Vlastimil Babka In-Reply-To: <20231031140741.79387-4-chengming.zhou@linux.dev> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Wed, 01 Nov 2023 05:23:59 -0700 (PDT) On 10/31/23 15:07, chengming.zhou@linux.dev wrote: > From: Chengming Zhou > > Now we rely on the "frozen" bit to see if we should manipulate the > slab->slab_list, which will be changed in the following patch. > > Instead we introduce another way to keep track of whether slub is on > the per-node partial list, here we reuse the PG_workingset bit. > > We use __set_bit and __clear_bit directly instead of the atomic version > for better performance and it's safe since it's protected by the slub > node list_lock. > > Suggested-by: Matthew Wilcox > Signed-off-by: Chengming Zhou Reviewed-by: Vlastimil Babka