From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f169.google.com (mail-pf1-f169.google.com [209.85.210.169]) (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 AC3AB3B3BEF for ; Tue, 23 Jun 2026 07:12:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.169 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782198771; cv=none; b=UejmoCj5gMFJpTnJMQbElkqysAK64I8i9cf4/vyn7Xf/2ftQgDpUVjjrQ1X4C0OMtMSgQXrf7Wk6MwgxWS+lC65hxjXPJV3A69n5QJDhHug4l1Ys4y8JKWgqCDfg2lT8yElSTbJ/UJFXwdBK3yf+FEAg1VqxkEA5qXgJgf8oiMo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782198771; c=relaxed/simple; bh=kR5ZPYKC2E79iicovREWOp2q7jMORqtJa+AUs+3teEE=; h=From:To:Cc:Subject:In-Reply-To:Date:Message-ID:References: MIME-version:Content-type; b=jpXzDeLQy+fnvlH6duiHs2TrbYsik3lfKMigS6F1suVqx16vA+oKUbX/7S0Tx+m5SWmF2E/fURmzfxScvb4UpXoR/5wF2bG6VaicPJptN2ezRts02aVB+nbr8rB4EY6FO9eEGqriXRR8t+xuqi94lfbqXIC4cEJVjEduEruai2Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=kIrhWrPG; arc=none smtp.client-ip=209.85.210.169 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="kIrhWrPG" Received: by mail-pf1-f169.google.com with SMTP id d2e1a72fcca58-8453f568e84so5001071b3a.0 for ; Tue, 23 Jun 2026 00:12:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1782198770; x=1782803570; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:message-id:date :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=kR5ZPYKC2E79iicovREWOp2q7jMORqtJa+AUs+3teEE=; b=kIrhWrPGiXwyLRx1WkRZCS8QCOru3kRwLmbigPbgew5SKptBqRLC6TknH1tQrh682e Cp/axMdInjZPN6EK0xGiyRjGeWWCZ0kdbY1O8hZGyVOiQZ16/Om3mBmJeTroIfeHcmz7 QtrWzkCCMh14lRXnvn9Xus7DqVG1MLSDadQPmZbQ5BMkByfKNvw7iGy/65ptJA7LA9ne V/6AAZ9ks9/MlH1y6F+f7BywvSk2n4As/7Bpq3XnH6KDrkqXz4431pjwnAPgG2TP3hvS a5HsK9MufnjX/tXMcd7VJZEhAxiqF6teyBcFLkZu8sY/kJ31yrn1cZ+X5Rz+KURtO5WI T8eQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1782198770; x=1782803570; h=content-transfer-encoding:mime-version:references:message-id:date :in-reply-to:subject:cc:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=kR5ZPYKC2E79iicovREWOp2q7jMORqtJa+AUs+3teEE=; b=CByFwdOxP/jocRyN1paw7TNwwIcT8EzJat1jzVJRNd9/j8/kcObHnFIyA32tdaOLjP 1ZH84ygTDIPw78YKTm+05Y8P2fEV+FiqdhlbZ2m8YqOBDqxkdGE7Gt9md7OXcbySpTrC uEA3FaRt8FdZFPH/qCABwrtbbm1Ffb6tE6ThRhiyc303h2QtxWqNQvAxu8quHjjtG4yU UkLw2FSn6lx6Tt7jun5w19A2gn0fZrWxSJa91P+jPTamNeDtu8B3q4WG/dPnqe2O6/KG TRRLTiAXnmo+6bNBgMxklkvG9Frb8eOi9ZgIAKd7aQBjoqInIeAp9C+VMtt7pbNA37sx Hgvw== X-Forwarded-Encrypted: i=1; AHgh+Ro41vt5fiUE7TPM1fB4c3aC4UDeYp/EJzpIc813Dm353U1RJSOue90+EST87lNSWJMTOLMyR+1L97rfUV4=@vger.kernel.org X-Gm-Message-State: AOJu0YyIJ2lFT369En+GB7OpinEjzbZmv+rf4TW8+KgGTmYqmMXcpXBW b4w//KhWEqyB9eZ1tdOMdDSQrRUI2Hql+MRw8oZoxe3hBC7QXi+Fg0Ny X-Gm-Gg: AfdE7clxDwAhNYlM02iQ9RhCXEEA/pI2l+zSEQa8cl7OFFi4tdsTuQ2ZNQ4I3ozQcec oAiXtbYEFl7ywPnMREYZ9RdHsBVcj59PROlw8vO8/u1jB51GzXwWjIYL7N86X9JVN5XlhBzBCoI AY6FezPw7c+NDZJ5yE8lD2kLTPuX0BeuYYvlp/Q9c+UzwBqa4KkE/s6lcPDHZkHREtizVFvRJgy NFG0s8r9eWVSPtq0iOyH2vXPvb1carJ/wUl4r+YTFKH7hpm0pAS3kt8P3PIrM4J+IVVbgwY99Bo raAI5Ng4ihpBTU4D/wF5ELHbELJNumLKBneioYoKz+41+Y2HtPy3xi38uJoyJnoCqzSuvEmqSHi uk5s3EfohK7I1xswBUrOnjbSMxHi4Mciqb3r+smTThw/qySEFL7f6Ey3xBAucOkR4Uo6ElxWqpK 6G2q+xT51pbKVHIpM= X-Received: by 2002:a05:6a00:1885:b0:842:4982:81c with SMTP id d2e1a72fcca58-8459524e222mr2191138b3a.20.1782198769867; Tue, 23 Jun 2026 00:12:49 -0700 (PDT) Received: from pve-server ([49.205.216.49]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-84564d6c25fsm10883733b3a.4.2026.06.23.00.12.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jun 2026 00:12:49 -0700 (PDT) From: Ritesh Harjani (IBM) To: Barry Song Cc: linux-mm@kvack.org, Madhavan Srinivasan , Michael Ellerman , Nicholas Piggin , Christophe Leroy , Andrew Morton , Chris Li , Kairui Song , Kemeng Shi , Nhat Pham , Baoquan He , Youngjun Park , David Hildenbrand , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, Sayali Patil Subject: Re: [PATCH v4 3/3] powerpc: Kconfig: Enable THP_SWAP on Book3S64 In-Reply-To: Date: Tue, 23 Jun 2026 12:36:22 +0530 Message-ID: <1pdxybv5.ritesh.list@gmail.com> References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Barry Song writes: > On Fri, Jun 19, 2026 at 12:41 PM Ritesh Harjani (IBM) > wrote: >> >> THP_SWAP avoids splitting of a transparent huge folio into 32 smaller >> 64K folios (Radix-64K pagesize / 2M PMD) or into 256 smaller 64K folios >> (Hash-64K pagesize / 16M PMD), during swapout. This improves the >> swapping performance since all the bookking & I/O submission happens >> once per large folio. More details at [1]. >> >> PowerPC Book3S64 could not enable this before because PMD_ORDER is >> selected at runtime depending upon the chosen MMU. The earlier patches >> in this series turn SWAPFILE_CLUSTER into a runtime value and introduce >> an ARCH_MAX_PMD_ORDER upperbound override for SWAP_NR_ORDERS. With those >> changes, we can now enable THP SWAP for Book3S64. >> >> This increases bandwidth throughput with zram backend for swapout by >> 40-50% with Radix and 100-130% with Hash (Tested by Sayali) > > Thanks! > > I am curious about the contents of the anonymous memory being tested > and the compression algorithm used by zram. > I am sure it was derived from your microbenchmark itself which you had shared here (so repetitive pattern) with default zram compression algorithm. Thanks for that :) https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d0637c505f I think I got your point - I can mention that it was a microbenchmark similar to yours and not a real world workload test. Is this what you meant here? -ritesh >> >> [1]: https://lore.kernel.org/all/20170515112522.32457-2-ying.huang@intel.com/ > > Best Regards > Barry