Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp2831808iog; Mon, 20 Jun 2022 05:53:37 -0700 (PDT) X-Google-Smtp-Source: AGRyM1ujXDlzIgQf+lu99BGUjVhaDzcZq/1peqfXif3ouDIuEK+ARmZkxUjFloq+Ie6q7XbnMF2S X-Received: by 2002:a05:6402:3891:b0:435:5262:3521 with SMTP id fd17-20020a056402389100b0043552623521mr24331917edb.320.1655729617106; Mon, 20 Jun 2022 05:53:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655729617; cv=none; d=google.com; s=arc-20160816; b=NxJ/gx16LCuCobx+vQq8jYX0pMwpyZCT95aGCYX4W/wzsZZJitQKtbSi8dHDFIPKG0 +pRd7aSW07OxnacrP3/H6aISZTF3bIZZq+P6reOfHEdKthudbQ6rvZhM9FhhHUpW8FTB 9FwYriB1OM0tJOhAdHQipCQvOOzLA6X+tgdgmkluRq6NA6TJCk0hP0CkRNsLwWr5AQB4 Y2PxrEPWAwLoBTPOraKCjlF1Z87r2oYhyryiXLFGri3eLv1estQK9K92YCZczXfHnG5Y zns67gWNiJbUcFVh2rwNJXz6phj0y5g2CYTOCDL/IceImp2m6bt81N8B1+gxUHmVrGW8 FE1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date:dkim-signature; bh=+c4QcA9b5Gi5EsqVv56YKe33xdAr2lQIQbp1pqAYP4g=; b=amhSCb/T4UY0d9l6/8SDVJlMzKXB0Xj3/ESTRtugbs4ygcxz4q+Nm8XcHo3aUY3kdy Yk1DHuOD+3gr0cKNdOCzcZJlRBmthbX7wTcb5uHOjAskQ4aVmbAFJRwEXp37jIbJPPVx GPuuObKQrf6ucniZrat6GixW7QKVELD+mnRrcCT9ORSw1u2QHugpZINwIwlRV7uwlEFq Qw5n6inHNZolpnOuIXjPO+lHa25YwffMwDSg7lxO02jNg13sJ2COY0Usaq/3TGoRLztg XlFbOHavFnW36eWroxXvI1Nfh3AkN84tN05J0fjP4kYWHbYH2btlWVr2haIW9WICwGK0 c2YA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gentwo.de header.s=default header.b=jO9B1ux7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gentwo.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hr7-20020a1709073f8700b00715785bb641si14181037ejc.31.2022.06.20.05.53.12; Mon, 20 Jun 2022 05:53:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gentwo.de header.s=default header.b=jO9B1ux7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gentwo.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240622AbiFTL5p (ORCPT + 99 others); Mon, 20 Jun 2022 07:57:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240729AbiFTL5l (ORCPT ); Mon, 20 Jun 2022 07:57:41 -0400 Received: from gentwo.de (gentwo.de [IPv6:2a02:c206:2048:5042::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8DAF717E1A for ; Mon, 20 Jun 2022 04:57:39 -0700 (PDT) Received: by gentwo.de (Postfix, from userid 1001) id 3500AB001DF; Mon, 20 Jun 2022 13:57:35 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gentwo.de; s=default; t=1655726255; bh=+c4QcA9b5Gi5EsqVv56YKe33xdAr2lQIQbp1pqAYP4g=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=jO9B1ux7ZEMOyzwGP7zGLGA1rrIbRCZsXlLmhW+4/yKCnEYVIPKCZ5dDIgomx2i5l DplGee1eJbR70onrjgaf6ycP3Zc9TxP/RI6dDmN2DitRZdkb5MVFRZvLVuWAO2EyhK L9MegfCaf2DVrlnH/yPER8zHdz9SCOhnbZJOrRrQrFNhhqojXz9hq2bm5tBcFHr+eu d+5sDtwtNamp2Cjc/Al1LaO/shmFNYjxAaJYn8dmrL0E3nT17RDnj+Cby80ZydmWmR GPSzZtB2JmoxNlPSoI03Ew5+1kw/e+bDcd3KM7mNLXT8QwZyOjJBF+k0ttyAQhMZUL RmXEpYmzqplAA== Received: from localhost (localhost [127.0.0.1]) by gentwo.de (Postfix) with ESMTP id 335F5B00192; Mon, 20 Jun 2022 13:57:35 +0200 (CEST) Date: Mon, 20 Jun 2022 13:57:35 +0200 (CEST) From: Christoph Lameter To: Rongwei Wang cc: David Rientjes , songmuchun@bytedance.com, Hyeonggon Yoo <42.hyeyoo@gmail.com>, akpm@linux-foundation.org, vbabka@suse.cz, roman.gushchin@linux.dev, iamjoonsoo.kim@lge.com, penberg@kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/3] mm/slub: fix the race between validate_slab and slab_free In-Reply-To: <1b434d4c-2a19-9ac1-b2b9-b767b642ec0c@linux.alibaba.com> Message-ID: References: <20220529081535.69275-1-rongwei.wang@linux.alibaba.com> <9794df4f-3ffe-4e99-0810-a1346b139ce8@linux.alibaba.com> <29723aaa-5e28-51d3-7f87-9edf0f7b9c33@linux.alibaba.com> <02298c0e-3293-9deb-f1ed-6d8862f7c349@linux.alibaba.com> <5085437c-adc9-b6a3-dbd8-91dc0856cf19@linux.alibaba.com> <1b434d4c-2a19-9ac1-b2b9-b767b642ec0c@linux.alibaba.com> User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 18 Jun 2022, Rongwei Wang wrote: > > Well the cycle reduction is strange. Tests are not done in the same > > environment? Maybe good to not use NUMA or bind to the same cpu > It's the same environment. I can sure. And there are four nodes (32G per-node > and 8 cores per-node) in my test environment. whether I need to test in one > node? If right, I can try. Ok in a NUMA environment the memory allocation is randomized on bootup. You may get different numbers after you reboot the system. Try to switch NUMA off. Use s a single node to get consistent numbers. It maybe useful to figure out what memory structure causes the increase in latency in a NUMA environment. If you can figure that out and properly allocate the memory structure that causes the increases in latency then you may be able to increase the performance of the allocator.