Message ID | 20240321163705.3067592-17-surenb@google.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id AE7B1C54E58 for <linux-mm@archiver.kernel.org>; Thu, 21 Mar 2024 16:38:02 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E4C0F6B00AA; Thu, 21 Mar 2024 12:37:47 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id DFC4B6B00AB; Thu, 21 Mar 2024 12:37:47 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C4EA26B00AC; Thu, 21 Mar 2024 12:37:47 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id AB4436B00AA for <linux-mm@kvack.org>; Thu, 21 Mar 2024 12:37:47 -0400 (EDT) Received: from smtpin20.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 84652120499 for <linux-mm@kvack.org>; Thu, 21 Mar 2024 16:37:47 +0000 (UTC) X-FDA: 81921602574.20.437ADD4 Received: from mail-yw1-f202.google.com (mail-yw1-f202.google.com [209.85.128.202]) by imf02.hostedemail.com (Postfix) with ESMTP id BEE6A80025 for <linux-mm@kvack.org>; Thu, 21 Mar 2024 16:37:45 +0000 (UTC) Authentication-Results: imf02.hostedemail.com; dkim=pass header.d=google.com header.s=20230601 header.b=F79jPFKq; spf=pass (imf02.hostedemail.com: domain of 3WGL8ZQYKCEUz1yluinvvnsl.jvtspu14-ttr2hjr.vyn@flex--surenb.bounces.google.com designates 209.85.128.202 as permitted sender) smtp.mailfrom=3WGL8ZQYKCEUz1yluinvvnsl.jvtspu14-ttr2hjr.vyn@flex--surenb.bounces.google.com; dmarc=pass (policy=reject) header.from=google.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1711039065; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=adETXft81L3mg8VeiLZhJ9Sn5YTIW37aD8rIZRQJCFY=; b=uIWh1moq+USGeczzWWPwRNY0bMa/WrAGwdMapcDC5rbcEgF9AaqY1C35DdCTWSPVl/DUBC d6y08QGF/VMA0RqAlnoytVJYwQFA4I+Gw+r6ohNKZWaSVElwIg4UWGXeUovSDq5I8cVhN5 teMMwiPrDPHEJXrcPfXDZ+XaKWps9HE= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1711039065; a=rsa-sha256; cv=none; b=oNXHAld/M3cdg1WM1pJL5tZMSnJu5NMmctbhI0AJJ90wHuu0fjvQb9P3HdK3Nbi2pfIYYK R7BGzEpZjuLApCrT0b3tnHIVunJN52T87FA1agxl8SFvYK+9HvPSWUpeG9TG4hJL5X8+bD aAhN9SoaRJqt8Ga102k9w+950S/YHpI= ARC-Authentication-Results: i=1; imf02.hostedemail.com; dkim=pass header.d=google.com header.s=20230601 header.b=F79jPFKq; spf=pass (imf02.hostedemail.com: domain of 3WGL8ZQYKCEUz1yluinvvnsl.jvtspu14-ttr2hjr.vyn@flex--surenb.bounces.google.com designates 209.85.128.202 as permitted sender) smtp.mailfrom=3WGL8ZQYKCEUz1yluinvvnsl.jvtspu14-ttr2hjr.vyn@flex--surenb.bounces.google.com; dmarc=pass (policy=reject) header.from=google.com Received: by mail-yw1-f202.google.com with SMTP id 00721157ae682-607838c0800so24231297b3.1 for <linux-mm@kvack.org>; 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=kvack.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=F79jPFKqHHq+X32OoJE34fj2cytFTRo8yb7n1NinyHkSXdIS4hBbv55wpP/bAu7WYC eAo/BGuAJw+3eppwUcjr1Qd2mdU65NyNm9OPnOugEv+mnRvVrqOC3m94sPFr8WTKSq0O 9MCtHKAKdGgUq9wm5UKU4TLkI5qfhIgMmP8gLdTsDwlX495PAMnaQEDQQcz7JDDiWIoZ y2L8mli1h4Ryndz9QDd4W0yiqmogmOSgu12m45Un1ODM2YjyP76lYzMMCne1w1uH76U5 8q+QMD3Iz+MAYOb4Izq/daPafruM1nZTHpOMzI3qwJywIsys/iM9bgfOWyoNu8lpmjFX XrhQ== 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=Bem8P2b66F/pmH2jU/a6Y6hfec2Xa2o/mHTTRwzKW/2CZo0Z9D33eS6W7Flb5VBVeP dStBaxpVs2TgCnrTvxvjxOx7mu3Xa5GyNlBrYKeN4LmGLC11pV9ItmIJUFOoQOUf7PyR 364gYgVrwZ/Ntnn4GnDrUU0RX/m5GdCUbHtQVZCw4iwgzdGR8szMjl3lWrfci7k8kn6x RxDXzJ5m4giIiVgNPe98iQNlLspXVE6zJ4D1ARmov8L2hmXSSm/GbsDvAqHhoVl5ayfn Yzf7i8B6x4DJiLIoK6F9c8OUQBtKvRsxrLzR+NeTiPsrhT22sRtX4FQDLGwGw0aiGEC9 NB8Q== X-Forwarded-Encrypted: i=1; AJvYcCVow8R9/Wj7ptJaTDMCW0SLpM+9LltsADrdibgtC7dvEUz+PHG4qrwejfbeHJ7/s0LbWryENav+kB9ogHZCPO0BdTM= X-Gm-Message-State: AOJu0YxgZk7CoFOJsFlNGceKUHk47thM/ehrEVdnQFYXzVsALSo2BY1A mPZ5PW/8WJcsuKqVGuCbiFYuPzaGkq6jHFEKtwb/yzGSrYzYZLRUAP0GZCBsv7HZukqnFXU9alD agA== X-Google-Smtp-Source: AGHT+IEpbeHGmaH4ZP6HrzXLjRbRGOQFlxFrFvHpCJT+qt/SUASA+RVr+wlFFHpwWsqOIXtYDNaLSozJTUQ= 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> 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 <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, 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" X-Stat-Signature: i8rmagtzikb533qif8fszyqihjuu9pts X-Rspamd-Server: rspam10 X-Rspamd-Queue-Id: BEE6A80025 X-Rspam-User: X-HE-Tag: 1711039065-398121 X-HE-Meta: U2FsdGVkX1+3GjH9PMTDoXy0cBbpiwNnD0snn/7mBMGIRBX0I3/1HpuqM9DI615kTqWeoWT5017dTRCZRjscnF06aDiW37o/9nNXRPdMP6AIqwAak/r5u9qYdBAchM0iBT4DRyZU4pAP4XEXAgLRRgsGDyohACNIxuhcqhaq77mDZVpHreNgb3hn/rbFP9fP938X42LoejRXAevk8Ez9NYWTaRNZTsqwhJiIPgB7bpTyU83O+8kwyvnxfDZQCh62Sbnnq5utjVSnh4h5QP9VAbv3f+vO/mAB8tWkvX2wMo+hUR2ybs094TqmBurETkHIJdbi6IY8Sx51VTqCDBmlJsL9eehtVFMHic79cWShRB29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iVW43ra4bktdsvxTqPrpQ9cQfS0lmBp4oJL2KZeddB6WZHp8+Rq0bspr9PLGHxoAX+kaQdvE3OLGE7jUJAdN8YSovT39UeZzcyJkaOCO6dBgQVlN8pz3TvCNUresG5LrX4aUIsJwZz3XzYCUtNQ1HqS4zxCl8ey+6R038f86T0K4jQtyuKbuzw7RlAsHk6uPT1818AhkBH9EmHTQNMsJcOP5DLcx9N7fbF5kO3pGLPtyxsM9HJ58uwr5Z9A8e5dQeKQkPLPAfcToKpJcRFIB90Ui0RMSI6dk4YU4t6+MvuGTRVxnBvMoxZLbHYPPElz/s33yIR/Q6NG6oET7fjSRjLFwCi4jySUJhW40C3LeoM3yUFnANnX8+ZwlKlZzNbKlB9G5vHtlxrxQE0= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
Memory allocation profiling
|
expand
|
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