tarlz und Threads (english translation inside)

Started by orinoco, 2024/06/13, 15:46:48

Previous topic - Next topic

orinoco

Hallo,

ich verwende bisher zur Archivierung von Dateien die Kombination aus tar und xz.

$ XZ_OPT=-9e -T0 tar -cvJf foo.tar.xz bar/

Mit der Geschwindigkeit und Kompressionsrate bin ich sehr zufrieden. Leider ist mir auch passiert, dass ein Archiv mal kaputt war. Die Daten lagen glücklicherweise redundant vor.

Bei der Recherche, ob man so ein defektes Archiv gerettet werden kann, bin ich über den Artikel https://www.nongnu.org/lzip/xz_inadequate.html gestolpert. Der Inhalt hat mich nachdenklich gemacht und ich habe dem dem Tool tarlz mal eine Chance gegeben.

Leider bekomme ich es nicht hin, dass mehr als ein Kern beim Komprimieren verwendet wird. Mein Versuch

$ tarlz --create --verbose --threads=6 -9 --file foo.tar.lz bar/

nutzt nur einen Thread von sechs möglichen. Versuche mit zwei oder vier Threads brachten keine Verbesserung. Kennt sich jemand mit diesem Verhalten aus und hat Tipps für mich?



Hello,

I use the combination of tar and xz for archiving files.

$ XZ_OPT=-9e -T0 tar -cvJf foo.tar.xz bar/

I am very satisfied with the speed and compression rate. Unfortunately, it also happened to me that an archive was broken. Fortunately, the data was redundant.

While researching whether such a defective archive can be saved, I stumbled across the article https://www.nongnu.org/lzip/xz_inadequate.html. The content made me think and I gave the tarlz tool a try.

Unfortunately, I can't get it to use more than one core when compressing. My attempt

$ tarlz --create --verbose --threads=6 -9 --file foo.tar.lz bar/

only uses one thread out of a possible six. Attempts with two or four threads brought no improvement. Is anyone familiar with this behavior and has any tips for me?

Translated with DeepL.com (free version)