[PATCH v5 0/3] PM: hibernate: make compression threads configurable and support dynamic crc arrays

Xueqin Luo posted 3 patches 1 month, 3 weeks ago
Documentation/ABI/testing/sysfs-power         |  16 +++
.../admin-guide/kernel-parameters.txt         |  10 ++
kernel/power/swap.c                           | 121 +++++++++++++++---
3 files changed, 129 insertions(+), 18 deletions(-)
[PATCH v5 0/3] PM: hibernate: make compression threads configurable and support dynamic crc arrays
Posted by Xueqin Luo 1 month, 3 weeks ago
Hi,

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

Following feedback from previous versions:

- Patch 2 (`PM: hibernate: make compression threads configurable`) has been updated
  to rename the GRUB/kernel command line parameter from `cmp_threads` to
  `hibernate_compression_threads`, making its purpose clearer and more
  self-explanatory.

- Patch 3 (`PM: hibernate: add sysfs interface for hibernate_compression_threads`)
  has been added to provide a runtime interface under
  `/sys/power/hibernate_compression_threads`. This allows users and
  system integrators to tune the number of compression/decompression
  threads dynamically without rebooting the system.

- Corresponding documentation updates have been added:
  - `Documentation/admin-guide/kernel-parameters.txt` now documents
    `hibernate_compression_threads=` GRUB parameter.
  - `Documentation/ABI/testing/sysfs-power` describes the new sysfs interface.

This series ensures that both boot-time and runtime configuration of
hibernate compression threads are supported, improving flexibility
and scalability on multi-core systems.

Xueqin Luo (3):
  PM: hibernate: dynamically allocate crc->unc_len/unc for configurable
    threads
  PM: hibernate: make compression threads configurable
  PM: hibernate: add sysfs interface for hibernate_compression_threads

 Documentation/ABI/testing/sysfs-power         |  16 +++
 .../admin-guide/kernel-parameters.txt         |  10 ++
 kernel/power/swap.c                           | 121 +++++++++++++++---
 3 files changed, 129 insertions(+), 18 deletions(-)

-- 
2.43.0
Re: [PATCH v5 0/3] PM: hibernate: make compression threads configurable and support dynamic crc arrays
Posted by Rafael J. Wysocki 1 month, 2 weeks ago
On Tue, Oct 21, 2025 at 1:37 PM Xueqin Luo <luoxueqin@kylinos.cn> wrote:
>
> Hi,
>
> This is v5 of the series to make hibernate compression/decompression
> threads configurable and improve scalability.
>
> Following feedback from previous versions:
>
> - Patch 2 (`PM: hibernate: make compression threads configurable`) has been updated
>   to rename the GRUB/kernel command line parameter from `cmp_threads` to
>   `hibernate_compression_threads`, making its purpose clearer and more
>   self-explanatory.
>
> - Patch 3 (`PM: hibernate: add sysfs interface for hibernate_compression_threads`)
>   has been added to provide a runtime interface under
>   `/sys/power/hibernate_compression_threads`. This allows users and
>   system integrators to tune the number of compression/decompression
>   threads dynamically without rebooting the system.
>
> - Corresponding documentation updates have been added:
>   - `Documentation/admin-guide/kernel-parameters.txt` now documents
>     `hibernate_compression_threads=` GRUB parameter.
>   - `Documentation/ABI/testing/sysfs-power` describes the new sysfs interface.
>
> This series ensures that both boot-time and runtime configuration of
> hibernate compression threads are supported, improving flexibility
> and scalability on multi-core systems.
>
> Xueqin Luo (3):
>   PM: hibernate: dynamically allocate crc->unc_len/unc for configurable
>     threads
>   PM: hibernate: make compression threads configurable
>   PM: hibernate: add sysfs interface for hibernate_compression_threads

All applied as 6.19 material, thanks!