Received: by 2002:a05:7412:b795:b0:e2:908c:2ebd with SMTP id iv21csp105595rdb; Wed, 1 Nov 2023 19:19:49 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEvoENBeR6ejhFSrb4Xzqxdl4IFmWKJkOIPmP2erByX0SyMMa324WtkFNvNaeZOjT4yzAWk X-Received: by 2002:a05:6a20:8e24:b0:15a:4c23:870b with SMTP id y36-20020a056a208e2400b0015a4c23870bmr9994133pzj.23.1698891589386; Wed, 01 Nov 2023 19:19:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698891589; cv=none; d=google.com; s=arc-20160816; b=vzrkWKqB4CcXiIM74DBYJMO1Y5F1SgVfj/O7ZkLcPQ+87RdGkFAXewx36FiwqKcdbu B4KK8Eh05ryXGSnkaQlQd+EvgV7Wg//slDIzyFzwx6UhPlttHTO3rH/IfEmCDrHWhm3r tSfR4OrY76KsoLbdEMj+EB0NMnnUp0/IP1J28X84bDP2/SwUDkrDFrrcZLF586tbSVk1 +nMM7rHJHveQCSq+Qv4NDzT/NCV3g9PD7FIgfqbeYqUDFtWKCmtIfm8Pf/UqLPGRLM5Z mK8pO5MDD/zjZSOQlHIg1UMjsBlGJFkFXRTZFa9z9TN+CN7/k1wvSATkqXtM2bvLsCh7 ZSKg== 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:mime-version:date :dkim-signature:message-id; bh=0zc20fVFKy4W9h0KGCjjTFtHtA4V+tYwK8sbCEwSZYE=; fh=T1ZC7/Kdo62exLELpwaylu4S95LWUVFM7vuv7oQTIAQ=; b=nxRexYKHW5oc8zEbGt8dX3XawLDbTSBWxkTMJYp9BWO9QADyNKsPZOlukaRnNKlzQ4 IsiX0oxKJ8mYH716sUH8JOv1TzMfuxGmjC4HswdWnradwT3nvyHnTsfYH0qzfapqotAe aRvnugr66XLm3UIwI0acgXvEe+vqoVlW9Jy/NEsaHQ/0377zAp4n5xS1+vFouzpmRdra vCjCF/JLOSPQKIFRPjHGqjvD7s6c0VyHCDjEgjOSOowTmhij6QXN20Pa5uB/0tfe7R0L +Vg89Fh70a/trOhzRlqndpGDLxJzTxvVyBc7DYeMnu63Vb9ws3VucKB9H8Ks7rU/hLPu tScQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=U36CUZib; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id u1-20020a637901000000b00578bea3c10esi940323pgc.756.2023.11.01.19.19.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Nov 2023 19:19:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=U36CUZib; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 481EE808405E; Wed, 1 Nov 2023 19:19:45 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348242AbjKBCTg (ORCPT + 99 others); Wed, 1 Nov 2023 22:19:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46790 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232963AbjKBCTg (ORCPT ); Wed, 1 Nov 2023 22:19:36 -0400 Received: from out-189.mta0.migadu.com (out-189.mta0.migadu.com [IPv6:2001:41d0:1004:224b::bd]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5ACD7120 for ; Wed, 1 Nov 2023 19:19:30 -0700 (PDT) Message-ID: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1698891568; 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=0zc20fVFKy4W9h0KGCjjTFtHtA4V+tYwK8sbCEwSZYE=; b=U36CUZibqC0+MoWHyMYJOLWR8uef9oka8hi7CkwX9g6Jt9nGWFsqLqKzQIfIzcGtCue04m T8fRH+UBIlJNzkGdenTucm/KMQLemuAym9FKElL1afbOqueynWi2sYN/KEdWjJdBovPjHk LJQmbbSGu4LaDJs1Gc/jUOlvi0EspCo= Date: Thu, 2 Nov 2023 10:19:18 +0800 MIME-Version: 1.0 Subject: Re: [RFC PATCH v4 0/9] slub: Delay freezing of CPU partial slabs Content-Language: en-US To: Vlastimil Babka , 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> <029f5042-e41d-5079-fdba-fbe3d4e60dcf@suse.cz> X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Chengming Zhou In-Reply-To: <029f5042-e41d-5079-fdba-fbe3d4e60dcf@suse.cz> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_OUT X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, 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 fry.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 (fry.vger.email [0.0.0.0]); Wed, 01 Nov 2023 19:19:45 -0700 (PDT) On 2023/11/1 21:59, Vlastimil Babka wrote: >> 3. Testing >> ========== >> We just did some simple testing on a server with 128 CPUs (2 nodes) to >> compare performance for now. >> >> - perf bench sched messaging -g 5 -t -l 100000 >> baseline RFC >> 7.042s 6.966s >> 7.022s 7.045s >> 7.054s 6.985s >> >> - stress-ng --rawpkt 128 --rawpkt-ops 100000000 >> baseline RFC >> 2.42s 2.15s >> 2.45s 2.16s >> 2.44s 2.17s > > Looks like these numbers are carried over from the first RFC. Could you > please retest with v4 as there were some bigger changes (i.e. getting > rid of acquire_slab()). > > Otherwise I think v5 can drop "RFC" and will add it to slab tree after > the merge window and 6.7-rc1. Thanks! Ah, yes, I will retest v5 and update the numbers today. Thanks! > >> It shows above there is about 10% improvement on stress-ng rawpkt >> testcase, although no much improvement on perf sched bench testcase. >> >> Thanks for any comment and code review! >> >> Chengming Zhou (9): >> slub: Reflow ___slab_alloc() >> slub: Change get_partial() interfaces to return slab >> slub: Keep track of whether slub is on the per-node partial list >> slub: Prepare __slab_free() for unfrozen partial slab out of node >> partial list >> slub: Introduce freeze_slab() >> slub: Delay freezing of partial slabs >> slub: Optimize deactivate_slab() >> slub: Rename all *unfreeze_partials* functions to *put_partials* >> slub: Update frozen slabs documentations in the source >> >> mm/slub.c | 381 ++++++++++++++++++++++++++---------------------------- >> 1 file changed, 180 insertions(+), 201 deletions(-) >>