Hi,

I wrote a post about how to build and test zlib also for distros currently not 
supported:

http://linux-on-z.blogspot.com/2019/10/howto-exploiting-hardware-compression.html

You will find a quick one-liner test at the end of the post which can be used 
to verify whether
hardware compression works in your installation.

Andreas

On 10.06.20 01:36, Michael MacIsaac wrote:
> Hello list,
>
> I heard about the new DFLTCC instruction on the z15, aka on board
> compression.  I tried a quick experiment to see the difference from a z14.
> Disclaimer: I am not a performance expert.>
> Here are three commands to create, compress and decompress a 1G file on a
> z14:
>
> # grep Type: /proc/sysinfo
> Type:                 3906
>
> # time dd if=/dev/zero of=1G.file bs=1G count=1
> 1+0 records in
> 1+0 records out
> 1073741824 bytes (1.1 GB, 1.0 GiB) copied, 21.93 s, 49.0 MB/s
>
> real    0m22.047s
> user    0m0.001s
> sys     0m3.669s
>
> # time cat 1G.file | gzip -c > 1G.compressed.file
>
> real    0m7.603s
> user    0m5.362s
> sys     0m0.789s
>
> # time cat 1G.compressed.file | gzip -d > 1G.file
>
> real    0m24.833s
> user    0m4.103s
> sys     0m1.845s
>
> Here's the same commands on z15:
>
> # grep Type: /proc/sysinfo
> Type:                 8561
>
> # time dd if=/dev/zero of=1G.file bs=1G count=1
> 1+0 records in
> 1+0 records out
> 1073741824 bytes (1.1 GB, 1.0 GiB) copied, 1.59126 s, 675 MB/s
>
> real    0m1.621s
> user    0m0.000s
> sys     0m1.216s
>
> # time cat 1G.file | gzip -c > 1G.compressed.file
>
> real    0m5.722s
> user    0m4.946s
> sys     0m0.510s
> # time cat 1G.compressed.file | gzip -d > 1G.file
>
> real    0m6.150s
> user    0m3.922s
> sys     0m1.290s
>
> Wow more than 10x faster on dd - was not expecting that as I didn't think
> it uses compression. But the compress with gzip -c, was only 25% faster on
> the z15 while the decompress was about 4x.
>
> Are these results expected?
>
> Thanks.
>
>
> --
>      -Mike MacIsaac
>
> ----------------------------------------------------------------------
> For LINUX-390 subscribe / signoff / archive access instructions,
> send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit
> http://www2.marist.edu/htbin/wlvindex?LINUX-390
>

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit
http://www2.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to