Received: by 2002:a05:7412:2a91:b0:fc:a2b0:25d7 with SMTP id u17csp220682rdh; Tue, 13 Feb 2024 15:02:08 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXV+YOgvcY95O3JRSOUpG4Beqz5FE7EHMB+D1JMOw2Imcv9T/Bhk5m7gyaQrjUC84H/VDO6eWqWJb4OUm9SK2V88V1j0w7kdCGhcFj1mw== X-Google-Smtp-Source: AGHT+IFPTcFSXTQFm7P3Rn1ZrH0Z5/wvnAlf6ZK6/9TKNawkOWWwfjque2XYUauQlz/3s2YzNNce X-Received: by 2002:aa7:9d0c:0:b0:6e0:6c0d:f55a with SMTP id k12-20020aa79d0c000000b006e06c0df55amr742299pfp.8.1707865328437; Tue, 13 Feb 2024 15:02:08 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707865328; cv=pass; d=google.com; s=arc-20160816; b=b2aTET490C9aCoG9vF336g/A2kWLyKFRdYwU6pyTb3YyBnfBpltfuHhYTQ6+hpYgQ/ VYsgN7pPQNBISbJD2LM21nMxIyhwdHjZSQ6e3jwPl9jdC1uiazeA7DziZUXE6ac1RCJB X3EI5SzECt3fE/h3MEAc9zV8KvzadUB+1Du36VwWvqGMa8PvFTdM4NFen3fF6o5aFaaa H+JApNx3flG+eqQvvqCbgndkqOhRRCQ9KU2XqGH8gzjq+0XVnTxz+x/KtsZ4m5CEfanC oVgqkpxb4Vm9w5I3b0RKlWsWyF9FdvzAG19bdIJRtKFCBJF7kExp1+tXVqCkjDAwDYpb ib4Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=844WXX5yd15NBvKyBWDdzovUDDmAUcOrqOuOYCpCKD8=; fh=ZERrDNQM9P7np0HM+z8jzUCr+0VoxeCbJby2L0BKQTc=; b=nuxR42Rt5AyG71w/2W5RnYBxZjuGWHo5n+CGXyl0PEB+eK6sYY9UxzqQbaa66qtzsz x27O1D0xytxZVqWvU+aW+/hnyarABvBzIASR5dXl5xLw2tflooENnwGuyahZArCoojwz UATBFkfe39P/SviY5UUGoilEG64WXUstr3Y95ZPnO3xxgx5uteds232pm2xGqrRqsLaL dMrJ8rd2xFqd5irlyQBsIx6t4r2oFvr5jBBNJXAwluuJvwKkCmop5xnBfz240ncmd24o aCdQfSzkl3Z2oW2rztYS0a4Sp8a80HLOsHwJcVH+5SlTAKh3DB9XdBq20V1HPy4Ps8xO asJg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b="R3/2bRPD"; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-64501-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64501-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com X-Forwarded-Encrypted: i=2; AJvYcCUZ7RKPke6M2x8XSE1qFkWk2ZThiavsBucsNtDc2pMXm9d/e7ebyi6eSDY63+1JUwJEd2eyHTmEDzuxN14B+M+0uQYdUZCSjIzd8klO1A== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id z28-20020aa79e5c000000b006e05e81201asi7376117pfq.51.2024.02.13.15.02.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Feb 2024 15:02:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-64501-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b="R3/2bRPD"; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-64501-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64501-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 60A95286298 for ; Tue, 13 Feb 2024 22:59:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2D708629FC; Tue, 13 Feb 2024 22:59:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="R3/2bRPD" Received: from mail-yb1-f172.google.com (mail-yb1-f172.google.com [209.85.219.172]) (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 301C06280D for ; Tue, 13 Feb 2024 22:59:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707865166; cv=none; b=pgU3Q69eA0jW/J+zRDSZT4l1LKwTjvnoDZx1PcjPZiKO8Gw0iw+oke7mugqMSwTj7nHUk6yh4Gh/+DbIBasfovzNrs1MBeCoC+ZseQrfWSGVurxKER3m/wNL85mWWxH5GZEGWocT1PgQhqKU8HJS+z54pR2BLT/xTrFvwY3TK+Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707865166; c=relaxed/simple; bh=844WXX5yd15NBvKyBWDdzovUDDmAUcOrqOuOYCpCKD8=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=BQyEjla78VU1YTONgpcSpU42AS46OAK6klD6goXKFJhjSUDS+nJcki/eGBqC+iY3m9yRVfZg1K7jygcWyy3qPVC0XSTJO0+5tK2osweenboeLlRZrTigbBqy56+NId0uZRBOL6MYDKI0XcXw4ZHCa7oI+KZMZ18yvcqqeD6NXmU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=R3/2bRPD; arc=none smtp.client-ip=209.85.219.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Received: by mail-yb1-f172.google.com with SMTP id 3f1490d57ef6-dc238cb1b17so4683677276.0 for ; Tue, 13 Feb 2024 14:59:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1707865163; x=1708469963; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=844WXX5yd15NBvKyBWDdzovUDDmAUcOrqOuOYCpCKD8=; b=R3/2bRPDEVBwjRU7D9sTgip5eUff4Ff3xyuNTbD8vkI0ntoJ7XeikCusWklcJqaNxZ 9Fm4i+B1BNwf0ViG66HrkyPdKIXUyzaA0sxcIYRQcSG8ER5AomjkYQVJZnwF6lkMTATJ L7poNaxetWkGIS7q8b39xWaQJHbUtEFLLrDLqFVjUWFljIv828b3LZ+iBeKRRbBlfBve okHGMq8IQ+QT+qbRv/fK7cxinVpjPdJRBS5tLuQAesFmhvRxyZxRGFbj+RIjLCVJCK5C nHV3m8AubiA7tXlQQxiqUoosOoJv2EF2wJf+Fc5UUZJP7EjHpEJsS0fqyvK+YKXjCaSG s0Zw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707865163; x=1708469963; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=844WXX5yd15NBvKyBWDdzovUDDmAUcOrqOuOYCpCKD8=; b=XuFDg8T/l+dvNA5U8ALTLrVql4eKC4o29kjOUNHeFhqM4E5Ct8e9ErReA5A+4JHrE+ GQoFHOUTKIbaDWcX1T4NiCN7aT1lM6eqcC3lG+k0L0SQ9L2wRPs1toTbQ7rzmLTnxvr2 MLhkS3bBWngtZrKLOvYgtrktYzO587h+sGkg6Fv6n8XjhkNhPSfMqZXzLNcVXbmeCLBk XSmsckX4ks4DViyFzYqUxVbqWUstb8VNqONK31tPxtrSsyFBcg6rCW8QlnvWenamqsPw mGGWWnNhpaIypxfzaZcru/W8V53RuSi9BpWYKwvsT748lL3lXRDKVgAd9YsL1itS0w2s tKCg== X-Forwarded-Encrypted: i=1; AJvYcCWeh4+Rp3Tb9oryu/8NUf1MEOtYGSuOIBROc5in21IxWDwuHxEr7BhhG+yz9/Z1aK9DlPj1crKofayQGS1q/e/vAf4RAEjBbq2fAW6q X-Gm-Message-State: AOJu0YwmbEuprD/GZ1yZNIFRZlNdf2KyV2piYeRC96YH+EK771JC+0hX YtCcePbeaNHOFCL7qzKQLSsYnLFGfJcViI/0/Lv30TDCYiH6xsz0okzMgc9grqMPFJTt6+bMdNH vNvW3P2EetfiCLNqplT8FKpuYhTgjxeUMUZQI X-Received: by 2002:a25:8691:0:b0:dc6:1869:9919 with SMTP id z17-20020a258691000000b00dc618699919mr694753ybk.41.1707865162739; Tue, 13 Feb 2024 14:59:22 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240212213922.783301-1-surenb@google.com> <9e14adec-2842-458d-8a58-af6a2d18d823@redhat.com> <2hphuyx2dnqsj3hnzyifp5yqn2hpgfjuhfu635dzgofr5mst27@4a5dixtcuxyi> <6a0f5d8b-9c67-43f6-b25e-2240171265be@redhat.com> In-Reply-To: From: Suren Baghdasaryan Date: Tue, 13 Feb 2024 14:59:11 -0800 Message-ID: Subject: Re: [PATCH v3 00/35] Memory allocation profiling To: Kent Overstreet Cc: David Hildenbrand , Michal Hocko , akpm@linux-foundation.org, vbabka@suse.cz, hannes@cmpxchg.org, roman.gushchin@linux.dev, mgorman@suse.de, dave@stgolabs.net, willy@infradead.org, liam.howlett@oracle.com, corbet@lwn.net, void@manifault.com, peterz@infradead.org, juri.lelli@redhat.com, catalin.marinas@arm.com, will@kernel.org, arnd@arndb.de, tglx@linutronix.de, mingo@redhat.com, dave.hansen@linux.intel.com, x86@kernel.org, peterx@redhat.com, axboe@kernel.dk, mcgrof@kernel.org, masahiroy@kernel.org, nathan@kernel.org, dennis@kernel.org, tj@kernel.org, muchun.song@linux.dev, rppt@kernel.org, paulmck@kernel.org, pasha.tatashin@soleen.com, yosryahmed@google.com, yuzhao@google.com, dhowells@redhat.com, hughd@google.com, andreyknvl@gmail.com, keescook@chromium.org, ndesaulniers@google.com, vvvvvv@google.com, gregkh@linuxfoundation.org, ebiggers@google.com, ytcoode@gmail.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, bristot@redhat.com, vschneid@redhat.com, cl@linux.com, penberg@kernel.org, iamjoonsoo.kim@lge.com, 42.hyeyoo@gmail.com, glider@google.com, elver@google.com, dvyukov@google.com, shakeelb@google.com, songmuchun@bytedance.com, jbaron@akamai.com, rientjes@google.com, minchan@google.com, kaleshsingh@google.com, kernel-team@android.com, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, iommu@lists.linux.dev, linux-arch@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-modules@vger.kernel.org, kasan-dev@googlegroups.com, cgroups@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Feb 13, 2024 at 2:50=E2=80=AFPM Kent Overstreet wrote: > > On Tue, Feb 13, 2024 at 11:48:41PM +0100, David Hildenbrand wrote: > > On 13.02.24 23:30, Suren Baghdasaryan wrote: > > > On Tue, Feb 13, 2024 at 2:17=E2=80=AFPM David Hildenbrand wrote: > > > > > > > > On 13.02.24 23:09, Kent Overstreet wrote: > > > > > On Tue, Feb 13, 2024 at 11:04:58PM +0100, David Hildenbrand wrote= : > > > > > > On 13.02.24 22:58, Suren Baghdasaryan wrote: > > > > > > > On Tue, Feb 13, 2024 at 4:24=E2=80=AFAM Michal Hocko wrote: > > > > > > > > > > > > > > > > On Mon 12-02-24 13:38:46, Suren Baghdasaryan wrote: > > > > > > > > [...] > > > > > > > > > We're aiming to get this in the next merge window, for 6.= 9. The feedback > > > > > > > > > we've gotten has been that even out of tree this patchset= has already > > > > > > > > > been useful, and there's a significant amount of other wo= rk gated on the > > > > > > > > > code tagging functionality included in this patchset [2]. > > > > > > > > > > > > > > > > I suspect it will not come as a surprise that I really disl= ike the > > > > > > > > implementation proposed here. I will not repeat my argument= s, I have > > > > > > > > done so on several occasions already. > > > > > > > > > > > > > > > > Anyway, I didn't go as far as to nak it even though I _stro= ngly_ believe > > > > > > > > this debugging feature will add a maintenance overhead for = a very long > > > > > > > > time. I can live with all the downsides of the proposed imp= lementation > > > > > > > > _as long as_ there is a wider agreement from the MM communi= ty as this is > > > > > > > > where the maintenance cost will be payed. So far I have not= seen (m)any > > > > > > > > acks by MM developers so aiming into the next merge window = is more than > > > > > > > > little rushed. > > > > > > > > > > > > > > We tried other previously proposed approaches and all have th= eir > > > > > > > downsides without making maintenance much easier. Your positi= on is > > > > > > > understandable and I think it's fair. Let's see if others see= more > > > > > > > benefit than cost here. > > > > > > > > > > > > Would it make sense to discuss that at LSF/MM once again, espec= ially > > > > > > covering why proposed alternatives did not work out? LSF/MM is = not "too far" > > > > > > away (May). > > > > > > > > > > > > I recall that the last LSF/MM session on this topic was a bit u= nfortunate > > > > > > (IMHO not as productive as it could have been). Maybe we can fi= nally reach a > > > > > > consensus on this. > > > > > > > > > > I'd rather not delay for more bikeshedding. Before agreeing to LS= F I'd > > > > > need to see a serious proposl - what we had at the last LSF was p= eople > > > > > jumping in with half baked alternative proposals that very much h= adn't > > > > > been thought through, and I see no need to repeat that. > > > > > > > > > > Like I mentioned, there's other work gated on this patchset; if p= eople > > > > > want to hold this up for more discussion they better be putting f= orth > > > > > something to discuss. > > > > > > > > I'm thinking of ways on how to achieve Michal's request: "as long a= s > > > > there is a wider agreement from the MM community". If we can achiev= e > > > > that without LSF, great! (a bi-weekly MM meeting might also be an o= ption) > > > > > > There will be a maintenance burden even with the cleanest proposed > > > approach. > > > > Yes. > > > > > We worked hard to make the patchset as clean as possible and > > > if benefits still don't outweigh the maintenance cost then we should > > > probably stop trying. > > > > Indeed. > > > > > At LSF/MM I would rather discuss functonal > > > issues/requirements/improvements than alternative approaches to > > > instrument allocators. > > > I'm happy to arrange a separate meeting with MM folks if that would > > > help to progress on the cost/benefit decision. > > Note that I am only proposing ways forward. > > > > If you think you can easily achieve what Michal requested without all t= hat, > > good. > > He requested something? Yes, a cleaner instrumentation. Unfortunately the cleanest one is not possible until the compiler feature is developed and deployed. And it still would require changes to the headers, so don't think it's worth delaying the feature for years.