pixz icon indicating copy to clipboard operation
pixz copied to clipboard

pixz isn't using all cores during decompression

Open shmerl opened this issue 8 years ago • 3 comments

I just tired comrpessing a bit apitrace file (13 GB), which got compressed to around 1GB. During compression all cores are used, but I noticed that during decompression, only a small portion of cores are used, and many remain idle. I'm running the test on Ryzen 7 1700X, so it has 8 cores and 18 threads available (hyperthreading).

Is decompression hard limited in how many cores it uses?

shmerl avatar Aug 15 '17 02:08 shmerl

There shouldn't be any hard limit, but usually writing is slower than reading—so it's possible that's the bottleneck?

vasi avatar Aug 15 '17 08:08 vasi

That could be the case, I'm using an HDD. I can get some SSD for a test.

On a side note, may be writing can be optimized with some buffering, to avoid the bottleneck? I.e. use more RAM for parallel writes in it, before writing out big chunk to disk in one go? That would minimize parallel disk access.

shmerl avatar Aug 15 '17 18:08 shmerl

For level 8 and 9 compression, PIXZ does not give any advantage when decompressing. I have compared PIXZ with XZ.

babam86 avatar Jan 30 '18 14:01 babam86