From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id D0F80C6FD18 for ; Tue, 28 Mar 2023 16:28:27 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 2AD026B0072; Tue, 28 Mar 2023 12:28:27 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 25D976B0075; Tue, 28 Mar 2023 12:28:27 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 14BE46B0078; Tue, 28 Mar 2023 12:28:27 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 040B16B0072 for ; Tue, 28 Mar 2023 12:28:27 -0400 (EDT) Received: from smtpin25.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id A3432C0911 for ; Tue, 28 Mar 2023 16:28:26 +0000 (UTC) X-FDA: 80618839812.25.CA54A65 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by imf08.hostedemail.com (Postfix) with ESMTP id 76F7816000D for ; Tue, 28 Mar 2023 16:28:23 +0000 (UTC) Authentication-Results: imf08.hostedemail.com; dkim=pass header.d=suse.cz header.s=susede2_rsa header.b=LPlAN7P2; dkim=pass header.d=suse.cz header.s=susede2_ed25519 header.b=5T5jIDSL; spf=pass (imf08.hostedemail.com: domain of vbabka@suse.cz designates 195.135.220.28 as permitted sender) smtp.mailfrom=vbabka@suse.cz; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1680020903; h=from:from:sender:reply-to:subject:subject: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:dkim-signature; bh=glRWKttHyaif3Tia9UrJ1ZD1++zoH7ejygPsJmWo4d4=; b=TnVwnXiosjMyowlE9MxbdKRy5ziafqGbhWc6TGhN3DMQ8FDHnK2vT01bLlEitoDVUlzZNi m3fc5aidXnmPVMq8CUEpHDuuA0b64BYGLt5WIJur9ka/ILuI1XdG2GJkHyZbHw3CMvQRDf Jq5lP7054pRkczDxQCPXmltDYM2Yc68= ARC-Authentication-Results: i=1; imf08.hostedemail.com; dkim=pass header.d=suse.cz header.s=susede2_rsa header.b=LPlAN7P2; dkim=pass header.d=suse.cz header.s=susede2_ed25519 header.b=5T5jIDSL; spf=pass (imf08.hostedemail.com: domain of vbabka@suse.cz designates 195.135.220.28 as permitted sender) smtp.mailfrom=vbabka@suse.cz; dmarc=none ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1680020903; a=rsa-sha256; cv=none; b=RtnS4kAhZCx8sVtnW0HO035rdRLYiGWVFhHow3LOPtKMaeZ6ziKsUwgnGcaVWILkuJfC03 ESMU4ojCAlhcEXaR558BYCoRu32gCyxQPLWbbtZ+Ofd9p9hoWf/IT1rl9W5gxK90FMCt+L Sgb2Kc2/e21eVF5MXkaTreBoBOTWGso= 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 C0FD6219CF; Tue, 28 Mar 2023 16:28:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1680020901; 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=glRWKttHyaif3Tia9UrJ1ZD1++zoH7ejygPsJmWo4d4=; b=LPlAN7P2uIWMgLwg9r6zUkNGLsk2dckGJ1bnEYYrE+NjPo5eRwv4RYtsU6bTKXYKB+yH8f V2tmh9lXJxLj6l5Q/ln4pKAO3yRGm39zi+FhUv5G/cMBOJJZPsWXV8WzY/jeM+hFWbFc6v Fo9l90V1cdqmNFYSXizsQfNo7rsmIL4= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1680020901; 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=glRWKttHyaif3Tia9UrJ1ZD1++zoH7ejygPsJmWo4d4=; b=5T5jIDSLku2md3VhIgIaKIINvKwPxGl9KX554aQsTeJ0ua5FXq5VsrpSkrhONZMUqdTWLl GDnFgxnqyGFs4gAg== 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 A8FC71390B; Tue, 28 Mar 2023 16:28:21 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id jg+iKKUVI2S5PAAAMHmgww (envelope-from ); Tue, 28 Mar 2023 16:28:21 +0000 Message-ID: <115288f8-bd28-f01f-dd91-63015dcc635d@suse.cz> Date: Tue, 28 Mar 2023 18:28:21 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [LSF/MM/BPF TOPIC] Memory profiling using code tagging Content-Language: en-US To: Suren Baghdasaryan , lsf-pc@lists.linux-foundation.org Cc: linux-fsdevel , linux-mm , Kent Overstreet References: From: Vlastimil Babka In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: 76F7816000D X-Rspam-User: X-Stat-Signature: on71fwdjkgxnr7d9gj3dm9yxdsc4b84q X-HE-Tag: 1680020903-852390 X-HE-Meta: U2FsdGVkX1//MtJO8jAkP3Cel255b6E0ZgEYZSptX6kWKUQYUJzltbvvEoGxSr68rdx9DfQkLMDoFi+HUesBt7JqdQbTed5JSnCXoezpDOD6TFhMO9YAESn/OWU5YaqSJyArn7zNv1gDmxa1J8E+14aRYPcyWDLpk4LE+h2VDRmAwQF63hzG1RMxXsdGGRNhrXI0aOKbPV54IEte91Ae7ydVtUQJQC494uMc8NO8cuWMqCRfLpBV7DfmIdEOVjnBkV0UUBsGcLxk66vCaMll5So1QXnIZqDsd9yZprOX0NHAO/TY33E84c9yRJMHzhJzU40gSKfZd7CCoFJp2PHWW5eVD/YxUtN23YjHU2G3gNcEO+y4zixqNZK9LMVBeHZkWRGQfGGeeW+4BBfCaA4efCjjCuGBvmKW+iPA+kDrm03kPqFgYQ5k0WYl8liegFfMVmgyTGzvHTKFzmtOwkkLtqhKrcEw/J9keK9ikolGaC9P+iEAynE+7z/IzAcOAem10WFI62M+hYU2Z2pYc3Bo/x6uExSNyh1gF92OU/++qNgSKFUevbi4yPXAJzqR/9wtVXL4PZJMiotqAzh6jxtNi5zVJ59LvScQhqD+2Ev6lYZ0ESfMnTcE5R1y6/5JDvz3Ag+gUuWH6JdWpwAPgGblA7zCNTmCO0FLg6pE26aq9/oTAxhUpcERxpcVt197HZfUgOTmVCmdLjqEZIVqUccNYC5stpi6JEPbF+VsBc6AsvpgJ/I/AUJrN8QfeqZbbuMFjO5aL2ON4pVHQzQORwQfMBi3F7McfgZJHQ7HopY6Ys7VzBitDXGXknbRvrcUEiljmTGa5GYEfJbXc6qJox/sHjrhm91aB+eJ7wwGrS5FB8WCrmjZ9/HJdGJROPrgLvYTWlRO1wWPWJJbBhxiQ76nXn4ICPYk1Um7vU9E9UbZiR5q6rTuubmLXPgpZG7BzXj4rWF7RtEi+DuntiHHLrh 0AJrRkXw bj7w3kiEedfX4sE9OgPkqkh6E7NCjUC8UDviaU4lkKaTYmLRjrgd62cBH35S5eHTQ6+fXmGLIW4mrV6kSctLqYasGUWkMTJGTG6Oin8ysIntzTZxRxyLy9WofjPMNaPWXvcfRTUHok2axKpOYWs4q52VtvU66PEO43uJ0zjS7vOvh7hEqVm+jtsr5Pd9wokatUTTZ7txM7sTrmlqbS/rAc+6v0jkonJ+5DqxPzeLsHjjuV1i2fx25Qd5xescVhKvj7ZbgBHeYeKbzSl2EwtavOiyGfEEOmpw4gjh3RzE24tpxPXb1R57W8bYEuABGNYPSpmKxYv33p0fVm1zbPzb3fhiOtyCuUC2VFFy3 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On 2/22/23 20:31, Suren Baghdasaryan wrote: > We would like to continue the discussion about code tagging use for > memory allocation profiling. The code tagging framework [1] and its > applications were posted as an RFC [2] and discussed at LPC 2022. It > has many applications proposed in the RFC but we would like to focus > on its application for memory profiling. It can be used as a > low-overhead solution to track memory leaks, rank memory consumers by > the amount of memory they use, identify memory allocation hot paths > and possible other use cases. > Kent Overstreet and I worked on simplifying the solution, minimizing > the overhead and implementing features requested during RFC review. IIRC one large objection was the use of page_ext, I don't recall if you found another solution to that? > Kent Overstreet, Michal Hocko, Johannes Weiner, Matthew Wilcox, Andrew > Morton, David Hildenbrand, Vlastimil Babka, Roman Gushchin would be > good participants. > > [1] https://lwn.net/Articles/906660/ > [2] https://lore.kernel.org/all/20220830214919.53220-1-surenb@google.com/ >