Evaluating compression algorithms for Linux hibernate/resume performance
2025 (English) Independent thesis Basic level (professional degree), 10 credits / 15 HE credits
Student thesis
Abstract [en]
This thesis evaluates how various compression algorithms affect Linux suspend-to-disk (hibernate) and resume performance, aiming to reduce boot times for vehicle ECUs.
The project evaluates the algorithms LZ4, LZO, and ZSTD, as well as disabling hibernation image compression, using benchmark tests and actual implementations using QEMU virtualization and a stationary computer setup. Each algorithm was assessed for compression and decompression speed, compression ratio, and overall hibernate/resume performance. A custom Linux kernel was modified to support ZSTD, as it is not available by default. Results indicate that while ZSTD offers the best compression ratio by about 25%, it performs worse than LZ4 and LZO during both hibernation and resume when it comes to speed, hibernating at half the speed and resuming 25% slower than LZ4. Although LZ4 was the best among compression methods, omitting compression entirely yielded the fastest suspend/resume cycle. Additional tests evaluated the impact of page utilization, e.g. how much each chunk of allocated memory is used, on image size and hibernate/resume performance, where a higher percentage of utilization led to a larger compressed image size and slightly lower compression performance.
Place, publisher, year, edition, pages 2025. , p. 45
Keywords [en]
Linux, hibernate, resume, compression algorithms, LZ4, LZO, ZSTD, kernel development, power management
National Category
Computer and Information Sciences
Identifiers URN: urn:nbn:se:hh:diva-56641 OAI: oai:DiVA.org:hh-56641 DiVA, id: diva2:1974695
External cooperation
Volvo Cars Corporation
Subject / course Computer science and engineering
Educational program Computer Engineer, 180 credits
Supervisors
Examiners
2025-06-232025-06-232025-10-01 Bibliographically approved