Message ID | 20230105053510.1819862-5-senozhatsky@chromium.org (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 A3122C3DA7D for <linux-mm@archiver.kernel.org>; Thu, 5 Jan 2023 05:35:46 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 1CEA68E0007; Thu, 5 Jan 2023 00:35:46 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 157EC8E0001; Thu, 5 Jan 2023 00:35:46 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id F132A8E0007; Thu, 5 Jan 2023 00:35:45 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id DEEFF8E0001 for <linux-mm@kvack.org>; Thu, 5 Jan 2023 00:35:45 -0500 (EST) Received: from smtpin11.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id B55621C6343 for <linux-mm@kvack.org>; Thu, 5 Jan 2023 05:35:45 +0000 (UTC) X-FDA: 80319633450.11.C100C41 Received: from mail-pg1-f170.google.com (mail-pg1-f170.google.com [209.85.215.170]) by imf11.hostedemail.com (Postfix) with ESMTP id 2CDC040002 for <linux-mm@kvack.org>; Thu, 5 Jan 2023 05:35:43 +0000 (UTC) Authentication-Results: imf11.hostedemail.com; dkim=pass header.d=chromium.org header.s=google header.b=fU3ZxfwS; spf=pass (imf11.hostedemail.com: domain of senozhatsky@chromium.org designates 209.85.215.170 as permitted sender) smtp.mailfrom=senozhatsky@chromium.org; dmarc=pass (policy=none) header.from=chromium.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1672896944; a=rsa-sha256; cv=none; b=4iSKmmxXv5qxipiwoWXI0vUYkA9dXGIQFA+SjpAfoKIW96FfE2aVHskrZ5pe2qvwIiFWWm 3sofDEMRwi9n9C8MDbGdMnnv7XrnLPKFkIWAgmP51uRg6lgsDGYTBDEP7uiDGTmGxlzfKr kpfTyqbtz8P8LDkHAdDRQ8NC/wHyOQA= ARC-Authentication-Results: i=1; imf11.hostedemail.com; dkim=pass header.d=chromium.org header.s=google header.b=fU3ZxfwS; spf=pass (imf11.hostedemail.com: domain of senozhatsky@chromium.org designates 209.85.215.170 as permitted sender) smtp.mailfrom=senozhatsky@chromium.org; dmarc=pass (policy=none) header.from=chromium.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1672896944; 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-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=u3RcO+ukEEU2tRMGKkuSA42+1jjoCDn3FvnF70ujYWI=; b=Ar4ZwDkb/94YywxnLhnB6mEHcWmr2SgAnFzwl6MF6iIZVJkvE8MeKRS2kEA6ZapFgtUlFt LCszoNioe1CtXaV2UciP8GtNSkegDjbrAZxo3/gEOM8+EUw6cXZjtpqVftI0d6HMWBE6oy M5KmVICHzoftbhcfutc2gTP4vWOYx20= Received: by mail-pg1-f170.google.com with SMTP id e10so9924981pgc.9 for <linux-mm@kvack.org>; Wed, 04 Jan 2023 21:35:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=u3RcO+ukEEU2tRMGKkuSA42+1jjoCDn3FvnF70ujYWI=; b=fU3ZxfwS35G2sd1ofLS0XH6rgua1/Y1Q81HU7Kz9UP7+pJN4hKAikLBBHWCqGEhwNJ 6sKba61QIGyVO9mZeRIBc6WKZ39X1PvO+i5DuWQQI9UZWlRkhNIcN9zzZhUCawyqxwCS Yasvmb2ntqX0rHqa/Jzqhid2eBOHoCUxCpZgY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=u3RcO+ukEEU2tRMGKkuSA42+1jjoCDn3FvnF70ujYWI=; b=jN9Tm9Mcv2e8PFx8JoopymDcx0ZmBCV0ScvXMIDMS8sSKtxq00yrk8v8N92M35EwSB diRrfFyW/7FoFdsK6LZ07cKhHihMI1ImbdcKGyBujUgh2rzqJ4G8S7R3MlsK3IRP2lQl s7aiHgMbCxFvWfV2bm8KA6s8CFN9SQCS4fD3uVbSqlgDq0Mn18DQp/9/N6S7wAEdFIB9 yaKFzqMGFU8re+cSLrsOUvbKpoFFiMCdIKbOXfNKIMcjMCguPzd2T4kPhGOXosD589zu qJPdmx5DNZ67rNDl38vc0tuFJ0NpKgO3FzeaIsHl5nxuzcqokGZV48DwXaSdN3Uht2+O wD1Q== X-Gm-Message-State: AFqh2kq93wC8K/HW7HZTqYMWzHluLss7iHsgK4iJn8UZ67nN4IQoTBY4 EoMpoPNsbjiICOq87VWrV1HgdA== X-Google-Smtp-Source: AMrXdXsLJCXHNR4z3LOOHq/EWKiZHaAIInb3wQ5+cuJXqsQVsZ3H0KlsmcXXMWSqiEVtXBS5uFTQMA== X-Received: by 2002:a05:6a00:450a:b0:56e:664f:a5f5 with SMTP id cw10-20020a056a00450a00b0056e664fa5f5mr61013213pfb.8.1672896943236; Wed, 04 Jan 2023 21:35:43 -0800 (PST) Received: from tigerii.tok.corp.google.com ([2401:fa00:8f:203:da84:4bce:bb29:7dea]) by smtp.gmail.com with ESMTPSA id v27-20020aa799db000000b00577c5915138sm2036855pfi.128.2023.01.04.21.35.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Jan 2023 21:35:42 -0800 (PST) From: Sergey Senozhatsky <senozhatsky@chromium.org> To: Minchan Kim <minchan@kernel.org>, Andrew Morton <akpm@linux-foundation.org> Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, Sergey Senozhatsky <senozhatsky@chromium.org> Subject: [PATCH 4/4] zsmalloc: set default zspage chain size to 8 Date: Thu, 5 Jan 2023 14:35:10 +0900 Message-Id: <20230105053510.1819862-5-senozhatsky@chromium.org> X-Mailer: git-send-email 2.39.0.314.g84b9a713c41-goog In-Reply-To: <20230105053510.1819862-1-senozhatsky@chromium.org> References: <20230105053510.1819862-1-senozhatsky@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspam-User: X-Rspamd-Server: rspam03 X-Rspamd-Queue-Id: 2CDC040002 X-Stat-Signature: sr5wfwnhcnz3s5r7fienjoz6kdgq83hi X-HE-Tag: 1672896943-131259 X-HE-Meta: U2FsdGVkX18YQPZYjHYCUMxJjdg91NanuNN8/GdJpInyyEuv/rpONKTxgsvId3346P67NhAxLNaLDvbE6pM1T6YUsiRfH9VobTGJbuR3Oh/wbKuTJwVhnVPjeiokWawK5BlJsowyQ4AO5B7mxNq2jw8MNTxzKLhXurucnpy8xa6WsGPg1d1Uh8oLU2wJWPxqARPxQbQU6VTw1T3cKe8WSVGbww2XsY5FAX/CgxhFH3CDqjOITrIsGC2HyYSPDFiqEtQFX5rZm3EFpNaM/+UmYY2e62ssULLsrpnz5YIMDNY/MwTRble4PaLaAq+8HZoVQUj4FrH5ZCUTwye6XVSHNefJZ5aPTyO2aYzJ762tmFjc7lip3mQ7pzMFue1eSL219JKdKEqJ167J4aM+Sz31rVpuedhpXUCtPZvHtt/alazybJ0qPfihX81zLk/NV+KUtFWULOlz1xJDo1SMcO3KrWNHKFXMZsW27rvs1uXX2GTKySPoLbMw9sDpWJXE6wcNm//hJwnxNmzSveSpDIEw9WmrJrIxw1f5KUhJmXHpgvXXOo7C9CztS25omHWY4vTj/XHFkgmORiSTxArWjipXaQNFBKikytxfFfsaw5BNGRv+jP+EUtaG9B0TqUC1CfuQ7WkKGaOsinxeMX29yDFrLxW+0VGANOKsk1qe/QeeRfHsgI9NVvnCkNSpVkgGtLqG6L8lV05wtc16nbK5E+FGTYTSggxFerqDh0p44XJiG+k03z5QXAeW3Qw2TaZY98A/KolObNJL7B7MNHaRCsN4VUdxxPJ5DD10Ez8LY5Ko5hvYL73WYj2Gud++epNDjXvLhBiRyB7WuH6ENudglp9bVThQ32ZGRsl5B4wVq7K+/fWpAi5zdyqID8aZZGcJSLBPmbo4+rjiK6L4WqXn6y1OAo3jELwNitK7uHGuh8UlHsUYg+hVFfE7MIsKG7BV8EE6vwwamqif18gynCzSxbC zd0+csEq uY51ebOSyS2Nzo0R2qoKNLcGSqAuIViGvvXN0Y6gGJr6Ns5cNDQvDFBM5RBeTcPa2dYmPozw6T3Y3MtYHoBY7Jk5zJx4vKnGXvnRhTGMRTUeAmCetWSmTWaPkL7HTn3cWfh8X 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> |
Series |
zsmalloc: make zspage chain size configurable
|
expand
|
diff --git a/mm/Kconfig b/mm/Kconfig index 995a7c4083c2..9ab5c1996a04 100644 --- a/mm/Kconfig +++ b/mm/Kconfig @@ -193,7 +193,7 @@ config ZSMALLOC_STAT config ZSMALLOC_CHAIN_SIZE int "Maximum number of physical pages per-zspage" - default 4 + default 8 range 1 16 depends on ZSMALLOC help
This changes key characteristics (pages per-zspage and objects per-zspage) of a number of size classes which in results in different pool configuration. With zspage chain size of 8 we have more size clases clusters (123) and higher huge size class watermark (3632 bytes). Please read zsmalloc documentation for more details. Signed-off-by: Sergey Senozhatsky <senozhatsky@chromium.org> --- mm/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)