Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2271166rdb; Mon, 5 Feb 2024 00:50:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IENFohQjMjYY/17XJHdrllGmttkIN6nAktVj1lsCP1dqagBZN98B1q4pnQXuiA/1kU0nhLI X-Received: by 2002:a17:906:f146:b0:a35:2758:2297 with SMTP id gw6-20020a170906f14600b00a3527582297mr11946291ejb.3.1707123038046; Mon, 05 Feb 2024 00:50:38 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707123038; cv=pass; d=google.com; s=arc-20160816; b=hOr3DUqmoV3Jh/Bbe0ll23rwDinJTmZWSYHmRIlnwn3ZD48E559t2+Q/FLN07cKN/d h8GKUqC7QsDX/veU4+GnwY+zryY/PqA1bfeM7aH//dq5c30J/GIs64XxH7SHAtFvrRJC +GZhDWkyxPFbn6KyHyNQy1SSD3SybrXBO6BHyU44+xA2Atbq9mikU8artZ9P+IFfpC5/ jPA4oT7hnJtCFbELl6/YFxXh1ZI3c6nzBzSVbFS2vqDC/bHHuJb+NT0GIdlrv0xX5fsL PDO+7PoAGDMleGXJF8tN5s/BL/y/fBTiHZW+EC8MrNEKJn5CWiCxqD2ng3QJhK+i7gHZ gNug== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature :dkim-signature:dkim-signature:dkim-signature; bh=pbOEFuT/dTTVapiIHVyuFegCJTnoM+Zym9Xi3X/VbGk=; fh=7OSx6hT3YjCRXpfMqB92bSHTekQ+eGt0m24Us4OPYW8=; b=KcufJ9BwxUxAGGh0fMeGuvRxPuHuTIdpH7I2qqOyfujfycNECJxpJgMBZHfypBon5i 6TvgrIzbAevDp8/2gGBZzZS9Dgx1jkAh9435z192fzbR8UvFAUHPyUCmb6NIQ5UpRqdz t7qZhstNlgoyju5Sp95Y46pfg2xsPkzr2f9NlTLaTOrqASE5ptXWC8peytaxkgkKysdn 1eeA1P1nxHNN6UREJ3DFShqYolG8JtI1STrI22Kqm/30BZIyyAgwO4lznnT0V/EEFRjO Iom0ptiazRHzwSY3V2ArpuwKqSmHvSOBKu4/YQYW5qx9KINOemeHGRHpq9J7n9rPW5Hx mACQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=xF4gQyrw; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=xF4gQyrw; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; arc=pass (i=1 spf=pass spfdomain=suse.cz dkim=pass dkdomain=suse.cz dkim=pass dkdomain=suse.cz); spf=pass (google.com: domain of linux-kernel+bounces-52226-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-52226-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=1; AJvYcCUNjw2734lNlKnFS2mL22Up9ZUhBfUn5ZdLN2efJFW0ssW5hYuNeXcwGQBLOC0AF3iA0ganjXsBpotEb9Zb5JpOoTofQ5y2CxxJMiQSLg== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id qx15-20020a170906fccf00b00a366f9e70ddsi3902520ejb.1000.2024.02.05.00.50.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 00:50:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-52226-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=xF4gQyrw; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=xF4gQyrw; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; arc=pass (i=1 spf=pass spfdomain=suse.cz dkim=pass dkdomain=suse.cz dkim=pass dkdomain=suse.cz); spf=pass (google.com: domain of linux-kernel+bounces-52226-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-52226-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 9C19C1F24A21 for ; Mon, 5 Feb 2024 08:50:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E2D5B12B78; Mon, 5 Feb 2024 08:50:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b="xF4gQyrw"; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b="z8R/GA5i"; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b="xF4gQyrw"; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b="z8R/GA5i" Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.223.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 72B0D125BC for ; Mon, 5 Feb 2024 08:50:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.130 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707123024; cv=none; b=uuRHnkMpdmQqcNHP7kmhd+bK15K8/aGe6S8BwTUNQ9gh0q6n/T2S9DBrpkvnJlJi2A7Wr8Rq+pLt2xAsI7eUYKEN9qdAEj142sND3y7DPtcbyBemZ2sAyTQKdcVyqRFba1905PstHmR92/SOrJ/sY4pYZAcTnmURjkjH1bGLKKU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707123024; c=relaxed/simple; bh=FkeIZJ/P4gf12zQMrXDZ8jnIvD/S9rD2jSxgSa7f+NQ=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=tr4sRKiO8WLa0nAucMIsKBlJCREfBeH5KaQgh5xrXMCbpsBnqm8NLrGmsZAwdpiAOMzxrMSgqQGtCUalpKzlGj8TAZfyfaolJAzKhaYO3x038kDJGD8PosrEEgY70x+dZUumhhlPy6LCNwR/l9dZpdrI2g9wz1QsZ/nrEq1Wxoo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=suse.cz; spf=pass smtp.mailfrom=suse.cz; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b=xF4gQyrw; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b=z8R/GA5i; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b=xF4gQyrw; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b=z8R/GA5i; arc=none smtp.client-ip=195.135.223.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=suse.cz Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.cz Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [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-out1.suse.de (Postfix) with ESMTPS id ABAEB21EDD; Mon, 5 Feb 2024 08:50:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1707123014; 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=pbOEFuT/dTTVapiIHVyuFegCJTnoM+Zym9Xi3X/VbGk=; b=xF4gQyrwPHafwPeA3wY/Bu4EfoeLqqQbQZLkrdhNORLs4h2xHU5EDSdSU3Iu8fmcVlFAjO vo3+mEW3e7SGGRV71s+Me3j7sR6HNN0O/47Vd2W74/za1LRteMpaLYQNEMHo/ct0x5/XDJ MpZs/qsmNIFEnrA5m0plxe003foPDNQ= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1707123014; 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=pbOEFuT/dTTVapiIHVyuFegCJTnoM+Zym9Xi3X/VbGk=; b=z8R/GA5i8WF/RM7nEe79Aw7dSLz4Ew8/AkJBNR5zuAzBtr3uwb9Jav8TGrp1ZwhkczvVcD 7YGBmPxvCr4TZlDQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1707123014; 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=pbOEFuT/dTTVapiIHVyuFegCJTnoM+Zym9Xi3X/VbGk=; b=xF4gQyrwPHafwPeA3wY/Bu4EfoeLqqQbQZLkrdhNORLs4h2xHU5EDSdSU3Iu8fmcVlFAjO vo3+mEW3e7SGGRV71s+Me3j7sR6HNN0O/47Vd2W74/za1LRteMpaLYQNEMHo/ct0x5/XDJ MpZs/qsmNIFEnrA5m0plxe003foPDNQ= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1707123014; 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=pbOEFuT/dTTVapiIHVyuFegCJTnoM+Zym9Xi3X/VbGk=; b=z8R/GA5i8WF/RM7nEe79Aw7dSLz4Ew8/AkJBNR5zuAzBtr3uwb9Jav8TGrp1ZwhkczvVcD 7YGBmPxvCr4TZlDQ== 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 8B461132DD; Mon, 5 Feb 2024 08:50:14 +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 HOukIUahwGXWEwAAD6G6ig (envelope-from ); Mon, 05 Feb 2024 08:50:14 +0000 Message-ID: <2f43774a-16cf-412e-b4b7-840889bb796b@suse.cz> Date: Mon, 5 Feb 2024 09:50:13 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] mm/slab: Add slabreclaim flag to slabinfo To: Greg KH , Fangzheng Zhang Cc: Christoph Lameter , Pekka Enberg , David Rientjes , Joonsoo Kim , Andrew Morton , Roman Gushchin , Hyeonggon Yoo <42.hyeyoo@gmail.com>, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Fangzheng Zhang , Yuming Han , Chunyan Zhang References: <20240131094442.28834-1-fangzheng.zhang@unisoc.com> <2024020441-version-chihuahua-1067@gregkh> Content-Language: en-US From: Vlastimil Babka In-Reply-To: <2024020441-version-chihuahua-1067@gregkh> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Authentication-Results: smtp-out1.suse.de; none X-Spam-Level: X-Spam-Score: 0.21 X-Spamd-Result: default: False [0.21 / 50.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; XM_UA_NO_VERSION(0.01)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; FREEMAIL_ENVRCPT(0.00)[gmail.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; NEURAL_HAM_LONG(-1.00)[-1.000]; MID_RHS_MATCH_FROM(0.00)[]; R_RATELIMIT(0.00)[to_ip_from(RLtz7ce9b89hw8xzamye9qeynd)]; RCVD_COUNT_THREE(0.00)[3]; DKIM_SIGNED(0.00)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519]; NEURAL_HAM_SHORT(-0.20)[-1.000]; RCPT_COUNT_TWELVE(0.00)[14]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_CC(0.00)[linux.com,kernel.org,google.com,lge.com,linux-foundation.org,linux.dev,gmail.com,kvack.org,vger.kernel.org,unisoc.com]; RCVD_TLS_ALL(0.00)[]; SUSPICIOUS_RECIPS(1.50)[] X-Spam-Flag: NO On 2/4/24 14:09, Greg KH wrote: > On Wed, Jan 31, 2024 at 05:44:42PM +0800, Fangzheng Zhang wrote: >> In order to enhance slab debugging, we add slabreclaim flag to >> slabinfo. Slab type is also an important analysis point in slabinfo >> for per slab, when various problems such as memory leaks or memory >> statistics occur. >> >> Signed-off-by: Fangzheng Zhang >> --- >> mm/slab_common.c | 7 ++++--- >> 1 file changed, 4 insertions(+), 3 deletions(-) >> >> diff --git a/mm/slab_common.c b/mm/slab_common.c >> index 238293b1dbe1..aeeb2bfe6dda 100644 >> --- a/mm/slab_common.c >> +++ b/mm/slab_common.c >> @@ -1038,7 +1038,7 @@ static void print_slabinfo_header(struct seq_file *m) >> seq_puts(m, "slabinfo - version: 2.1\n"); >> seq_puts(m, "# name "); >> seq_puts(m, " : tunables "); >> - seq_puts(m, " : slabdata "); >> + seq_puts(m, " : slabdata "); > > Doesn't this change the slabinfo version number above? Where is this > change documented so that userspace knows about it? Yeah I was vary about this. Do the other longer-time-than-me slab maintainers recall how we handled this in the past? Also the information is already available, even if harder to gather, in the file /sys/kernel/slab/$cache/reclaim_account > thanks, > > greg k-h