Skip to content

PM: hibernate: make compression threads configurable and support dynamic crc arrays

Xueqin Luo linux-pm lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest0 of 2 patches 0 repliesNew

Changes in v2 from the cover letter

- 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.

Patches in v2 No applies recorded yet

None of the 2 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/2] PM: hibernate: make compression threads configurable and support dynamic crc arrays

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(-)
Signature · 1 line
2.43.0