[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Sheflug] Pigz compression
- To: sheflug@xxxxxxxxxxxxxx
- Subject: [Sheflug] Pigz compression
- From: John Southern <linuxtarragon@xxxxxxxxx>
- Date: Sat, 10 Oct 2026 12:18:10 +0100
- Arc-authentication-results: i=1; mx.google.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=to:subject:message-id:date:from:mime-version:dkim-signature; bh=4+PXppa0Ha33am5s1zKqDXVjq58pOvRKkPyjVMNCC+8=; fh=NKg7OOzU/A8FI3gjzkEs8cPe3ruyTIbvYZKpmut9SNs=; b=g4uJzQ+E/HXbZCevZmF1TzekJM/Ld7uLL2OxeDWal8h1yvNhTsHKQpCeRmhaK487Hy XbkPWIwRfnFBpT9d3p12uH/WW2FStzOlLnCW5HNCnn5WIR1NkHF/p69wc4uIpxOPqRI/ NiAfrjuIXnIimpu6ZHiMl9Jr7txhtteONGcFVH2Ce/oHqDgNvD1gMemY20azffdBTm4H 8C21yjtOjfSduw/6j2AO5g2alirc24VzX814O2OOSEpz2okYy69vOF0pt+Zq36Jh9Xc9 wKYp+mgaLTmJBdYmvqmzOIpFXqv7RCMnswqAdfOcLZXwbF9V4pnctzxjlm6Bx7nunzoZ UWhQ==; darn=sheflug.org.uk
- Arc-seal: i=1; a=rsa-sha256; t=1791631103; cv=none; d=google.com; s=arc-20260327; b=oLQK7+61Q7XWcs+cxFaK0PRjFHgBzD2GrXLJ7B9gLo1CxnMhNg7lA+FAQMwylOlgpn ZWF5HWcfZ/wkTVg8My6Oz60VsgmlD4Liw4xy0jRJEjfCYl4HlEm6yF1juKMc2/rIYc0m 7QHuYV0E1E7iWQJo+2SUaKX43lzb1sVnWFxgWfph+UCEkuNj/i1N29EdyOefpqmCDtZk bHReSze3G+tFByzXOYQB+Rd5q57egle9w0ik8PJNJ9P2pBUVtmOUPgm1vRv8VpN2nldZ vVxLNweBbKutScBXI2fPuljLsm3hUHm2obVmjGo8wW7Gf7f+lNjN79/gGQTVbbToXK0o fOEQ==
- Delivery-date: Sat, 10 Oct 2026 12:20:08 +0100
- Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sheflug.org.uk; s=default; h=Sender:Content-Transfer-Encoding:Content-Type: Reply-To:List-Post:List-Subscribe:List-Unsubscribe:List-Help:List-Id:Subject: To:Message-ID:Date:From:MIME-Version:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Unsubscribe-Post:List-Owner:List-Archive; bh=ZjHsI9SOk4mzBF7uJYzB3ClPaH+hgISbJVtZs/wvLu0=; b=kcptF0W9tVFWEgjwabUqhwAneu QtVcka/tD/6WbZuN+e21l4vUzdAEeFu9HPtvqvxfIr44I4od4Gf89aQ0ge+og4ljpurZQy3zpvtgt 7HRDpG70RZB2QTkmuDZfJg6jvhuvAq/zA9MyxlQVuoryBpPDE62HTSfQhoisHWKpsXgv3Mrt0Z0PA AdL0e24GUrMaxgmyMXrX+uYlFgVyJz/U9lQ2c96LITlRerLFlsPZHC5EsoTYgjwmoBRESF5URlIFw 2sNRiJq0OD4Bq6W1cozn4Td3t3Vdqb355WcIGnlSp9KFS6iiaTD8KywrebkpE49raXUIxsWEy2Ppx r4fS4bQg==;
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1791631103; x=1792235903; darn=sheflug.org.uk; h=content-type:to:subject:message-id:date:from:mime-version:from:to :cc:subject:date:message-id:reply-to:content-type; bh=4+PXppa0Ha33am5s1zKqDXVjq58pOvRKkPyjVMNCC+8=; b=PYWNNhZzC+yy3gtuMghqCSVxCSxAAIefR8EVZ32vMaL9T1NdRDIrmd7/mO4QpORpMC z1K7Noj2KPAAOUx39k63qK0IBb4ugxSR3ATvxjwqDif/EcSj98vbDpbuFTaz84pQO4lQ 1ptCGFXuqHMGZK3Y68Wxaz9g0xqXvrCtbnSFNiN2ezGUaS4Z2LqKbszSt83Yohq7xG1j MqKAa75fYp6rjLrgVdm6+HNFKHcbWNSXEJgXBpfNyXgVj9Jr5P7Dp57ZCsR57HJ5XJ1D KBeNRb+vNSTvAesvSlLQhCSkaK0RZJEgmTd/Kd6yaeHS3lYezRnxuv7v0tdxvQd8s67m SzwA==
- Envelope-to: sheflug@xxxxxxxxxxxxxx
- List-help: <mailto:sheflug-request@sheflug.org.uk?subject=help>
- List-id: <sheflug.sheflug.org.uk>
- List-post: <mailto:sheflug@sheflug.org.uk>
- List-subscribe: <http://sheflug.org.uk/mailman/listinfo/sheflug_sheflug.org.uk>, <mailto:sheflug-request@sheflug.org.uk?subject=subscribe>
- List-unsubscribe: <http://sheflug.org.uk/mailman/options/sheflug_sheflug.org.uk>, <mailto:sheflug-request@sheflug.org.uk?subject=unsubscribe>
- Reply-to: sheflug@xxxxxxxxxxxxxx
- Sender: "Sheflug" <sheflug-bounces@xxxxxxxxxxxxxx>
Hi All,
So I was reading through the pigz manpages. pigz is a parallel gzip tool
and decided to spend some time testing it. This is all part of my
deduplication rabbit hole that I have now fallen down.
lscpu
Thread(s) per core 2
Core(s) per socket 6
Socket(s) 1
So 2*6*1 gives us 12 as the max thread count on the machine.
I am using a 58GB directory as a test of which the files are mostly
compressed anyway.
time tar cf - /spare/deduptest/Retro/DS/ | pigz -0 -p 12 > DS.tar.gz
takes 26 minutes with the -0 meaning no compression for a 58.3GB output
time tar cf - /spare/deduptest/Retro/DS/ | pigz -p 12 > DS.tar.gz
takes 15 minutes 38 seconds with the default output for a 35.0GB output
time tar cf - /spare/deduptest/Retro/DS/ | pigz -9 -p 12 > DS2.tar.gz
takes 16 minutes 55 seconds with the maximum compression for a 34.9GB output
time tar cf - /spare/deduptest/Retro/DS/ | pigz -1 -p 12 > DS3.tar.gz
takes 16 minutes 10 seconds with the maximum speed for a 35.7GB output
The difference between the fastest and slowest is just 77 seconds with the
sizes varying from 34.9GB to 35.7GB. I would not expect much compression
difference as the files should be fairly compressed anyway.
Just for reference
time tar cf DS4.tar /spare/deduptest/Retro/DS/
took 25 minutes 24 seconds for a 58.3GB output
and
time tar -czf DS5.tar.gz /spare/deduptest/Retro/DS/
took
So the question is why does just tar or the zero compression take so long
and why have the -o option in the pigz command?
Regards
John
_______________________________________________
Sheffield Linux User's Group
http://sheflug.org.uk/mailman/listinfo/sheflug_sheflug.org.uk
FAQ at: http://www.sheflug.org.uk/mailfaq.html
GNU - The Choice of a Complete Generation