| Summary: | Change compilation option for libarchive | ||
|---|---|---|---|
| Product: | Base System | Reporter: | Alexandre martins <alexandre.martins> |
| Component: | bin | Assignee: | freebsd-bugs (Nobody) <bugs> |
| Status: | Closed DUPLICATE | ||
| Severity: | Affects Only Me | CC: | alexandre.martins, cem |
| Priority: | --- | ||
| Version: | 11.2-RELEASE | ||
| Hardware: | Any | ||
| OS: | Any | ||
Dup of bug 233543? See also r340997 and r341453. For now, you can instead use: time tar --options -cf - zero | xz -T0 > test.txz *** This bug has been marked as a duplicate of bug 233543 *** |
Greetings, Currently, the libarchive is compiled without the flag HAVE_LZMA_STREAM_ENCODER_MT. It may be nice to add this flag to allow compression on multiple CPU. On my machine (4 CPU), if I compress 4GB of 0 in the standard way: $ time tar --options threads=0 -cJf test.txz zero real 1m18,200s user 1m16,910s sys 0m0,941s When libarchive is compiled with the flag: $ time tar --options threads=0 -cJf test.txz zero real 0m21,810s user 1m17,612s sys 0m1,478s The patch: -+-+-+-+-+-+- --- Makefile.orig 2018-12-20 16:09:26.863988000 +0100 +++ Makefile 2018-12-20 16:09:47.393163000 +0100 @@ -7,7 +7,7 @@ _LIBARCHIVEDIR= ${SRCTOP}/contrib/libarc LIB= archive LIBADD= z bz2 lzma bsdxml -CFLAGS+= -DHAVE_BZLIB_H=1 -DHAVE_LIBLZMA=1 -DHAVE_LZMA_H=1 +CFLAGS+= -DHAVE_BZLIB_H=1 -DHAVE_LIBLZMA=1 -DHAVE_LZMA_H=1 -DHAVE_LZMA_STREAM_ENCODER_MT=1 # FreeBSD SHLIB_MAJOR value is managed as part of the FreeBSD system. # It has no real relation to the libarchive version number. -+-+-+-+-+-+- Best regards, Alexandre