Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp594132lqp; Thu, 21 Mar 2024 09:43:59 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVcDRCSi/S/I/jmz+tf8Parrwjvp9bgflsa2gfJUzZx5X73fV2sr6ygwNsMmsGHjXyKB64o6LPNk2R9UX5+jESnn604MUr9xv4g5rlg6g== X-Google-Smtp-Source: AGHT+IEwSOzt53PBGIIaBnFYQIH3OlSACb2kfLevjHJYWEmJ33/pJZAM7m/UdGYVluADzlgB7O37 X-Received: by 2002:a17:903:40c2:b0:1dd:6ce3:7442 with SMTP id t2-20020a17090340c200b001dd6ce37442mr2731373pld.39.1711039439611; Thu, 21 Mar 2024 09:43:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711039439; cv=pass; d=google.com; s=arc-20160816; b=siBF4jkV+V/7iO3FgkpkCIfXZSrNZbbwyvaUjImKX+d0XnuXOV2VU4utAUVdYmfd+q mkl12sgQAdEsWxoD/PvAIXnaq3jl4YNPwXwy4FoQQ+rng0hysunsDvxoTDeB4tsDQXY4 LXuHC8FxtRF27EsoRp8gzJLGEkbFFA0HyWLFBdVVJA6oNjU7EX/AJQ/uOAwh3mv6giH8 LqTzUCA7ObgMeNsxczv3F3ExNvYn2afRVONS0GU/xxS5/JGQR/11ibJlgmx1sBRSAtl6 6Z1jVFgV+ooIc/YmDGBgBZpQ6b7QY5Oln2i5yLhPsP4niAbDFVe8ouzX7w1/GU8LLEcJ mE2Q== 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=adETXft81L3mg8VeiLZhJ9Sn5YTIW37aD8rIZRQJCFY=; fh=HHJxDn4eLpyAgkszCbw/TooDe8T6PHGcaC5EYgUeb/Y=; b=JuSnr9Ggb8JdoFi11oFurVsrEJJvjmHok+XydBcpMuX/IruKvc0TzdpdXo9cS6O/xn nkjdaCQw9KYDac0wY43RKbq13h63M2Wr3OMqFKSlz7FODRqqJ8B+k0qLjglVWeae/V+P oS3aFNioKrntX5ZygkGCogzWhiqD+kZQQ41cgq3mwOD+lqQNG3R/UZPTqlpr4/vRS/kt bNIZZ5LT3w8karFPhI5INPDRmm5Irk1u847+9iQ+S9CmKwzCXIdD892QwsAoFkf7icrR VttdebasnpWEdYuhNt2/MtkLw8tq4zS2JVCnMQPwS85uSMAKh0yUL8JmwID8abDHu50D 0aPg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=UZLKKUlE; 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-110371-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-110371-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id p13-20020a170902ebcd00b001e036aad367si52758plg.275.2024.03.21.09.43.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Mar 2024 09:43:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-110371-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=UZLKKUlE; 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-110371-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-110371-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 BAA3128226D for ; Thu, 21 Mar 2024 16:43:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 63BD713848B; Thu, 21 Mar 2024 16:37:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="UZLKKUlE" Received: from mail-yw1-f201.google.com (mail-yw1-f201.google.com [209.85.128.201]) (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 D4833137934 for ; Thu, 21 Mar 2024 16:37:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711039068; cv=none; b=KqJp/DR5ZIrnLEuYVv6PfrpF0elAuKM3sG8M4ZFESj4VrdYYlf5OWJQkHHslXEGlG/MMWe+PEGzMLED3vcdnIk16bgjT/VsP9Dj8rDiXHRIbTM7mjnbqIRv95y2fHGHo6v4Q2KsDvzghfzwXR3bV2ie5x1MonGvzdz6HmgkUgbo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711039068; c=relaxed/simple; bh=z2eJy0t2bdkmakMZRyMHx8Zh+sPp3sJo51GJl0bffFg=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=jkGbzA7Br9qvw3vJOfJSATsDFiQosZVRSbHMkv8KHy5fsKTEcPEjQPMZ0qq3cODFUgIks4X6p1jN+q8LtUPmshvj1tuaTzxbaYqaQbyAqLsyNFf2yCKAOYvP+HKp3n9J/rFPsDZsH045a7lhOXL6mv9DflGDB5/NBfHR2ChR43c= 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=UZLKKUlE; arc=none smtp.client-ip=209.85.128.201 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-f201.google.com with SMTP id 00721157ae682-60ab69a9e6fso28861547b3.0 for ; Thu, 21 Mar 2024 09:37:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1711039065; x=1711643865; 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=adETXft81L3mg8VeiLZhJ9Sn5YTIW37aD8rIZRQJCFY=; b=UZLKKUlElHdKoVJnA/LuY9jg0NkLB6vwXGStqPA0YRImOU2pNXToNXs195ZQ14UFnE 6onBZfh8TAgJmvp8XA/p2OGTeR/GUt/kR8bCSNWH92aBG2quY3p/Qi1ZSC8mtE6ZBO3l K1XRas9hGxHmr5SkJoIRnY6GEBSo4iulor1QSg5BgONy/LA8s3mCAKHtpsC5J03hx/I4 nwK3N0U94Fg0Qb4tcU98nek/fDUhyCE5I21YMkIf4aY59K9MsfCjo0xN+JfnPhpoOgVT 27QbJ+Ck8zsrqK4prKa0qFBd6qQdXFiUfIPyvdszYIbAtOHnH0V8/QuVgJUo4e5Pe0Gj Kh3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711039065; x=1711643865; 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=adETXft81L3mg8VeiLZhJ9Sn5YTIW37aD8rIZRQJCFY=; b=NH9IT/XDffC7UhlFNZn9+x5J14yGzM1E2DlPprrRx6WT7VOQB/loaFfeVVNrhIn/wx Pybu6EEaddnBEpoR0FVGOnmpaVuFhc936sfJUVxtrS8m5EyW+nNJST7JYzRVywp2W3Aw V+HZ5nwrCDAha1Q0hp9StqloqojQjWQi0oWjLy/LfqA0ubKD2eBbXD/NNNtdekt1TQX/ P738MPjMa6HKQZC4DFX+p/RIx3CEOGG3nncgN2kkx32IcBs/qeMPcaUOZ61O29EMq2/3 MHUzKlatiTqGL+3wKMhl35dUDWksIijxXh3lsHhsoZQQC4ug0SgB5Qbt+lM5EaGHwJl6 TRMw== X-Forwarded-Encrypted: i=1; AJvYcCXnfrwgbhzUSMC0tYz5/KjWP/vn+BL/UuV3w4gM9+vHnAmu4x8IGTNPQf+by9TLJGS9q+/BvcDynPmRyydHzgYPDVCGQZL6fg69uUHO X-Gm-Message-State: AOJu0YwllXHtjSvLzpMwBgco1IkVsERBAkJ6RQEo5yYs5t0y2eCKBBUR CLZv/ybWU9+LBMMmw1mHe6KkxYuUcQVGAdmHMJa2tAmkO89Aw8IhsyOYQmi64S71LrnKO3LBD2x mWQ== X-Received: from surenb-desktop.mtv.corp.google.com ([2620:15c:211:201:a489:6433:be5d:e639]) (user=surenb job=sendgmr) by 2002:a05:690c:b06:b0:60c:cf91:53e0 with SMTP id cj6-20020a05690c0b0600b0060ccf9153e0mr3628ywb.1.1711039064823; Thu, 21 Mar 2024 09:37:44 -0700 (PDT) Date: Thu, 21 Mar 2024 09:36:38 -0700 In-Reply-To: <20240321163705.3067592-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: <20240321163705.3067592-1-surenb@google.com> X-Mailer: git-send-email 2.44.0.291.gc1ea87d7ee-goog Message-ID: <20240321163705.3067592-17-surenb@google.com> Subject: [PATCH v6 16/37] 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, jhubbard@nvidia.com, 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, songmuchun@bytedance.com, jbaron@akamai.com, aliceryhl@google.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.291.gc1ea87d7ee-goog