Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5313541rwd; Mon, 12 Jun 2023 03:18:30 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4SspfP5echcAtqTMNZfH9449Igg3e6rlCuAc6fn/bjQijs82L3afYMLe6A8AOuHf7LFe/r X-Received: by 2002:a17:902:d887:b0:1b0:6541:91c2 with SMTP id b7-20020a170902d88700b001b0654191c2mr5985876plz.63.1686565109924; Mon, 12 Jun 2023 03:18:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686565109; cv=none; d=google.com; s=arc-20160816; b=vkUcwZKUAqA4R+vWIgkdgyadIahMDQBjuRvc76yudtPnznUSPdnb0mF9nv7A/PXryx Fx2Ni726QBY8jUH0eHy1oPKT5e5yWdF74eV1BOX/k5KQVq7Waf2PxpMI3iLkQcuTvriM rmCaZu6eXOnE4HkdOUgKVMHBS3y+HY7CnXkgJNSST8ebxsly8WIUQoUV/SVntrf+8fpI e3ZOQBT0CAo0ieOHW/riHxJNzvdJtK7PmP7pMC2sYAAsNtc6kssiIjZ/Cohb6D86k1QS pS67ui/vGLEPh2gofP+ZYpIRQbikHe3ajvyBt4bX9uYZW4NHE+zVqUYzte3aIdceZhJw jOXQ== 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:dkim-signature:dkim-signature; bh=6Emr8M0/RctObEKZRro6J+KUvO1Jejbj0oVC9sdgo18=; b=B/6ygVvJkvEQIr7jTdpYu1IeH87O1/pSXF6r4A2mKrGY98IsHN8VCChXNwuWceLRCt PO8BJ+QsQE1nyuhTGhMOMMHAeLpGhBZOhia9nTcTPxE8dG3VxMPZAktGBPPbICDvS41o +1Fr1jTgct/Tn69DWmxgP2IH4ZpikmiBR48hOrVoNcNZxiMd1TTK5OcQEDk/UJBGO3cc HrlowH3VYoeu3lctkqriRx5B/sVGge1PDg5r4r+0KJqntsAxVq9YLXLxg+p0DlQ6Fhpt x/RJcx96RQEC4IM4648UTr2q6q6acXXd+UYHLla9vyhsf3otEZ1swdSZyAY++C+lHOxY mdSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b="AfY1NP/Z"; dkim=neutral (no key) header.i=@suse.cz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p1-20020a170902a40100b001b046c37589si3993983plq.428.2023.06.12.03.18.17; Mon, 12 Jun 2023 03:18:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b="AfY1NP/Z"; dkim=neutral (no key) header.i=@suse.cz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236866AbjFLKDv (ORCPT + 99 others); Mon, 12 Jun 2023 06:03:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37490 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236440AbjFLKBd (ORCPT ); Mon, 12 Jun 2023 06:01:33 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C342535A2 for ; Mon, 12 Jun 2023 02:44:40 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 6FB5322807; Mon, 12 Jun 2023 09:44:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1686563079; 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=6Emr8M0/RctObEKZRro6J+KUvO1Jejbj0oVC9sdgo18=; b=AfY1NP/Z0L5vDzsPzh2dXfKQPZg/c3D/aXYWYht0BwakIwQwDRIHIQaHhxgvaIb0luiXcP styc8uoqUJtTHTXuwCqJHqVYPjJBLF54NRV4Zr8M6jS4qLy/gFDvjHvujY6RbSgKhSLLaT 2Mh1BrphZETRWhxe/4WbnT83IFG4wjs= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1686563079; 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=6Emr8M0/RctObEKZRro6J+KUvO1Jejbj0oVC9sdgo18=; b=u5qYZVGzTsyIez8we60vnEQWNtD7lamS6oIVZZqutIuHQ/VCiWPZnT1SXCLPL4fKPhWPoO esOMLgs+Nz3ur7Bw== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 4602F1357F; Mon, 12 Jun 2023 09:44:39 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id bOldEAfphmRtFQAAMHmgww (envelope-from ); Mon, 12 Jun 2023 09:44:39 +0000 Message-ID: <8427ebb5-61d0-f0ad-3bfa-6aaf575427e4@suse.cz> Date: Mon, 12 Jun 2023 11:44:39 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.2 Subject: Re: [PATCH v4 0/3] page_owner: print stacks and their counter Content-Language: en-US To: Andrew Morton , Oscar Salvador Cc: Alexander Potapenko , linux-kernel@vger.kernel.org, linux-mm@kvack.org, Michal Hocko , Eric Dumazet , Waiman Long , Suren Baghdasaryan , Marco Elver , Andrey Konovalov References: <20230421101415.5734-1-osalvador@suse.de> <7718244879ff2b696ea9cbb744cb3805@suse.de> <20230609145505.dc30b7712779d990aba64372@linux-foundation.org> From: Vlastimil Babka In-Reply-To: <20230609145505.dc30b7712779d990aba64372@linux-foundation.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_SOFTFAIL,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/9/23 23:55, Andrew Morton wrote: > On Mon, 24 Apr 2023 05:54:59 +0200 Oscar Salvador wrote: > >> > Given that no other stackdepot user needs these counters, maybe it >> > should be cleaner to store an opaque struct along with the stack, >> > passing its size to stack_depot_save(), and letting users access it >> > directly using the stackdepot handler. >> > >> > I am also wondering if a separate hashtable mapping handlers to >> > counters would solve the problem for you? >> >> Let us see first if with the changes from above the code gets to a more >> generic and clean stage, if not we can explore further options. > > Alexander, does this approach sound reasonable to you? Note this is a v4 thread; there was (and the version in mm-unstable is) v5, where the latest was Alexander requesting further changes: https://lore.kernel.org/all/CAG_fn%3DUJgnLFGgpkXbMeD6axZN_ifEPHvWpy2_oiPyG1a6PXng@mail.gmail.com/ > The overall feature seems useful, although I'm not seeing any positive > reviewer feedback.