Re: tar and cores?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2020-10-10 07:15, C Linus Hicks wrote:
On Fri, 2020-10-09 at 15:08 -0700, ToddAndMargo via users wrote:
On 2020-10-07 14:17, Cameron Simpson wrote:
On 06Oct2020 16:32, ToddAndMargo <ToddAndMargo@xxxxxxxx> wrote:
I am noticing that

    tar czvf xxxxx

is only using one of my cores (and pretty much all of
the core).

Is there a way to get it to use more than one core?

Its ability to compress depends on the compression program you use. Using the 'z' flag specifies
that it use gzip, which only uses one core. Use a different compression program.

I use lbzip2, there are other options:

https://www.linuxlinks.com/best-linux-multi-core-compression-tools/

Once installed, I create an alias like so:

alias pzstar='/usr/bin/star compress-program=lbzip2 -sparse'

Notice I am using 'star' rather than 'tar' but they are similar.

The option for specifying the compress program in tar is so:

        -I, --use-compress-program=COMMAND
               Filter  data through COMMAND.  It must accept the -d  option, for
               decompression.  The argument can contain command line options.

Thank you!

I stuck it in my keeper file on the subject
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux