Evaluating compression algorithms for Linux hibernate/resume performance
2025 (engelsk)Independent thesis Basic level (professional degree), 10 poäng / 15 hp
Oppgave
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.
sted, utgiver, år, opplag, sider
2025. , s. 45
Emneord [en]
Linux, hibernate, resume, compression algorithms, LZ4, LZO, ZSTD, kernel development, power management
HSV kategori
Identifikatorer
URN: urn:nbn:se:hh:diva-56641OAI: oai:DiVA.org:hh-56641DiVA, id: diva2:1974695
Eksternt samarbeid
Volvo Cars Corporation
Fag / kurs
Computer science and engineering
Utdanningsprogram
Computer Engineer, 180 credits
Veileder
Examiner
2025-06-232025-06-232025-10-01bibliografisk kontrollert