LZ4 Compression For Hibernation Images Queued For Linux 6.9: Faster Restore Times

Qualcomm engineers pursued this work for not associating the system hibernation images to the LZO API but allowing use of the generic kernel crypto APIs so that LZ4 can be optionally used. The hibernation compression format can be changed at boot time such as with the "hib_compression=lz4" option. Engineers found using LZ4 could yield a restore time of about 3.8 seconds with LZ4 compared to about 4.4 seconds with LZ0.
When trying to be aggressive about power savings and making it more seamless to enable system hibernation support, these straight-forward patches make sense. The work was recently queued in the Linux power management subsystem's "linux-next" branch ahead of the Linux 6.9 merge window opening in March. LZO is set to remain the default compression algorithm unless overriding with the new CONFIG_HIBERNATION_COMP_LZ4 build time option.
21 Comments
