From patchwork Wed Jan 18 00:52:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergey Senozhatsky X-Patchwork-Id: 13105311 Return-Path: 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 2C82BC38142 for ; Wed, 18 Jan 2023 00:52:36 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id AB4F06B0078; Tue, 17 Jan 2023 19:52:35 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id A65106B007B; Tue, 17 Jan 2023 19:52:35 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 92CAC6B007D; Tue, 17 Jan 2023 19:52:35 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 839236B0078 for ; Tue, 17 Jan 2023 19:52:35 -0500 (EST) Received: from smtpin16.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 6494480BD2 for ; Wed, 18 Jan 2023 00:52:35 +0000 (UTC) X-FDA: 80366094270.16.E780C0F Received: from mail-pj1-f43.google.com (mail-pj1-f43.google.com [209.85.216.43]) by imf21.hostedemail.com (Postfix) with ESMTP id C00171C0006 for ; Wed, 18 Jan 2023 00:52:33 +0000 (UTC) Authentication-Results: imf21.hostedemail.com; dkim=pass header.d=chromium.org header.s=google header.b=Fz8NyEIR; spf=pass (imf21.hostedemail.com: domain of senozhatsky@chromium.org designates 209.85.216.43 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=1674003153; 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=EsTMdrrDLcqpHJRbM6PDDky4/t4qR5IEdsq7S2Y6nHw=; b=HmjE2GwnwsP8rhdV7bF4ASnr6ToUtJdyrKhCL5rCFzpglf+J2UqvIT1Nh6+RKjA3mMwvty tXPOACa3b+a/0DlYFYTlAPyfulY36Hd8i05D8XYZGxW52iFEk5nbX/al0T/r5uTIERdQxk 7GbVnLQci+TaOsdyHMWY/oS4xubbdco= ARC-Authentication-Results: i=1; imf21.hostedemail.com; dkim=pass header.d=chromium.org header.s=google header.b=Fz8NyEIR; spf=pass (imf21.hostedemail.com: domain of senozhatsky@chromium.org designates 209.85.216.43 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=1674003153; a=rsa-sha256; cv=none; b=NSve54plrdQT/nMgWSjBragTDnUfkJp6yMkAI9wrwfxfGLDLdMcUJ4wFrq1wiWQL+0GyAw LSM/LLzC+xGvyJIjnza/htWRLMMmznXw/2bn5jAM1qLF1AGVg5IvFs9UUkJKLlIUqMwWHV iLokePRGoPhsKnrSZwM+UF6LGqcO39Q= Received: by mail-pj1-f43.google.com with SMTP id d8so3010703pjc.3 for ; Tue, 17 Jan 2023 16:52:33 -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=EsTMdrrDLcqpHJRbM6PDDky4/t4qR5IEdsq7S2Y6nHw=; b=Fz8NyEIRMQqp+I4ZCxQepR1p8/ydkvg2hf1HWGJ8u/aCQ9zbwbo77E3dYl7YNtJc4i BUn0gxOOa7Ai0hZJHABejQtg+WfubPi/k0+hJgmX2tztw22xre3y8cf3ZlgKFEFs+OLF +bW3L/RBjQHekHwrqA7plGbudq0By7lrRWw8o= 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=EsTMdrrDLcqpHJRbM6PDDky4/t4qR5IEdsq7S2Y6nHw=; b=D8gKpGbwqNY8BU2GgJi14YSgDkFP5i5SafRl7br0lFMnwT68uMc+0xZ+wnZ+CBAqID 1I6LAT/KDX4SKAVnvII98hbBY0CCxuqQXOQI7RMX0f8MMCcRFAl3Dlh9B7DHpwquCVtL g0k14KlWCVHfCOZ2qdjxlU1Gj7useL1VKZWjhh/jBOdHKtUrCOnns7fFl4bSsPw25QO7 /2Iv3XN9mgAoXxKUG2BaRJ1ITl3GqMGPJqF0wCCvDQYHNWhiCVoXMe3drOxLIynJ52c1 /DiigVpR29/UCLycO58oV4xqxxm/6FxR5gyDkmIIROvYdGTyJheVJbSh62fVE+ckD1I5 rgmQ== X-Gm-Message-State: AFqh2kpu/X2Xtkq53NVeFI/1WciKzKaU/URfd3ZLrJnR9II4uzLaz9s8 Z17QTSTQ/JVTCFXc1nBbC+HQog== X-Google-Smtp-Source: AMrXdXsdNKdUiGRGfP8RIbqx3A82w0/9Ni8LqjvhCZZQjbuQ2HELZUicdwQGq1iTQV8GzoNc5bTcWQ== X-Received: by 2002:a17:902:8208:b0:193:f76:aed4 with SMTP id x8-20020a170902820800b001930f76aed4mr5345353pln.1.1674003152775; Tue, 17 Jan 2023 16:52:32 -0800 (PST) Received: from tigerii.tok.corp.google.com ([2401:fa00:8f:203:10f3:73a5:7e44:adbf]) by smtp.gmail.com with ESMTPSA id u10-20020a17090341ca00b00192f4fbdeb5sm8351461ple.102.2023.01.17.16.52.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Jan 2023 16:52:31 -0800 (PST) From: Sergey Senozhatsky To: Andrew Morton , Minchan Kim Cc: Mike Kravetz , linux-kernel@vger.kernel.org, linux-mm@kvack.org, Sergey Senozhatsky Subject: [PATCHv3 4/4] zsmalloc: set default zspage chain size to 8 Date: Wed, 18 Jan 2023 09:52:10 +0900 Message-Id: <20230118005210.2814763-5-senozhatsky@chromium.org> X-Mailer: git-send-email 2.39.0.314.g84b9a713c41-goog In-Reply-To: <20230118005210.2814763-1-senozhatsky@chromium.org> References: <20230118005210.2814763-1-senozhatsky@chromium.org> MIME-Version: 1.0 X-Rspamd-Server: rspam05 X-Rspamd-Queue-Id: C00171C0006 X-Stat-Signature: gfhk4165fg7gieupwt3zyuhcdq1qi89e X-Rspam-User: X-HE-Tag: 1674003153-277120 X-HE-Meta: U2FsdGVkX1+mu6TQMMtLdWxQFSIAq3u8bu7PX/TNTwCyevtQkq1hRsG10owUDbawvz1L/xHumCtXYm28UbF4raJsgYmW/vgEVwPlroSIjAiIG2bHb3GwKAtuWOpj5jf+8gSc+RyDSjTzmDzfSXKSQ+lRTwL6O35tZJZAfG0q/Frfjom33r2DOWQK0KKywjtaT/kDoACIY3ulDQpQnk5JqSRU/v81iIYMWd1CkqqQ6ej9l1Sylu+didUIiZzf1tFgnL4+UlNE0Nqz58U5j3TYPLK2ks+2xBdA5o+i3GmwUW2ugQXYO6b+VGGPiTRm1pLeyzxQvVLCHBsgmOQA0wsSi5OjRDI8gE71gVgDSEgqSt6jo/K3Y/3z5oYCduEpoQPNBB2OuD6YqGF4E4raxQ7u0xSkpp/GKe+eV1FhDgpHktInylWY9ePeqVYOLYmJKjQQFSRN2OCtojw0Ae/kudGVFiRUTWZpgRygfyW1qiG+K+0ROnG5CgDv9OkMjsw6PfqXRvXvv2N0tBfaI9GqahbpPaNt7DkC9lB6yvzCfEby6c7hd9FymJ70Zs243u28kabyLl3zRy5Sd46ByRiqhELjaPvUChkCwa1foHobnPm8evXaEMTEI2Q1F6ve4wE7x24n814dDg/Km39+JqQIt2WraSU96usApai5qO6q6+P3dBMEqf12LIP6TTATB1M4bcFbYYqd8lRkGC0FDehLQaOufs9Eqkc6Bf0OHWT8XqIRdHzOLerFJqrmrH8M/IqvKNNWz5/upFw1ml0QixfnSHDrNT9RSq+9NrH/g8rpLPjiXlL1RoKI5z0FPmuCGXL4KTcN0KKKcLIyidoKkOJG6olPMOInOUY1J8OGWuZ6mc+nz4vFYtLwaPdpBKAo7G+OrwrFDje8HpiZyDCnYIMe5rR0RWJH7nCBRqAN1sDHb1VGZjbiNozo6c0g1tg/N14tHyXFPax2SI5p+RFbaVpDVi9 8Vy3Kdq1 lAjLw7Htgg6C6q9+KVlSHFXKxI74jrT3Micb1qM1tGOoWwqp/pxf7EIW/Rd8dVf7Foz63OaSWyauokPCagta3k9RhFJH9Ee+xlrskOj4y00pV/DSOPbyi6uUJ+S7nLkjPRDTu 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: 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 Acked-by: Minchan Kim --- mm/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/Kconfig b/mm/Kconfig index 1cfc0ec4e35e..ebfe5796adf8 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 4 16 depends on ZSMALLOC help