[v4,16/36] mm: percpu: increase PERCPU_MODULE_RESERVE to accommodate allocation tags
Message ID | 20240221194052.927623-17-surenb@google.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-75395-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2685:b0:108:e6aa:91d0 with SMTP id mn5csp1267960dyc; Wed, 21 Feb 2024 12:04:38 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW+KCsRcg7rbtG1s6LcwlejhcunmMZXo2ZlxQhUIwAdj//KKHZI3wCRRSSqAOCBWVjG1Xth3Aum1840mRtt1NVlnFZZxA== X-Google-Smtp-Source: AGHT+IGv9t9iy3IUBC3zHhinZYwhwPUS+uTJXJ1YFLJWEmUm2aOoE9CLMgI3gz0MbjSwbujJSuRD X-Received: by 2002:a17:90b:3447:b0:298:c104:1eb8 with SMTP id lj7-20020a17090b344700b00298c1041eb8mr739847pjb.19.1708545878032; Wed, 21 Feb 2024 12:04:38 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708545878; cv=pass; d=google.com; s=arc-20160816; b=tymhW8zO8026P+FSNJFHzcf9MYJM8lfDqFDk1/tpRByr3dbeFwzT+wfdnloH5CRx+N djDOZpXDQGgOe2ch/lWRzw8qw01zCSqXtsbxWz8pLondp0R9RWBvIjzjD5PkpXG0EFiq BnQYTFApmzbyGtWQVLMUn1Hu6bpdNTNhPuRvKP7dn117J/GR/qxOdfKJq5hWWsjIfieD g1aFBSElqfUka4dqz0DfaN0x2WfT6TmtQ1h+c3C3mh8V8Fap/NoI3cVirfo7aKK+LxJ/ dWr/A7FoFT2EPPOgoqHBbUQlPPnaLaoIcjQLvPUU/7yKkpzuA0PcHgblG6dTzbylW6LO mzxw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:from:subject:message-id:references:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:in-reply-to:date :dkim-signature; bh=GoE6bGSaoBD7i3pA8lR/Run1pysn6CP5hI9CoxzKmn4=; fh=awmdR2F1aUIEFNXTh7U9NtsXJuY/tG+x1xpgm7uQDYs=; b=HOnb9fwAY18Pul3MpmF8wGQ87qov/TaOA3X64pDKPBDXcYj15FCEwIWTR+n5u0+4OV z1QXY4WDZ0hEHFMUxwDcGd/moOOSUf0VWFI2hJ4/xIroAMVoHMlcRvsyvQilAK6BsYwV MoMYTq7lBdBhI5jN0a5HtsvRzMaTC6UhDCfRs9c0bUrb8NBtGjc6KNfryjuppP1k4lKO BtwS9vwpIu+X7FM/QTDk6qHxOEiuHPV+SggKC3tUcYfaetVqQvTdw9S5dFeHg7MawrEg 9gnZdEvuDaECS/AJDri/C0Q6b5GitRtv6xLtUx2ARemK+aXC55B9AMp4dntU22GqqQnE qMUw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=g3tJ4svK; arc=pass (i=1 spf=pass spfdomain=flex--surenb.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-75395-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75395-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id ma12-20020a170903094c00b001d8e4de7a1dsi4192025plb.581.2024.02.21.12.04.37 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 12:04:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-75395-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=g3tJ4svK; arc=pass (i=1 spf=pass spfdomain=flex--surenb.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-75395-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75395-ouuuleilei=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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 328F0B2937C for <ouuuleilei@gmail.com>; Wed, 21 Feb 2024 19:48:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F38EA1487F1; Wed, 21 Feb 2024 19:41:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="g3tJ4svK" Received: from mail-yw1-f202.google.com (mail-yw1-f202.google.com [209.85.128.202]) (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 01427139582 for <linux-kernel@vger.kernel.org>; Wed, 21 Feb 2024 19:41:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.202 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708544493; cv=none; b=htZTm7z81ZKAe/0WMFavDZ/X7SnPDwxqPtFoGr6LZtboafihTo45TMF62gA8O4KdQoyo1aKb/92Eej+R22DWLyHpaEws3ZDMKZCy5+UqxLFpDEg22xkhkJBXp+xwK1WxKosKaqMHvFO/pBKo0yUkb/mLgOTYSkvfhcgQrB8USD8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708544493; c=relaxed/simple; bh=V79ceBwKz2YCfA8gxo6SKRHzpt3BUXzSbfgGLHuE1lE=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=dO/IvrqFqhCcdnHANP5uM/WTmnNoXKwvQm9IWG2WVPuoohPzmRaBtKkKLmtJzKkvKUaZCNs+Z+5JU3X4zAa80+fJ1FVxZIfOnpT9kX8okgUF+d/+vvsaHbKpBZpyAzVVcD0y169REOY3I5FT4z3hNalwz44Yb40b6CpDLz007TU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--surenb.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=g3tJ4svK; arc=none smtp.client-ip=209.85.128.202 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=flex--surenb.bounces.google.com Received: by mail-yw1-f202.google.com with SMTP id 00721157ae682-607838c0800so1359567b3.1 for <linux-kernel@vger.kernel.org>; Wed, 21 Feb 2024 11:41:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1708544491; x=1709149291; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=GoE6bGSaoBD7i3pA8lR/Run1pysn6CP5hI9CoxzKmn4=; b=g3tJ4svKRkruRydasV1YYH+fielfjBLg86kHjY7DU5Hf9oDEzsdO6hP93n3q3QWZ7L czpgd9Fj1eLnc5y7qgBaT4cmOWb6h6VN/ArUYRE3T7ziqGTdp573ZX1yujVOx7GaCLKz EeofaPOD3DxqcghC7r9lHrMK+DVa4MmoV6KnSwDpSMeG4w+wL+eeuzuRzkrtrtyv7sOo YiXIvf3RIOm25J1Y0sO+87l0aSe27ukv4uDMKP/EJuiRvnSPQLDTuGD9WTX/yuP2jukq Qjx8E55GUUGCX8fh/68K4InzY0q/3c1gMdVcjVQPFr64mX8PNUNi3WzTV/DDeMPV+q4m 70wA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708544491; x=1709149291; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=GoE6bGSaoBD7i3pA8lR/Run1pysn6CP5hI9CoxzKmn4=; b=ss2cKjmp8zif+l7fgJBnSOeKjdJUEv1+NtjahT7v9OtavX2Xq2fhVEF8hUvfz4qNqQ lmhvvBKRzjzw9hAfMPhFieFdfkJQ7V2qNiWy/ko5cMSoLE549naBZ4qEKj8shp4s9u0X tLTKkMZGO1LUKALI5qy5B8DFT3kSusHRe00G8J4rtjtGINFVsCbfAG7IrtLbQywezcuJ h+8EFfNW3I7YI/Tz+e2rYp7e5PWczPj6WyqqRgKVGMlXDV4Q2HxJRcvkDUZSeHk0i6/8 z4l0+ExAZT2hDph6MQQxFix6HfWIFY3AoCGEQcUCCyovdJzVT2wX6l2A+QmkAKfOTxgO V0Jg== X-Forwarded-Encrypted: i=1; AJvYcCVSUUtL9yBvG4IQkPYxJ+lEPl1NJdQD8bETLlBZq2pcsPyPIXlnVNIIq+qqeI3+/RDXYyss97fI8/bsegbAkgdRM99bfUG9SmSVlNoR X-Gm-Message-State: AOJu0Yy9mzi/m/DmjEDXT02+L9XXo/NcpclJp3ELXN+/HKVR3ax7ZkKT F0HC2Gd5Oo10CjpFGreVr4+L93w8Toi9q8tBL+W/xMRh6BiW1wzkdRBaw/ZdLvSfcsSUO0qeyUP 9+Q== X-Received: from surenb-desktop.mtv.corp.google.com ([2620:15c:211:201:953b:9a4e:1e10:3f07]) (user=surenb job=sendgmr) by 2002:a05:690c:fce:b0:608:7c19:c009 with SMTP id dg14-20020a05690c0fce00b006087c19c009mr105006ywb.0.1708544491160; Wed, 21 Feb 2024 11:41:31 -0800 (PST) Date: Wed, 21 Feb 2024 11:40:29 -0800 In-Reply-To: <20240221194052.927623-1-surenb@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> Mime-Version: 1.0 References: <20240221194052.927623-1-surenb@google.com> X-Mailer: git-send-email 2.44.0.rc0.258.g7320e95886-goog Message-ID: <20240221194052.927623-17-surenb@google.com> Subject: [PATCH v4 16/36] mm: percpu: increase PERCPU_MODULE_RESERVE to accommodate allocation tags From: Suren Baghdasaryan <surenb@google.com> To: akpm@linux-foundation.org Cc: kent.overstreet@linux.dev, 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, penguin-kernel@i-love.sakura.ne.jp, 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, 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, surenb@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" X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791540202678944651 X-GMAIL-MSGID: 1791540202678944651 |
Series |
Memory allocation profiling
|
|
Commit Message
Suren Baghdasaryan
Feb. 21, 2024, 7:40 p.m. UTC
As each allocation tag generates a per-cpu variable, more space is required to store them. Increase PERCPU_MODULE_RESERVE to provide enough area. A better long-term solution would be to allocate this memory dynamically. Signed-off-by: Suren Baghdasaryan <surenb@google.com> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Tejun Heo <tj@kernel.org> --- include/linux/percpu.h | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/include/linux/percpu.h b/include/linux/percpu.h index 8c677f185901..62b5eb45bd89 100644 --- a/include/linux/percpu.h +++ b/include/linux/percpu.h @@ -14,7 +14,11 @@ /* enough to cover all DEFINE_PER_CPUs in modules */ #ifdef CONFIG_MODULES +#ifdef CONFIG_MEM_ALLOC_PROFILING +#define PERCPU_MODULE_RESERVE (8 << 12) +#else #define PERCPU_MODULE_RESERVE (8 << 10) +#endif #else #define PERCPU_MODULE_RESERVE 0 #endif