pigz icon indicating copy to clipboard operation
pigz copied to clipboard

pigz decompress performance drops when overwriting file

Open yukha-dw opened this issue 4 years ago • 1 comments

Hello, i have found interesting behaviour when using pigz. When pigz tries to overwrite file, it needs 500% more time to replace the file (or other operations, i'm not quite sure).

top is overwrite. image

I also tried it on gzip, but it has no this interesting behaviour as intended.

yukha-dw avatar Apr 18 '22 04:04 yukha-dw

I noticed that as well but didn't observe such a big difference. In my case it was about 1 second more when overwriting file with -f. It's not consistent either - sometimes it was not a case sometimes, more often than not, it was.

tansy avatar Jul 10 '22 23:07 tansy

I can't duplicate this:

% cp enwik8.gz xx.gz;cp enwik8.gz yy.gz;pigz -dk xx.gz;time pigz -df xx.gz;time pigz -df yy.gz
pigz -df xx.gz  0.30s user 0.04s system 113% cpu 0.302 total
pigz -df yy.gz  0.30s user 0.04s system 113% cpu 0.304 total

Closing.

madler avatar Oct 07 '22 07:10 madler