Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp825644rdb; Thu, 15 Feb 2024 17:32:46 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXBGi9z+C1Pqg//DL///1ylgtPYNxklOfGrDPX4nXJYrUi4vgraCUEPaOCT47u1hD9Z5EBaVp1yY8H1XUqKba6PETGNYF03xCa1MLL2lQ== X-Google-Smtp-Source: AGHT+IGIozZ3W+D9p2/fMn5FaEwd/W/vtVPcQmhViFe/vsy+4Dq5IMnLKrcP4tgCQ7+AVFnNj20H X-Received: by 2002:a81:4520:0:b0:607:fb5f:5e1f with SMTP id s32-20020a814520000000b00607fb5f5e1fmr292699ywa.23.1708047166114; Thu, 15 Feb 2024 17:32:46 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708047166; cv=pass; d=google.com; s=arc-20160816; b=wNUWd+QGWYjrgjaDQ3kA1mCbkvDsVMALeXNezklbXtd+tNOl7d+CrfZpGhVwhoZeTH dNHcY2Vtc5S6Qs8Prfw193+a3Kyb3FbRDJKLXsBvbyf/mD4NSnjT3rFWvW8ORtrlgB5x Umx1gLMpbHYgmuoLOAk3m6D4uSCcbv+hEUQaPkNo3gmK4/LpL21xxkFegI56ywM8Hij5 axsQowbUrGEetD1gnd1gq/TQe5ulgy924xrG8U1j+cMyOKIga07N4a+hVGIseGr50U9x 2gz4Mvhfp/7HEv4Dqzu9bildQmfmyCxdVnzQmh/VvKi7ohbtQWuoIdKDeEGWwDktEAdI e4zQ== 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=vQYZ59CBPJ0zZaKxUafJy9oOl819GTZex04PI7LYJTI=; fh=STxfn8aLf7ixN8MsP1EYSGbXg/wwik8F/tcEHYLoJt8=; b=c1drgPN77tbHWPNtqKHBJcTxzV1dxMvUhd+ZWF+I6b97khbs/l6zYd30FR75s62TVo 55PyYBM7GJD96/7v5Hf4XpvQkCH74lyRx9BbdEKW4oEobfja6gbG2DNlUfYO4XVU+ReD w4r021cEzFa/uebGEfBiMwQ3DmAVkIO9ICYWOsKwqDk1LI7Z1RvLhbeV7wScarQiNiLI 7FNtnopqyjKWoTIxboSPKz8/dtx90yghP895y53aDdiwQtH08EJ0+G+kyrr55ZuNP3Cw CzJim8x3G3sSWOjpts6G8MkY80ZFZJuburMUbJBurbKn6DMTZdLx0TenoHjBlQ5Ry4UP pmJQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b="itXYy/Rq"; 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-67945-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67945-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id v24-20020ac873d8000000b0042a99face24si2575165qtp.795.2024.02.15.17.32.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 17:32:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-67945-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=@google.com header.s=20230601 header.b="itXYy/Rq"; 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-67945-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67945-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id B62391C20F9B for ; Fri, 16 Feb 2024 01:32:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A288FFC0C; Fri, 16 Feb 2024 01:31:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="itXYy/Rq" Received: from mail-yw1-f181.google.com (mail-yw1-f181.google.com [209.85.128.181]) (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 04D51EAC2 for ; Fri, 16 Feb 2024 01:31:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708047118; cv=none; b=q1IvLg9qud2v++V7Dw0YmExKu7SlI8jHp9mFf0e27PbrCBMRidxzusXNdLX90z5PY2OdWoRPygT38WzQAIa/O+2bNLZuo1nJtbKVwEpFVJIPuvDm2Opve8VOJR481qgGcf3RWpZCrb4lq/Ah1k6bIYdDgnWkxETRCBXE8PrM65c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708047118; c=relaxed/simple; bh=vQYZ59CBPJ0zZaKxUafJy9oOl819GTZex04PI7LYJTI=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=dhN8ktvuoSr/IzuvS9hWgD9zeI68r8K+8YfzTST3RhifgHG6lypPAN4r4sGMH/pytU34lJ92KLIHAu3MxQaGv4RWVSolZpJpAgYSuR1y6hFJxz5VqobKc09mPxiIbtxRtHZuZ5Z11yZJAYz0GtxPd2ymLrxU9cC61I3zmXf68cM= 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=itXYy/Rq; arc=none smtp.client-ip=209.85.128.181 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-yw1-f181.google.com with SMTP id 00721157ae682-604a1581cffso15131487b3.3 for ; Thu, 15 Feb 2024 17:31:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1708047116; x=1708651916; 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=vQYZ59CBPJ0zZaKxUafJy9oOl819GTZex04PI7LYJTI=; b=itXYy/Rq5xR2dZ0SWwxmNbF050Kt7ZGc+CuoSlhuVOrM09B5CzBzr/pKW48C+IleC1 Ni6TcNW/dgOGwS8zIuXIoyPovegCfX4484HfAcRmsyH/xXC/MwCP7bXHiQS33BzHbnvO jJ2RqPp+8J7XMIzxwjTro3d/vjfIsSCSMxMcC5y3KcjZFgLcyNepZuYsfx9L7DCFUs42 YndcgXzcwCUozf5IF09tonQE0uZi8MO1wqigD3esitbGlGMdFeD696PiO5Q0/+14tWVd llLA9gufIaSzLK6IWTV1MG3b10DekrEKi+A4MEJGrw2KlCkFhNA8CXGdlQ6Mi6xYoX2+ nlDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708047116; x=1708651916; 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=vQYZ59CBPJ0zZaKxUafJy9oOl819GTZex04PI7LYJTI=; b=GM44meqp1vu/unLKv41QLntZaHqalqz86JqXV10Z1LWi9Wt0FD6D506dgScaZREG41 R2p5waPBO/9jXx6f1mGoygi5gO5QqubR2UCcc8lrUye09hgVMVanQ3EhFtejul79GL5B kQCDpUXxLh21px/WTcOHoMnNyd1aZ7nchKjAciqkxI3oixZ5SQ82t9mXSiZfJh6Btkse eCqNjSwpRAlV0nPPhI4cWb4ZgiK05Ca90Q8uPxX9wGx3FxxfnPhKbGw/HLwnR5QMVSbO jyhh8J4fA02Y5j8QXkv1Qfg2XiMWy2WvIxPkweYHw/obZgnV85qibYqJiDBu8mNQuNla cFWg== X-Forwarded-Encrypted: i=1; AJvYcCVs0kb51QgUdHzoj2A1oHeTSId5Ia8to5RYrIF61jzuJVlA2EGlhBff+NwuWkFDMyx/suVi+Rwz+aeVfRYnyUZSehVdtpjfvg4RJiZd X-Gm-Message-State: AOJu0Yy4phv4pudCEAYCRMPfTuI24tqY6++spf4J5fTN6eSpxS+yRAky svWTf3IwiyzhF8Li5fNfs84BZ+f0drljIzYUeowEh4DGnKXgMkPwxJn4rBPvm+v/Q8ohXZWdtNM FtbJ3OoP8UN/AIUcvIW/4IeyrACvl51AgInYt X-Received: by 2002:a0d:d905:0:b0:5ff:9aa1:8970 with SMTP id b5-20020a0dd905000000b005ff9aa18970mr3787864ywe.34.1708047115685; Thu, 15 Feb 2024 17:31:55 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <320cd134-b767-4f29-869b-d219793ba8a1@suse.cz> <20240215180742.34470209@gandalf.local.home> <20240215192141.03421b85@gandalf.local.home> <20240215193915.2d457718@gandalf.local.home> <20240215201239.30ea2ca8@gandalf.local.home> In-Reply-To: From: Suren Baghdasaryan Date: Thu, 15 Feb 2024 17:31:41 -0800 Message-ID: Subject: Re: [PATCH v3 31/35] lib: add memory allocations report in show_mem() To: Kent Overstreet Cc: Steven Rostedt , Vlastimil Babka , Michal Hocko , akpm@linux-foundation.org, 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, david@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, 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 Thu, Feb 15, 2024 at 5:18=E2=80=AFPM Kent Overstreet wrote: > > On Thu, Feb 15, 2024 at 08:12:39PM -0500, Steven Rostedt wrote: > > On Thu, 15 Feb 2024 19:50:24 -0500 > > Kent Overstreet wrote: > > > > > > All nice, but where are the benchmarks? This looks like it will hav= e an > > > > affect on cache and you can talk all you want about how it will not= be an > > > > issue, but without real world benchmarks, it's meaningless. Numbers= talk. > > > > > > Steve, you're being demanding. We provided sufficient benchmarks to s= how > > > the overhead is low enough for production, and then I gave you a > > > detailed breakdown of where our overhead is and where it'll show up. = I > > > think that's reasonable. > > > > It's not unreasonable or demanding to ask for benchmarks. You showed on= ly > > micro-benchmarks that do not show how cache misses may affect the syste= m. > > Honestly, it sounds like you did run other benchmarks and didn't like t= he > > results and are fighting to not have to produce them. Really, how hard = is > > it? There's lots of benchmarks you can run, like hackbench, stress-ng, > > dbench. Why is this so difficult for you? I'll run these benchmarks and will include the numbers in the next cover le= tter. > > Woah, this is verging into paranoid conspiracy territory. > > No, we haven't done other benchmarks, and if we had we'd be sharing > them. And if I had more time to spend on performance of this patchset > that's not where I'd be spending it; the next thing I'd be looking at > would be assembly output of the hooking code and seeing if I could shave > that down. > > But I already put a ton of work into shaving cycles on this patchset, > I'm happy with the results, and I have other responsibilities and other > things I need to be working on.