Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp2570954rdb; Wed, 21 Feb 2024 11:47:59 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWN3D3NeBVeTSzxG3lA3fubAUObte4mmDB8/M7KdhVhE+YrTEGu8BoNrFEyJOuMQyYzaDUjJI6DpuGk2RT0h1NVnYHwuS9gzTnHV2gEOw== X-Google-Smtp-Source: AGHT+IFS8eFcemn9T2tWrjN7EpzCpZGnHfa2z2U2vj5OpvXGqWM0eY93/IrC47TxztaDO3zXydZO X-Received: by 2002:a05:620a:bcb:b0:787:21ed:6990 with SMTP id s11-20020a05620a0bcb00b0078721ed6990mr673989qki.39.1708544879055; Wed, 21 Feb 2024 11:47:59 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708544879; cv=pass; d=google.com; s=arc-20160816; b=IfP5uO192zc5a0FRa9RsUIIpmqZKUkVhNazvrc8qiv6KFPHzPfYd95oi3ZCe9gRWO1 4zZlKqwyvODpYe/z+Ke/TnzrXJsoHUc1duQ6fnre8vjnXzW5ZqPnkp2cqKgzAC8d4Szg jpNqaEGCI/kJxMZjqt7lZ8oA8byWSK+GHGRgnTC6Z3YRsG7seQBjb+P4v4Cns8p+9LhF 0ltSgFTNPO+TG2zTKiuCoPP1EOCfxsOfsKJLmyMie0K56TkfGFigKUN6Qmkyizk4JYZ3 +mxHoxd+t1lObIImBjrVhHVGUI8gtHwanAaZUZpuP7mMDZ+1YPZuipUWT48HN86FPPr0 LgKw== 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-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75395-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 x4-20020ae9e644000000b007873f49a18bsi11125422qkl.77.2024.02.21.11.47.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 11:47:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-75395-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=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-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75395-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 B7AB11C24123 for ; Wed, 21 Feb 2024 19:47:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D997A1474B6; Wed, 21 Feb 2024 19:41:34 +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 ; 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 ; 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: List-Subscribe: List-Unsubscribe: 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 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" 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 Signed-off-by: Kent Overstreet Cc: Peter Zijlstra Cc: Tejun Heo --- 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 -- 2.44.0.rc0.258.g7320e95886-goog