Received: by 2002:a05:7412:85a1:b0:e2:908c:2ebd with SMTP id n33csp20508rdh; Mon, 30 Oct 2023 12:25:38 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG+2x5QzI2HgSJu95LO722Ee2QHKAauYLh1dVp7+bCFS9T5e/JLDzb9hCBe4YFIMo3TPClW X-Received: by 2002:a05:6a00:10ca:b0:6bd:4ab7:5f69 with SMTP id d10-20020a056a0010ca00b006bd4ab75f69mr12337337pfu.12.1698693938605; Mon, 30 Oct 2023 12:25:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698693938; cv=none; d=google.com; s=arc-20160816; b=TIfcMM+S1UsBDf1bRAylLhy24oRmL5iW2Oj65AuER6i0vidN7s9utpr3m4VcE25oRs Got5L2qOX4q6apddXlThJIycM33SzNV4o3DV76JDS47v6UQN0CpG14ymdWbbqo8SnPu0 bBuMKZWf3DVh/EPhpQCFGlgCSNQzNmV/cwEbnL5BJTqXPHWWGyI/TQ2nHTUmP96l4bdN PTBkrDBO/pREdX6Fw/qaC9wQWidqUXQ7+mdrdUwgOUBxQZgs6y93jbp2f28Ux7BROXsE KMecFWtyP+njNgau568ada8TVKYVOiu9+Bt/+xBve4S3dJ0KEitP3FCr6fUSWlKsFn1o Z6aQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:message-id:in-reply-to :subject:cc:to:from:date; bh=cLe5dLICMsyUi28EqOyBVnOKkU5zLHxDyAsnK3+Lwi0=; fh=TRZseEql8AoBNaqthmRMwJa8BrktNXz9OsI4u1AVZe4=; b=hj5iBYi6fcuPIrzPCmKtK9f+vRBpS3W2EvnEX8yE92fYD981RBheJxDEMLlR+yBn5m vwkgA7E0KXehkDJsNPwKli01RaOGrHMa4igufCMzjg5vsNTKlh30aLYDDTwT5GwvAUok CycCr41cvtHOcaTJ3I1BWxmgV3OEbVYNLOdBzgJDFe67F9+Q49V+lsd3Yty2ADEry8NF ZFe0vOyYdlYb3Ut6voqr4rd8GbW04aBKi8ZjSFZdr3V4vgbOVKk43BYmiE+PQC5+zX+I PqPeJKgCgPHuu5VPRgMJgKvM59LezT2BmuFczScHLDnGYqMDpmDQhWyHdrKxNtof9FM0 LJDg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linux.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id h18-20020a63f912000000b005a0193c9328si5150952pgi.839.2023.10.30.12.25.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 12:25:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linux.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 7BC018053C69; Mon, 30 Oct 2023 12:25:36 -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 S231560AbjJ3TZY (ORCPT + 99 others); Mon, 30 Oct 2023 15:25:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39282 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229813AbjJ3TZX (ORCPT ); Mon, 30 Oct 2023 15:25:23 -0400 Received: from gentwo.org (gentwo.org [62.72.0.81]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 00D65B4 for ; Mon, 30 Oct 2023 12:25:20 -0700 (PDT) Received: by gentwo.org (Postfix, from userid 1003) id BD90248F2C; Mon, 30 Oct 2023 12:25:19 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by gentwo.org (Postfix) with ESMTP id BC0EE48CA2; Mon, 30 Oct 2023 12:25:19 -0700 (PDT) Date: Mon, 30 Oct 2023 12:25:19 -0700 (PDT) From: Christoph Lameter To: Chengming Zhou cc: penberg@kernel.org, rientjes@google.com, iamjoonsoo.kim@lge.com, akpm@linux-foundation.org, vbabka@suse.cz, roman.gushchin@linux.dev, 42.hyeyoo@gmail.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Chengming Zhou Subject: Re: [RFC PATCH v3 0/7] slub: Delay freezing of CPU partial slabs In-Reply-To: <1199315b-63ce-4be4-8cde-b8b2fd29f91a@linux.dev> Message-ID: <7f70d130-c05a-3cb7-9509-41c21c3014fb@linux.com> References: <20231024093345.3676493-1-chengming.zhou@linux.dev> <1199315b-63ce-4be4-8cde-b8b2fd29f91a@linux.dev> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS 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]); Mon, 30 Oct 2023 12:25:36 -0700 (PDT) On Sat, 28 Oct 2023, Chengming Zhou wrote: > 2. But for full slab (slab->freelist == NULL), PG_workingset is not much useful, we don't > safely know whether it's used as the cpu slab or not just from this flag. So __slab_free() > still rely on the "frozen" bit to know it. > > 3. And the maintaining of "frozen" has no extra cost now, since it's changed together with "freelist" > and other counter using cmpxchg, we already have the cmpxchg when start to use a slab as the cpu slab. > > Maybe I missed something, I don't know how to drop the frozen flag. Maybe frozen is now = PG_Workingset | cmpxchg-frozen?