Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp164443rdb; Tue, 5 Dec 2023 01:39:16 -0800 (PST) X-Google-Smtp-Source: AGHT+IGer/BObcM1/Sd/tJmsKzsB7JLGJBHYqqCzJRcq5vdAeICs4Vl6r2dT2g0O1c5au1gJru3J X-Received: by 2002:a05:6358:278f:b0:170:560b:ff2c with SMTP id l15-20020a056358278f00b00170560bff2cmr126876rwb.47.1701769156414; Tue, 05 Dec 2023 01:39:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701769156; cv=none; d=google.com; s=arc-20160816; b=toh+fiw1Pwa41nawQOMZe21lcJdVBfn22htWukZ+38u8yR+Guwy/H/mb4jTu9IZbDo egyNszYtNfOgAp0YQM3bnG213LmpAtDLRzDsdha40bJHkFv5RVElxBirHCME5rNhZPON MwSZd+iaYZTPgBoHiwrPdx2+XoDHzxpsFJZslAqj0RGJdZ54F6zOyA+H72DR4lMNcK/J 2/FqEVObq3phY664ugQ65Ar7VO4ZWN4e/K3++zumVPOfNjcIWD5f4b3Sdq5n8HUC3EFI YX1nhtfiQMsZDt2WezQowhecJWQ5RfV7uP+KXu18vJyM/VPP83EuaFpD3FSES/estEix Kl+w== 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; bh=1qEg1MgjHLgo1ZSegCIGvMtLWyWiGwFg7TXwWih5trc=; fh=qALBSiS3xvPyPb6Axi2rXqIJTYeW16vahpjBCHsmNtg=; b=sMJAl1HErl9NwT/+J1eywfd/cjyTI/r9XCYmnOb1/AkbwRcqWgWpo8BKdhUg2sTMj/ z4EL4xXYLK94FeaGDcFwOZjNb1ah36xB+yNRr0riSBG6Y2eQnPwUGk7MzsjdhtOYlP1V 6BISd5liWbjo/57K50KuRyXJdJuag+N0bs/00zfIw/xjS3j9xqZnMeeHKES03tK323wB d7RVUXUK8tenC9/9Vhq26WmrdMJXVJKzfENd+6ficnW4KNB9savemXqiz5cpVyk4WR4V QxcrIFbTOfCWWTjeHSi86OC2twL1iCEPLeTSBr29bVP/5/nithUPTbRQTA257vLmTOiy c4PA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id c12-20020a63da0c000000b00564c67e66fbsi9405539pgh.842.2023.12.05.01.39.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Dec 2023 01:39:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (Postfix) with ESMTP id E2AB3809B47B; Tue, 5 Dec 2023 01:39:13 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344856AbjLEJi6 (ORCPT + 99 others); Tue, 5 Dec 2023 04:38:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40170 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234898AbjLEJi5 (ORCPT ); Tue, 5 Dec 2023 04:38:57 -0500 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2a07:de40:b251:101:10:150:64:2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A4497C6 for ; Tue, 5 Dec 2023 01:39:03 -0800 (PST) Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104:10:150:64:97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 22BD81FB80; Tue, 5 Dec 2023 09:39:02 +0000 (UTC) Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 08B7213A2E; Tue, 5 Dec 2023 09:39:02 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id Id6DAbbvbmXUVwAAD6G6ig (envelope-from ); Tue, 05 Dec 2023 09:39:02 +0000 Message-ID: Date: Tue, 5 Dec 2023 10:39:01 +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: [PATCH v5 9/9] slub: Update frozen slabs documentations in the source Content-Language: en-US To: Chengming Zhou , "Christoph Lameter (Ampere)" Cc: penberg@kernel.org, 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: <20231102032330.1036151-1-chengming.zhou@linux.dev> <20231102032330.1036151-10-chengming.zhou@linux.dev> <29bd5cc7-e8e6-4a4d-b526-651c7885a185@linux.dev> From: Vlastimil Babka In-Reply-To: <29bd5cc7-e8e6-4a4d-b526-651c7885a185@linux.dev> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spamd-Bar: ++++++++ Authentication-Results: smtp-out2.suse.de; dkim=none; dmarc=none; spf=softfail (smtp-out2.suse.de: 2a07:de40:b281:104:10:150:64:97 is neither permitted nor denied by domain of vbabka@suse.cz) smtp.mailfrom=vbabka@suse.cz X-Rspamd-Server: rspamd2 X-Spamd-Result: default: False [8.39 / 50.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; BAYES_HAM(-0.00)[12.04%]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FREEMAIL_ENVRCPT(0.00)[gmail.com]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(1.20)[suse.cz]; R_SPF_SOFTFAIL(4.60)[~all]; NEURAL_HAM_LONG(-1.00)[-0.998]; RCVD_COUNT_THREE(0.00)[3]; MX_GOOD(-0.01)[]; RCPT_COUNT_SEVEN(0.00)[11]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(2.20)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_CC(0.00)[kernel.org,google.com,lge.com,linux-foundation.org,linux.dev,gmail.com,kvack.org,vger.kernel.org,bytedance.com]; RCVD_TLS_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; SUSPICIOUS_RECIPS(1.50)[] X-Spam-Score: 8.39 X-Rspamd-Queue-Id: 22BD81FB80 X-Spam-Status: No, score=-4.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.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 (howler.vger.email [0.0.0.0]); Tue, 05 Dec 2023 01:39:14 -0800 (PST) On 12/5/23 07:06, Chengming Zhou wrote: > On 2023/12/5 05:41, Christoph Lameter (Ampere) wrote: >> On Thu, 2 Nov 2023, chengming.zhou@linux.dev wrote: >> >>> From: Chengming Zhou >>> >>> The current updated scheme (which this series implemented) is: >>> - node partial slabs: PG_Workingset && !frozen >>> - cpu partial slabs: !PG_Workingset && !frozen >>> - cpu slabs: !PG_Workingset && frozen >>> - full slabs: !PG_Workingset && !frozen >> >> The above would be good to include in the comments. >> >> Acked-by: Christoph Lameter (Ampere) >> > > Thanks for your review and suggestion! > > Maybe something like this: Thanks, added. > diff --git a/mm/slub.c b/mm/slub.c > index 623c17a4cdd6..21f88bd9c16b 100644 > --- a/mm/slub.c > +++ b/mm/slub.c > @@ -93,6 +93,12 @@ > * by clearing the PG_workingset flag when moving out of the node > * partial list. Please see __slab_free() for more details. > * > + * To sum up, the current scheme is: > + * - node partial slab: PG_Workingset && !frozen > + * - cpu partial slab: !PG_Workingset && !frozen > + * - cpu slab: !PG_Workingset && frozen > + * - full slab: !PG_Workingset && !frozen > + * > * list_lock > * > * The list_lock protects the partial and full list on each node and