From owner-freebsd-ports@freebsd.org Fri May 18 21:06:20 2018 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 26A25EDC3E3 for ; Fri, 18 May 2018 21:06:20 +0000 (UTC) (envelope-from rozhuk.im@gmail.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id B00846A1AE for ; Fri, 18 May 2018 21:06:19 +0000 (UTC) (envelope-from rozhuk.im@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id 6CED2EDC3E2; Fri, 18 May 2018 21:06:19 +0000 (UTC) Delivered-To: ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 47E36EDC3E1 for ; Fri, 18 May 2018 21:06:19 +0000 (UTC) (envelope-from rozhuk.im@gmail.com) Received: from mail-wm0-x22b.google.com (mail-wm0-x22b.google.com [IPv6:2a00:1450:400c:c09::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9F2FE6A1AA; Fri, 18 May 2018 21:06:18 +0000 (UTC) (envelope-from rozhuk.im@gmail.com) Received: by mail-wm0-x22b.google.com with SMTP id m129-v6so17345324wmb.3; Fri, 18 May 2018 14:06:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=HW5aBKpzBejJbInNKJnhQ3d40CaahIyhj7tQcUMhPLo=; b=WvIMiistgOCelba53Ksol2kMpC1XbHmI/EGUYP/qIYDOf9FKYd7soKTPs4aF6K2s5I PcN9PnAR+S1L0vAKA5c8RPKfZHeY9bRlblt/kz60YFJIl1suzfgQVeRW0EP6ih7glTcu Mwo/6cnrtIrkRjnSSl3OXmI0dL6evapXT7JVpv1rke8hUE7SVDATxxDjtI2IQkL5eNU1 MqMxdtDxukJOCy97HLJ/gFYPpmqbpkftwgD6z8YWr0/7nUA9vpGRN5NLc6LsyQHFsHdY 5S6Su/28yzDE0saSXbcCrGDpx6kExQ75K3DKCBRAMF3itRGKTfMsBgTsCHhEoG2PKF0S BYcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=HW5aBKpzBejJbInNKJnhQ3d40CaahIyhj7tQcUMhPLo=; b=dfcB1rfOWo+cUijVHko2kPIObcWwpjQ6r7ZK+NxRtOwHQJ6/ED9ScnAM0AYOf9pZyS 4ZkiHTCU6ENla7VvExLUHo6cTnTunboPwRRbyWSOW/Il0D5lFwmZOCbGTLJyLBKIGznD NQ6QmHddQLQdeazJdyfd4ISUNqPKMvI4AHOYaVx6S1gD5EkJqW7hVICC2Gp8CDKSt5Sy xNO+t194xEHRGmiakGkexhX1TTOAOdBvNJ4U80wVkpivdyClZOBzssbIi7RZdAWMfjsi 8QMqI5DpXafFRqhHC5GWju65mOmDsR3CC9ie9o30+XPGV1vIxJrnx0vsTMy8DT8a6sSf p1HA== X-Gm-Message-State: ALKqPwdCJY7oHfwrMip3MPqbPQ6FDHjUu4aKOiUhwP9L+foegX1JsXs1 sic8JOwtQsg7Ac5CfVpxvpzzFQ== X-Google-Smtp-Source: AB8JxZqvKzowJjAoT0MDQExVP8gtLIMIQSQ27hXv2gjgyp58sApMMcPBfxOckZvXcte0CDUpJyrDJg== X-Received: by 2002:aa7:d6c2:: with SMTP id x2-v6mr13860479edr.219.1526677576629; Fri, 18 May 2018 14:06:16 -0700 (PDT) Received: from localhost ([2001:470:1f15:3d8:7285:c2ff:fe37:5722]) by smtp.gmail.com with ESMTPSA id p57-v6sm4136443edc.21.2018.05.18.14.06.15 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 18 May 2018 14:06:16 -0700 (PDT) From: Rozhuk Ivan X-Google-Original-From: Rozhuk Ivan Date: Sat, 19 May 2018 00:06:14 +0300 To: Stefan Esser Cc: Koichiro Iwao , 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> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; amd64-portbld-freebsd11.1) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 May 2018 21:06:20 -0000 On Fri, 18 May 2018 22:46:15 +0200 Stefan Esser 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" ?