Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp371358rdb; Sat, 17 Feb 2024 12:11:21 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWrDvMtbpAd3SFKy7ODhWcE2/QVFGlqIhSJFfDKCYMtYcbMJlqjx/58rSVT5HQTm7x6pOoe2MW4HL6y3JEr9gI9PCQYy40lvHbt0DAulg== X-Google-Smtp-Source: AGHT+IGNlSUQF+ZknDAn45Q+Zt4JHlut1f+gCmr7bjxvN+ub2QR38H+tZFcxKZvfnha8UD6Knipv X-Received: by 2002:a05:6a21:9216:b0:19e:a3d4:24be with SMTP id tl22-20020a056a21921600b0019ea3d424bemr9627053pzb.49.1708200680943; Sat, 17 Feb 2024 12:11:20 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708200680; cv=pass; d=google.com; s=arc-20160816; b=t9HTODtZfQa0kcDrpRHgyzFgeQK2NcCKcI0Q8Pep9hGeQJq66riExGdoX4JoeTJ9z0 2Bi4u43gLZmsK2k5ks7llTbRguhwoBlkDcbma2nB6rqPugRXeMRZ/4ueRATi9BuqZEcm 6ON+YKfLhhCK1rziZ/f5AbSWzOn4b83RRrF+koUXM5pSolgruEABKmLhZS0RVtUmMkIB Pbk0M5stuc+zqIGTC3G0krmjdn8WXXXDknJQpPx8KShOAtHrsQrgicBKOrKQ4JGZt5LC q5TDadSrMoWl13Iaqedm0EAsfd2u0AgwKbRPJeZ9q8gV8HYLuI1m6oiXgp1cg3WWTSpE Mc0w== 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:dkim-signature:date; bh=widJLyBLNbG/fhM0WxQtdV2j/zClvMMmMBAQpE7WaPU=; fh=FR3RXmyA9ofBvidLh9oUCOIYkJ4Sq2+r/JW45qKHLng=; b=ilakhkWnooqdbPCvPYYkYnbN7DBNTPRrxxPVZbJq/+VWW6vKBpBBqFKCAobmw2+eP3 FMbTaDP1v1foVpzP81kJy49FAOljC5Fr3uB/Y4sAtyeOZMEtMjWw+KxaQCyhizaO3gDg +Ug3JSd7msqEcMH1qHn5y63i7ZxH2tzRQgfqBwkcq06xMVcLkC6wRcvIAIjzC3kwBRgN x+V9Er7ifZ/iCVVWNYYNDpXJK7XKHzUW1RdB4RH1YOHqJK5CBsNh6oVEdtKCfY4ojJug 1US21anXvzpFDcxCRcMlj4Z6OObQZG7VMbeSwW4EYiRDIq0oh9Z+NeX9WtvRK5ftKZVi eJtQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=gGO7GNDq; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-70050-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-70050-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id hq10-20020a056a00680a00b006e11d368356si1939196pfb.202.2024.02.17.12.11.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 17 Feb 2024 12:11:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-70050-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=gGO7GNDq; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-70050-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-70050-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 2A9E2B223D2 for ; Sat, 17 Feb 2024 20:11:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 792F67E776; Sat, 17 Feb 2024 20:10:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="gGO7GNDq" Received: from out-179.mta1.migadu.com (out-179.mta1.migadu.com [95.215.58.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E9B517E57F for ; Sat, 17 Feb 2024 20:10:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708200656; cv=none; b=XyVH2z3t9uxPkB6fqFdhPB6K6AZda6KYfhpwuW4ldT9vXt0P84bo6ICmVdLdpYvr+cnlNOAXMLpI75HGVK9PLkSM7yT2fsW5KneFqCiya+p5xtF2o1HLSxvE+6jwfiLIRdZmDng1FUfyVgePMdWzSyjwFknKAOimt2ALVCSlV+I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708200656; c=relaxed/simple; bh=wB+2n2OlbNVznmHH3958W1/Y0ptvHF46QhQK8nlpYXI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=T5ZJRWyq9Ada1Mqklibs5Nw2954KB2/JD1gvRANzbIbTN/pVstXi+4ATRHADIXrwpaz3qoxwOY6W+0dRKiTy4qPEz9ZERyAauxKRLWZgBd35OJFqR3tLpoWzDK7rSQ+V11ZRb8x6D/CJXM0+SJqAvzCYaHV/p5j0tykwm3lek7g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=gGO7GNDq; arc=none smtp.client-ip=95.215.58.179 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Date: Sat, 17 Feb 2024 15:10:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1708200652; h=from:from:reply-to:subject:subject: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=widJLyBLNbG/fhM0WxQtdV2j/zClvMMmMBAQpE7WaPU=; b=gGO7GNDqIxdgdChvsHxJoX0H1hXq26ayiT7Ei/TdMYyI3nUHK6ItsXbU/7douzGFOQsAHY NmYghcBXPJdv0W56oMV1zCamid/c14FAO0l9z8pEMsHeKGS9dhe1NJ4B/5CtylAyfpuBtj +dEsV2MtkcyjIzBgmL9YTRWvBlSbrX0= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Kent Overstreet To: Pasha Tatashin Cc: Suren Baghdasaryan , Andrew Morton , mhocko@suse.com, 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, 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, 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 Subject: Re: [PATCH v3 13/35] lib: add allocation tagging support for memory allocation profiling Message-ID: References: <20240212213922.783301-1-surenb@google.com> <20240212213922.783301-14-surenb@google.com> <20240215165438.cd4f849b291c9689a19ba505@linux-foundation.org> 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: X-Migadu-Flow: FLOW_OUT On Fri, Feb 16, 2024 at 12:18:09PM -0500, Pasha Tatashin wrote: > > > Personally, I hate trying to count long strings digits by eyeball... > > > > Maybe something like this work for everyone then?: > > > > 160432128 (153MiB) mm/slub.c:1826 module:slub func:alloc_slab_page > > That would be even harder to parse. > > This one liner should converts bytes to human readable size: > sort -rn /proc/allocinfo | numfmt --to=iec I like this, it doesn't print out that godawful kibibytes crap