Received: by 2002:ab2:788f:0:b0:1ee:8f2e:70ae with SMTP id b15csp78743lqi; Wed, 6 Mar 2024 10:30:19 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUVK6xvSRUAdrj4D1iJe9RkbUdhAITx2Ubd9h9lykRza4EHNbexNAe6Fw2mY2HAdur/IxtB4cFJStEtiGqdPuSf3QsiwHxaJ0KXFIXvEg== X-Google-Smtp-Source: AGHT+IE+XVFb6S1HnhjIpgEQxjVZWm9FwZydyHbtlx89HfAF6Blnd8ojQowWRaHVFxZ8H+aO1ZV5 X-Received: by 2002:a05:620a:5632:b0:788:218a:116a with SMTP id vv18-20020a05620a563200b00788218a116amr6198881qkn.74.1709749818928; Wed, 06 Mar 2024 10:30:18 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709749818; cv=pass; d=google.com; s=arc-20160816; b=pJB/jiz062OAcyF8tUpLwyMQIkKB96uuulwylBrFzYXegnzPMe2hjn1oCrSzN5mKmj DAFC7nDIWM0CB2T21RyxYiNdjm2e8Za3DaOdaT8GOTr2exvzjfMYuLidIo687p1RLeev Ek/xz4lvKNsTyAFB1RFS0uucACcMojJxZBgslPa1fFk191l3FnI2UdrdvP/CkzU+jtpK srU/xkfulDMk3ZX/TWAVEfngoClhlTCBpC6peBC9zcvnJWJTj0tu5UEYbCFeJAcFn5cs E+jr+CWLz5MLnhCCnPzMa8f03/fyvn3WTfPiCcNokgUZlNzw1dyi2MzU/TXtILI230ml JePw== 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=OEAYBW3Z4VXc6aDoxC6XGC2RO1GGkHEsC5P6UG5rRTs=; fh=QAh65VT1x03AD48HXH2WfSLk2a+7+0JgBuGmHvSGkhE=; b=jxhExWR5Vys0TGj5voDYiULhH7+w/7c5R9EpHgic4LeUgedeWZEjfa3aqKw/x8y6F1 Yxlo7jFXtJVAIEOjAW5WOnl1v2qFauYlXhJP5lb79zD7/NlGaQugKmA8oAeH9LaZbWTp egHI9r5nyzMURDbk/BCiJ/tt/Ai8JHwg9vXYhya07BO9ERrZubE+FgWaGIcfhxz6SMTB GIt5Uj1AwoOZ8oATJBdXA8bpMQjwbqQGkSRBJhSwYqmMVdOwZOoaR5Eg5Z4K/goDc1XY VLvr42w+uKWHdZlKhL4/oLWOSY98hbCu73x5aEJmP4WGDZ71cnWDBAcA+XehNFM1KuII YEoQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=TpEpjEJg; 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-94408-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-94408-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. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id a25-20020a05620a103900b00788318023c5si5362004qkk.432.2024.03.06.10.30.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Mar 2024 10:30:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-94408-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=TpEpjEJg; 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-94408-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-94408-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 9DCF21C21921 for ; Wed, 6 Mar 2024 18:30:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BFFCB1493A3; Wed, 6 Mar 2024 18:25:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="TpEpjEJg" 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 ED2D71482E8 for ; Wed, 6 Mar 2024 18:25:19 +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=1709749522; cv=none; b=cRRhdQUbJv4H/gpfc3NwUbuNzl9lP28n9vOAIk9ZlXpTUQ+bzYbRZwRrS0AMg+WNM2qxM+VaouJo4HbkHq+GAJL3oDSPZ3qgzQeHbpCuDhDfIB4ZpFOJEmXOydnVB7HTztPZhzgVSRlz7V1AB/ElpdEySPHYaFlsPsyqZgghYdQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709749522; c=relaxed/simple; bh=LlSWfVWs0H6gxkcBojSTETeqB1brvmDhPGR9FQrCvgY=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=MB69hHEbT/UPYqI6H/x1q9n3uqeY7taPlT+OIIASDEX0L957ZKPQysH9OeXy2H2f0UGAXTM9uxWBCu2VurCMe13ihGHUdyktYF1RoxKsHa1nGIPATonNJJf5/gHJx9pkibbuI8qipMMm/9r5D+8+Aj81edA2MvVkZ4qI5h756HU= 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=TpEpjEJg; 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-607e56f7200so90157b3.2 for ; Wed, 06 Mar 2024 10:25:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1709749519; x=1710354319; 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=OEAYBW3Z4VXc6aDoxC6XGC2RO1GGkHEsC5P6UG5rRTs=; b=TpEpjEJgD3Fjfes9JtJ3a2p8sFEtpaSIYenTSxP8VicTHiripTgX7PTwb3Z9TQ52fC oO/h84WCoqkYOASjuFEZKQJ7NXr9DNIOHzoyjONuv94K0Vz8Ce8EhUQnkd8Af6RfvzMy 13+FlN8FhPl2nU92uCTiSiRCfe53ppPOr1UM1gOEaFF5ndmjRjTxhfKie/eIVy0uxAT0 WkW79bPHfDOcWs3FvDvKJza3KeX9JU3O4xyZ2Y9+FWOI6x/rdIoRb+RVho5Z5Zyh9K7O jy30HbTSq5auoUK3WxNq17VZtPxPU+NZx2EJpMCnsnP62KCO3zlLun7nAHk/h0dnLXeL zXog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709749519; x=1710354319; 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=OEAYBW3Z4VXc6aDoxC6XGC2RO1GGkHEsC5P6UG5rRTs=; b=wl+XpbaZxki96BGnPfkfg2nBIEQDj2p0YaBrg0RRRNmUmqRVuDcranfONt+7yoosZ2 P/jp3HOiXvQJKrUMDPAJ8CmhWczrfaw0Yk5VhVu1mb52yAP7/jcw4n1WVFZreGilR1kQ V1WF+il1uoHcJ4zlazdGpfQ7n+ZeyAmZ9w7LKCGYGSqdo6Df5c09WhW5EMQsIQVq5+Ff Y+O60N6e1bmgjzPsI4sLclCciLLQa3UMt448kqV3x91W9ODRPWvH8FfgR5+tDQ9ycVBu HBFdlcXneLgVkEALGLNXYCoAxkBZ6NbbBMBOgtwNbRzcAzXIQPb55n+nxNr3nsIByuSK pSZQ== X-Forwarded-Encrypted: i=1; AJvYcCXf9uJoCt95EUIZa68zDSHy33PNkhIbJ69QBcMmqgNqb9kgw0FqyEjnzGyqjedvx0s5WQZll4N4mvjEa4+ExiQXlaiJ6tHce2BfX8a6 X-Gm-Message-State: AOJu0Yy2NTnckGs0KqMLdVHR+99ndFf7SpzDuG0kNKgex2bFxBsQtOsy 6Vg0Pc2XVzNqBQ+at4D4/91hw4QEfvXkffLAxRQIFUZo+cDPs7pMUHo5DpxVQIiLTa3KhNOiNq2 HlA== X-Received: from surenb-desktop.mtv.corp.google.com ([2620:15c:211:201:85f0:e3db:db05:85e2]) (user=surenb job=sendgmr) by 2002:a81:9950:0:b0:609:4d6f:7c0b with SMTP id q77-20020a819950000000b006094d6f7c0bmr3566046ywg.4.1709749519078; Wed, 06 Mar 2024 10:25:19 -0800 (PST) Date: Wed, 6 Mar 2024 10:24:14 -0800 In-Reply-To: <20240306182440.2003814-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: <20240306182440.2003814-1-surenb@google.com> X-Mailer: git-send-email 2.44.0.278.ge034bb2e1d-goog Message-ID: <20240306182440.2003814-17-surenb@google.com> Subject: [PATCH v5 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, shakeelb@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.278.ge034bb2e1d-goog