mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Xueqin Luo <luoxueqin@kylinos.cn>
To: rafael@kernel.org, pavel@kernel.org, lenb@kernel.org,
	linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: Xueqin Luo <luoxueqin@kylinos.cn>
Subject: [PATCH v2 0/2] PM: hibernate: make compression threads configurable and support dynamic crc arrays
Date: Thu, 11 Sep 2025 16:09:49 +0800	[thread overview]
Message-ID: <cover.1757575365.git.luoxueqin@kylinos.cn> (raw)

Hi,

This is v2 of the series to make hibernate compression/decompression
threads configurable and improve scalability.

Changes since v1:
 - Added a new patch to dynamically allocate crc->unc_len/unc based on
   the number of threads selected at runtime. This removes the compile-
   time limit (CMP_THREADS) and enables support for arbitrary thread
   counts.
 - Enhanced the commit message of patch 1 to include more background
   information and performance numbers showing resume latency
   improvements when increasing compression threads.


In our measurements (averaged over 10 runs), increasing compression
threads from 3 to 5–6 improves resume latency by ~12% . Allowing
runtime configurability enables integrators to tune performance across
different hardware without recompiling the kernel. Dynamic allocation
further removes the compile-time limit and supports arbitrary thread
counts.	

Xueqin Luo (2):
  PM: hibernate: dynamically allocate crc->unc_len/unc for configurable
    threads
  PM: hibernate: make compression threads configurable

 kernel/power/swap.c | 66 ++++++++++++++++++++++++++++++++++++++++-----
 1 file changed, 59 insertions(+), 7 deletions(-)

-- 
2.43.0


                 reply	other threads:[~2025-09-11  8:10 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cover.1757575365.git.luoxueqin@kylinos.cn \
    --to=luoxueqin@kylinos.cn \
    --cc=lenb@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=pavel@kernel.org \
    --cc=rafael@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®