Date: Sat, 19 May 2018 00:06:14 +0300 From: Rozhuk Ivan <rozhuk.im@gmail.com> To: Stefan Esser <se@freebsd.org> Cc: Koichiro Iwao <meta@freebsd.org>, ports@freebsd.org Subject: Re: Why portmaster uses g++ not g++6 nor clang++? Message-ID: <20180519000614.0c05c5da@gmail.com> In-Reply-To: <379c8c25-1198-1e91-2f5b-511459a3362b@freebsd.org> References: <0101016373cfd7a2-a231a144-9162-4315-82b5-93d3823e99b5-000000@us-west-2.amazonses.com> <7c7d5ebc-e8e4-6a2c-92fc-879663cf5926@freebsd.org> <20180518231736.73f3b61d@gmail.com> <379c8c25-1198-1e91-2f5b-511459a3362b@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 18 May 2018 22:46:15 +0200 Stefan Esser <se@freebsd.org> wrote: > I'm working on a completely new re-implementation of portmaster and > the new version will get these points right. Fixing the current port > version is too hard and wasted effort, since only the features and > command line options are carried over, but none of the code of the > current version. Thanks! I see code, take parts frome there for my work purposes and old portmaster have bad design. As one more future request. Current pkg create use only one thread to compress. I do small set of benchmarks on Ryzen 2700x: ======================================================================== root@rimwks# /usr/bin/time -h pkg create --format tar -o /tmp/ llvm60 7.01s real 6.11s user 0.72s sys 796,5 MB root@rimwks# /usr/bin/time -h pkg create --format tbz -o /tmp/ llvm60 1m3.56s real 1m1.48s user 0.38s sys 209,9 MB root@rimwks# /usr/bin/time -h pkg create --format tgz -o /tmp/ llvm60 36.54s real 35.10s user 0.48s sys 244,8 MB root@rimwks# /usr/bin/time -h pkg create --format txz -o /tmp/ llvm60 5m42.69s real 5m33.15s user 0.53s sys 154,7 MB root@rimwks# /usr/bin/time -h pbzip2 -k -p16 /tmp/llvm60-6.0.0_3.tar 7.47s real 1m40.36s user 5.34s sys 210,7 MB root@rimwks# /usr/bin/time -h tar --use-compress-program=pigz -cf /tmp/llvm60-6.0.0_3.tar.gz /tmp/llvm60-6.0.0_3.tar 2.85s real 40.44s user 0.75s sys 244,6 MB root@rimwks# /usr/bin/time -h xz -T 0 --compress /tmp/llvm60-6.0.0_3.tar 49.96s real 9m30.88s user 33.84s sys 156,9 MB ======================================================================== 5m42.69s - for compress, compile time ~ 15 minutes. Terrable!!! 49.96s - is mutch better. Can you try to implement option to chose at least tar/txz, and probably for txz use "xz -T 0 --compress" ?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20180519000614.0c05c5da>