From owner-freebsd-questions@freebsd.org Wed May 31 02:40:17 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E5A81BF3779 for ; Wed, 31 May 2017 02:40:17 +0000 (UTC) (envelope-from 0101015c5c6007b6-0633a1f3-b800-431f-a784-e931afd64ba3-000000@us-west-2.amazonses.com) Received: from a27-35.smtp-out.us-west-2.amazonses.com (a27-35.smtp-out.us-west-2.amazonses.com [54.240.27.35]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C464084207 for ; Wed, 31 May 2017 02:40:17 +0000 (UTC) (envelope-from 0101015c5c6007b6-0633a1f3-b800-431f-a784-e931afd64ba3-000000@us-west-2.amazonses.com) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=stdm37fqbypyvw6iolbo3nkyd73es3w7; d=vmeta.jp; t=1496198416; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version:Content-Type:In-Reply-To; bh=EDuvaymqRjQELMnLY0o0uwbVF1co8ROzlIXD0Ejt2KU=; b=SfnJMVN6cyQ9DFR+UWtv7IJZhZYnbKGxrcUud56iX+lXK0CcHXfdnIvDlDWOzx8H zBem/ny1hKpWSDWVPYTVdj7o8pDzhuqrBn2wyz4yC/rVT5bMXOashU2Jswy0IhocjyW 3JzjRf+PV8InPl15l9CIrglW5THRsOr25pT28fiw= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=hsbnp7p3ensaochzwyq5wwmceodymuwv; d=amazonses.com; t=1496198416; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version:Content-Type:In-Reply-To:Feedback-ID; bh=EDuvaymqRjQELMnLY0o0uwbVF1co8ROzlIXD0Ejt2KU=; b=a5F+jeuLVUN5YbdNgTllfrKGUKhSfc0Fny+WxrRj/ycGKVEPZBWr5rR4DuCksDXL +aoQJtUP+J0gModp8BeOVfUTCZjAjHxpxB/xQ8f8G05mQ1Ojxt8YYZ3Gum9mVfUSxx1 GIgiejU6yhpj3JvpXvUJ8ojMegywn1UKr4sztoAw= Date: Wed, 31 May 2017 02:40:16 +0000 From: meta To: Jim Ohlstein Cc: freebsd-questions@freebsd.org Subject: Re: Is it possible to use more than 1 CPUs during pkg create? Message-ID: <0101015c5c6007b6-0633a1f3-b800-431f-a784-e931afd64ba3-000000@us-west-2.amazonses.com> References: <0101015c58b3dc58-1b936a1a-8412-472b-a257-c436a40e89f2-000000@us-west-2.amazonses.com> <1496141532.1095.41.camel@mailman-hosting.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-2022-jp Content-Disposition: inline In-Reply-To: <1496141532.1095.41.camel@mailman-hosting.com> X-Operating-System: FreeBSD 10.3-RELEASE-p18 amd64 User-Agent: Mutt/1.8.2 (2017-04-18) X-SES-Outgoing: 2017.05.31-54.240.27.35 Feedback-ID: 1.us-west-2.ngRt4x2U/cWqug8pbfjwMxB6pcDw1fmN73bGmMLYyRI=:AmazonSES X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 May 2017 02:40:18 -0000 On Tue, May 30, 2017 at 06:52:12AM -0400, Jim Ohlstein wrote: > On Tue, 2017-05-30 at 09:33 +0000, Koichiro IWAO wrote: > > Hi, > > > > is it possible to use more than 1 CPU cores during xz compression > > done in pkg create? I know XZ Utils in base system can use more > > than 1 CPUs if -T option given. I guess pkg internally calls APIs > > of XZ Utils. I think it is potentially possible. > > > > Or is it restricted to use only 1 CPU core for some reasons? > > For those using poudriere or synth this might be a disadvantage with > multiple parallel builds going on. That said, I imagine the code could > be patched to allow it. Yes, using more than 1 CPU cores might be both an advantage and a disadvantage. I think allow multithread and keep default to only 1 thread will be acceptable for everyone. -- `whois vmeta.jp | nkf -w` meta