Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp2931687rdb; Tue, 13 Feb 2024 01:20:51 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWsWrKp+IievK4+KJetjVm4A174PFUhtXB6blU1q48cig/YvYLCKPqtWEJkAm6aUG/btfN6DTFqPEWJOQjnWo4Y8eb5jAL1P+h8Jp7/ew== X-Google-Smtp-Source: AGHT+IF2CQKuFellQ75Nk1oSmu009+YEWR66xliLIzG04DyemQmdF4vgM6obqIrYyHbtXGK4Z+cp X-Received: by 2002:a17:906:5615:b0:a3c:2da5:93b2 with SMTP id f21-20020a170906561500b00a3c2da593b2mr5442770ejq.1.1707816051227; Tue, 13 Feb 2024 01:20:51 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707816051; cv=pass; d=google.com; s=arc-20160816; b=FA7rP+BmRLgD1jU8nw6Jl/GHkM6ChnndYbzVrZSpgsOL64/vP/Bl24fz967QmJmtvB vV/tOkL1CLC/6kHhdY4VUVBaS9nwPwobWiHq/E5+6C72n4TsGsM7IOsnM6TPbQaufhAD gqtVfDyrOi2ovUdRU7xrwO72fYW3rUvH2oI1AZoKRCeiY9X+VM9c1auCyIvWIXWwz3cb aV530sQSeKFmjLieNNNtCORs/GHoIrEaFe359E37u1Y3oZEnU0O4TTHV90SBoh9O52XE J+h9b7qjOTyG17bbpPas3Ei06pGdHa2oXhq2CyQJLWgl+j0ASfje4pL+/7ErQ2r+jKWm L6qg== 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=AOS35PXmDzxq8mJA/3f1NRxq/MHHhAThVo5B9zGgbyM=; fh=6Pr/30NdZ+m+sAvBdkkpd7WPdvw2Frw7ZLRZv1kpRq4=; b=GFzTQp/WVnYeGP2HP1Jzfi7irQWL0bimPqqj81DPAYchBPlgO9mxK79ilvSKNphMIz Z0NRKQw2LMI+PwnUbWipEgjCzodcWNacm1sK/+lpB3q2IAwww0q6K4cGLpo3qfwIrqAH gpbYPHNdi12jXlNOdcyynzmqr5wnU0tEEEkwxpjx9iZUCLmppTCsmeMSTUx2D5ZPyIgg DBlsk2aOmRUX3wuwgrk8WTL20jrXmCn+eUM+fySrbQSa5OhqDUnVGEG9C6ELwlXwmyuU p/FmjlNofEY+DsUfY/jkOfuICGONzvqK0t8BBG3ZNyGg1q9sEt1CIo6BIfdrRRse5A1Y DJuA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=0jQvgWAz; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=FUUCW58s; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=0jQvgWAz; 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-63194-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-63194-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; AJvYcCVAxtiu+O5E2cBpwamFNCl7Nz6G8ff5eYfc/EK/nIO/UOW8lZX1iIaWcy0PM+OGdrtsw+5q7X30ihAieQwt4Orba10YHayAb1BIUidFsg== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id cf10-20020a170906b2ca00b00a37e557301dsi1051518ejb.67.2024.02.13.01.20.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Feb 2024 01:20:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-63194-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.de header.s=susede2_rsa header.b=0jQvgWAz; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=FUUCW58s; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=0jQvgWAz; 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-63194-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-63194-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 am.mirrors.kernel.org (Postfix) with ESMTPS id E9B8E1F217B0 for ; Tue, 13 Feb 2024 09:20:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DB67E2232A; Tue, 13 Feb 2024 09:20:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="0jQvgWAz"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="FUUCW58s"; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="0jQvgWAz"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="FUUCW58s" 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 95A11210FE for ; Tue, 13 Feb 2024 09:20:42 +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=1707816044; cv=none; b=sSjcdJMAIdeMYmdnfpbGhUaOgmTdr8h0gND8aJXswg8sK+4AhFL2xHxAm2dQvBMn+upR8US+qmuqW02w4JZMZjnfHsF838yqPfjsuI0nzHs3+IwtQPquTMkxPNtys0rDnSolnd3wzMhjtRk07koqayDI5QOIvnopCsFPQOEYTyY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707816044; c=relaxed/simple; bh=cbS2nIbbwJua53Hk52unEBjtJ1Witn8A7K0lg6Or62g=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=jAdzfzUlpzyB9CUp1NK798gX+J3oXGnqIjfXeWxuCJnnbuf33/319PbWInGr3j0lL1V7P497voLrwBm4nxv2fG5P/J52Bt8swKdKnOypGGsNa9O9hLcTRaadIFLrCRM3UdhPo/W0QrxAwwOCCIFaePT13rQMhryviYsVOB7h9Jc= 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=0jQvgWAz; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=FUUCW58s; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=0jQvgWAz; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=FUUCW58s; arc=none smtp.client-ip=195.135.223.130 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 imap2.dmz-prg2.suse.org (imap2.dmz-prg2.suse.org [10.150.64.98]) (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 CBCE721CB5; Tue, 13 Feb 2024 09:20:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1707816040; 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=AOS35PXmDzxq8mJA/3f1NRxq/MHHhAThVo5B9zGgbyM=; b=0jQvgWAzsAfGieokk1BRChjKDJjs8YvOEql95YcoU9BVAhK3cLki48DmjDIeNJ6Q7gCULb 3h+uCPvK2bPXRUTOtGmNX6y2c1EMZ1MJIvIJhg4ABIW4L7URzIwDt0J/5P16GyOCgcULf2 KGi86YjrwV+xYDw59cuXQ4PwXTLR0fw= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1707816040; 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=AOS35PXmDzxq8mJA/3f1NRxq/MHHhAThVo5B9zGgbyM=; b=FUUCW58sTyeIzP4oFj2BY4J5q1fr8u6mOVOGRUHlKhEOMQJZMWzQEsJToM6IpHCHvYxzRd b0wHfInYidlTxvBg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1707816040; 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=AOS35PXmDzxq8mJA/3f1NRxq/MHHhAThVo5B9zGgbyM=; b=0jQvgWAzsAfGieokk1BRChjKDJjs8YvOEql95YcoU9BVAhK3cLki48DmjDIeNJ6Q7gCULb 3h+uCPvK2bPXRUTOtGmNX6y2c1EMZ1MJIvIJhg4ABIW4L7URzIwDt0J/5P16GyOCgcULf2 KGi86YjrwV+xYDw59cuXQ4PwXTLR0fw= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1707816040; 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=AOS35PXmDzxq8mJA/3f1NRxq/MHHhAThVo5B9zGgbyM=; b=FUUCW58sTyeIzP4oFj2BY4J5q1fr8u6mOVOGRUHlKhEOMQJZMWzQEsJToM6IpHCHvYxzRd b0wHfInYidlTxvBg== Received: from imap2.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 imap2.dmz-prg2.suse.org (Postfix) with ESMTPS id 51D0C13A0E; Tue, 13 Feb 2024 09:20:40 +0000 (UTC) Received: from dovecot-director2.suse.de ([10.150.64.162]) by imap2.dmz-prg2.suse.org with ESMTPSA id v0PeEGg0y2XQIAAAn2gu4w (envelope-from ); Tue, 13 Feb 2024 09:20:40 +0000 Date: Tue, 13 Feb 2024 10:21:50 +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 v8 4/5] mm,page_owner: Filter out stacks by a threshold Message-ID: References: <20240212223029.30769-1-osalvador@suse.de> <20240212223029.30769-5-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-out1.suse.de; none X-Spam-Level: X-Spam-Score: -3.75 X-Spamd-Result: default: False [-3.75 / 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]; NEURAL_HAM_LONG(-1.00)[-1.000]; RCVD_COUNT_THREE(0.00)[3]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; NEURAL_HAM_SHORT(-0.20)[-0.995]; RCPT_COUNT_SEVEN(0.00)[8]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.de:email]; 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(-2.45)[97.48%] X-Spam-Flag: NO On Tue, Feb 13, 2024 at 09:44:47AM +0100, Marco Elver wrote: > On Mon, 12 Feb 2024 at 23:29, Oscar Salvador wrote: > > + debugfs_create_file("set_threshold", 0600, dir, NULL, > > + &proc_page_owner_threshold); > > Can't you also read from "set_threshold", so the name "set_threshold" > is misleading. Why not just "threshold"? Yes, it can also be read. I guess I was too focused on the set part. I will rename that one, plus add the {READ,WRITE}_ONCE. Thanks! -- Oscar Salvador SUSE Labs