s390x load + decompress time of kernel image with lz4 is 2x slower than lzo
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu on IBM z Systems |
Fix Released
|
Medium
|
bugproxy | ||
linux (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Canonical Kernel Performance Team has been doing benchmarks on loading & decompressing time of the kernel images to select the fastest compression.
On x86_64 lz4 came out as the best one.
On our s390x load + decompress time of kernel image with lz4 appeared to be 2x slower than lzo. Tested on z13 mainframde, whilst kernel is compiled targetingging -march=zEC12. Which is a bit surprising. Are there any performance improvements that can be done to kernel lz4?
You can see assessment details over at the public bug https:/
I wonder if IBM teams can try different kernel compression algorithms to doublecheck that indeed load+decompress time of lzo kernel image is the fastest, and faster than lz4 or gzip.
Also, would that change with z14 and the hw accelerated decompression there? Is that implemented for the kernel decompressors?
We will be switching kernel image compression to lzo with the v5.3 kernel on s390x.
affects: | ubuntu → linux (Ubuntu) |
tags: | added: architecture-s39064 bugnameltc-181056 severity-high targetmilestone-inin1804 |
Changed in ubuntu-z-systems: | |
assignee: | nobody → bugproxy (bugproxy) |
importance: | Undecided → Medium |
status: | New → Triaged |
tags: | added: reverse-proxy-bugzilla |
FWIW, I verified this on z14, and there clearly lz4 is (as expected) the fastest decompression algorithm.
With vanilla 5.3-rc6 and defconfig I get the following kernel uncompression times:
lzo: 27us
lz4: 24us
An initrd (uncompressed size ~55MB) gets these uncompression times:
lzo: 62us
lz4: 49us
So I'd clearly vote to switch to lz4 on s390 as well.
And no: there is no support for using the zEDC card when uncompressing kernel image and/or initrd.