Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp2126644rdb; Sun, 11 Feb 2024 12:38:28 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXkoxnE+R3l71k1jcZgBC6egvfaY8hO+/h2HrTpSNi0z1BE1YsquJzMLOo67rQBjKeJ7F1EWzGyjexsCUQ8q8Hh+xj+ypGZc+72bokqcg== X-Google-Smtp-Source: AGHT+IF0gGfgfLzAITqChRxtw1+dPBjd4b1v6rVch+WE9x9fLrAOZKFJxgjw42hPz7IoDoFDg4tK X-Received: by 2002:a05:6808:10cc:b0:3c0:35a1:742c with SMTP id s12-20020a05680810cc00b003c035a1742cmr1917816ois.41.1707683908441; Sun, 11 Feb 2024 12:38:28 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707683908; cv=pass; d=google.com; s=arc-20160816; b=rJ6cAUvZMNYwAg4KrxR/82imNG3jt8PRmGX1e0x9b/h5XeTUgsoP+U05u3B7sar7Qw olew26uIl1hppSBQqQs9yStXM8Ae6OOZWC/Dl5daIhsmkPB38W2xn06Fk8PbMb8hqXDf wd+fViBD1e58vFfd7VeiGb6oCMxLq40102opOzhf2gJwGJ/gMi4Mao/DDIp+tf8p6TwV IfDfXeJ9Xv3rKOLDRHtyySHTmHlVxOerpw/8fxtOMKFR8Zv7jCwQu+LzWFWXf5s5CPPM yfke4LlAVfJBp+igKhAVKBrIBKsgE8+UQL+Gsk1V0FZ3hM+Edk3G0XEvFkmoHMnNXkh6 m1eQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature:dkim-signature:dkim-signature :dkim-signature; bh=5G9UufQhzBlj6wbuHLdb3OiYJa9vcLJo0W+Xwzs/0Mg=; fh=ZLb1Pvr2OjTh4muWzLJgwHHLJQSwyzqJrlFQ/5Rld7o=; b=GcWIP0GmXsJUE/hLgnGVIFzX1GhboJ3nreoZGylkoVQFx7ac4dUjx01l5QwhAzEHwB RSPXBJLnrc9jhTjMm7+L5ZO/FellQW93SeUgcpPhXu0cZMlBPWVJ9iTmkS7d+gD99Neh gyyJDHdEt5g2bpVCt+VEom975H73ULWGyykOYUqFWaqvqQGcd6aVqV6YU/0FnHqTX7Xi eLXWAnw9Dm6MiqqOuVtY93czhjdNr81Rge+QjqPNot8b0Ou+eF/SvzC0wZWSRJwe6pU9 rVS4PFDL20KTYf9+p1298Z8oZZMJDwSMYs4QosshgcdgjdihmLTIXuh9Ev4CA6SznO0W wuoA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=ag11Ucc8; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=SxWO8cKt; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=ag11Ucc8; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; arc=pass (i=1 spf=pass spfdomain=suse.de dkim=pass dkdomain=suse.de dkim=pass dkdomain=suse.de dmarc=pass fromdomain=suse.de); spf=pass (google.com: domain of linux-kernel+bounces-60949-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60949-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de X-Forwarded-Encrypted: i=2; AJvYcCX2c2Lxl4R6+S+2jvI+1XSRyp99bxzA0Mj3pGVf8Wo6yU0d0ulEeay/9JT31i5Zb61oo42UCz/adxITu4jlJ/MeHSNt3Z3FtZqS9BSTaQ== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id pj40-20020a05620a1da800b0078559fa9b4bsi4397511qkn.454.2024.02.11.12.38.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Feb 2024 12:38:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-60949-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=ag11Ucc8; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=SxWO8cKt; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=ag11Ucc8; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; arc=pass (i=1 spf=pass spfdomain=suse.de dkim=pass dkdomain=suse.de dkim=pass dkdomain=suse.de dmarc=pass fromdomain=suse.de); spf=pass (google.com: domain of linux-kernel+bounces-60949-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60949-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 3209A1C21429 for ; Sun, 11 Feb 2024 20:38:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A97C85B5D5; Sun, 11 Feb 2024 20:38:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="ag11Ucc8"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="SxWO8cKt"; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="ag11Ucc8"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="SxWO8cKt" Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) (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 8C8DD1E887 for ; Sun, 11 Feb 2024 20:38:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707683900; cv=none; b=bIo/mJ1DMI6YvXT9jf/FmFs5UsIKQ4NE7h7jH3r1h71X1OWEb7EKS5lNyrdWkXWBCJQkeU9MJDtsf0fRiVO1Sx/tIZ99KMWbxdQQ2/5xZWEljBXCZqI0qDWy9p3oAEvEqUujYtr2FSX3vKV5shyqH67s8W8j2T6lIOvNuK7sjZ4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707683900; c=relaxed/simple; bh=jgB6np7yNM5/5M+1YbiL/s2QczwQ+yAMQm0JOGUbLuw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=cCFHbzSFLY9sFoELAHuyWH2ljfswI/Epk3Tlr4YzX6vk9YHJc3vjsF9y+8x9LSZSspVDz/M178Cclz1EayzSDCIOVOloPmN1/gg7v4J4/T/CK4fBVqr9yJK6azKR6IQ2MJXqicfGhmuKQtUISJAeysd3/XGiG3DoHJXBSvZfyQ8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de; spf=pass smtp.mailfrom=suse.de; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=ag11Ucc8; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=SxWO8cKt; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=ag11Ucc8; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=SxWO8cKt; arc=none smtp.client-ip=195.135.223.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.de 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-out2.suse.de (Postfix) with ESMTPS id C975C1FB8C; Sun, 11 Feb 2024 20:38:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1707683896; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=5G9UufQhzBlj6wbuHLdb3OiYJa9vcLJo0W+Xwzs/0Mg=; b=ag11Ucc8Q7djBY2Sjy+KgNXbdA2VygDztlRBryiF3cTun2bxdST1CBgTLnJ51p4OADwUw9 VufrsSS4/cuT3RTFumrZqwxVuIf2Iclqqk8m0I83kRCpugi/T02A0dha/oEIFAMXVJzLAT yEBohPirTxS3nXes8zu9tTC/CSmPmbY= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1707683896; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=5G9UufQhzBlj6wbuHLdb3OiYJa9vcLJo0W+Xwzs/0Mg=; b=SxWO8cKtX+0JUuyh/20zvhpxUncM9AJFG6G5tdEG0HA8BMBvDHLj23C2j4qgwrchQHG4lJ Vzvt792rJpWPP9CQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1707683896; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=5G9UufQhzBlj6wbuHLdb3OiYJa9vcLJo0W+Xwzs/0Mg=; b=ag11Ucc8Q7djBY2Sjy+KgNXbdA2VygDztlRBryiF3cTun2bxdST1CBgTLnJ51p4OADwUw9 VufrsSS4/cuT3RTFumrZqwxVuIf2Iclqqk8m0I83kRCpugi/T02A0dha/oEIFAMXVJzLAT yEBohPirTxS3nXes8zu9tTC/CSmPmbY= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1707683896; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=5G9UufQhzBlj6wbuHLdb3OiYJa9vcLJo0W+Xwzs/0Mg=; b=SxWO8cKtX+0JUuyh/20zvhpxUncM9AJFG6G5tdEG0HA8BMBvDHLj23C2j4qgwrchQHG4lJ Vzvt792rJpWPP9CQ== 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 4C38A13985; Sun, 11 Feb 2024 20:38:16 +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 kmM4DzgwyWVAUAAAD6G6ig (envelope-from ); Sun, 11 Feb 2024 20:38:16 +0000 Date: Sun, 11 Feb 2024 21:39:24 +0100 From: Oscar Salvador To: Marco Elver Cc: Andrew Morton , linux-kernel@vger.kernel.org, linux-mm@kvack.org, Michal Hocko , Vlastimil Babka , Andrey Konovalov , Alexander Potapenko Subject: Re: [PATCH v7 3/4] mm,page_owner: Display all stacks and their count Message-ID: References: <20240208234539.19113-1-osalvador@suse.de> <20240208234539.19113-4-osalvador@suse.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Authentication-Results: smtp-out2.suse.de; none X-Spamd-Result: default: False [-1.39 / 50.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; FREEMAIL_ENVRCPT(0.00)[gmail.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; RCVD_COUNT_THREE(0.00)[3]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; RCPT_COUNT_SEVEN(0.00)[8]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_CC(0.00)[linux-foundation.org,vger.kernel.org,kvack.org,suse.com,suse.cz,gmail.com,google.com]; RCVD_TLS_ALL(0.00)[]; BAYES_HAM(-1.29)[90.02%] X-Spam-Level: X-Spam-Flag: NO X-Spam-Score: -1.39 On Sat, Feb 10, 2024 at 08:52:25AM +0100, Marco Elver wrote: > The extra bits are used by KMSAN, and might conflict if enabled at the > same time. I think the safest option is to keep your own list. I think > that will also be more performant if there are other stackdepot users > because you do not have to traverse any of the other entries. Ok, I thought we had spare bits for other users. But thinking about it some more, yes, it makes sense for page_owner to maintain its own list, so traversing it is faster and we do not have to place code to traverse the buckets in stackdepot. -- Oscar Salvador SUSE Labs