bugGNU tar - Bugs: bug #66788, RFE: please add option to support...

 
 

bug #66788: RFE: please add option to support multithread compression

Submitter:  Jaroslav Škarvada <yarda>
Submitted:  Tue 11 Feb 2025 07:18:28 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Need Info
Privacy:  Public Assigned to:  None
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 17 Mar 2025 09:59:21 AM UTC, comment #2: 

It needn't be the '-T' option, just any option that would inject the multithread option to the underlying known compressors. If the compressor doesn't support it, it could be ignored or it could write warning. I think it would be better user experience to write e.g.:

$ tar -cJf archive.tar.xz --smp 0 DIR

(or instead of the --smp or -T whatever option that makes sense)

than:
$ tar -c -I 'xz -z -T0' -f archive.tar.xz DIR

Jaroslav Škarvada <yarda>
Fri 14 Mar 2025 09:44:12 AM UTC, comment #1: 

And what if the compressor does not support the -T option or has another option for this effect?

Sergey Poznyakoff <gray>
Group administrator
Tue 11 Feb 2025 07:18:28 PM UTC, original submission:  

On multicore machines the multithread compression can significantly speed-up the compression. This is especially true for computationally intensive xz compression. Now I have to do:
$ tar -cf archive.tar DIR
$ xz -z -T 0 archive.tar

Or:
$ tar -c -I 'xz -z -T0' -f archive.tar.xz DIR

It would be great if tar could have e.g. the --threads option, which would add the -T option to the xz and other backend tools where supported.

tar-1.35

Jaroslav Škarvada <yarda>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by gray (Posted a comment)
  • -email is unavailable- added by yarda (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2025-03-14 gray StatusNone Need Info

    Back to the top

    Powered by Savane 3.14-430a.
    Corresponding source code