From owner-freebsd-questions@freebsd.org Tue May 30 10:52:22 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 7B489B7939F for ; Tue, 30 May 2017 10:52:22 +0000 (UTC) (envelope-from jim@mailman-hosting.com) Received: from maurice.jlkmail.com (maurice.jlkmail.com [23.111.151.218]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4F56780CA9 for ; Tue, 30 May 2017 10:52:22 +0000 (UTC) (envelope-from jim@mailman-hosting.com) Received: from maurice.jlkmail.com (localhost [127.0.0.1]) by maurice.jlkmail.com (Postfix) with ESMTP id D3FBD1889C5C for ; Tue, 30 May 2017 06:52:14 -0400 (EDT) Authentication-Results: maurice.jlkmail.com (amavisd-new); dkim=pass (1024-bit key) reason="pass (just generated, assumed good)" header.d=mailman-hosting.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d= mailman-hosting.com; h=content-transfer-encoding:mime-version :x-mailer:content-type:content-type:references:in-reply-to:date :date:to:from:from:subject:subject:message-id; s=dkim; t= 1496141533; x=1497005534; bh=r8fv8RKFz4DD94s6ODmI5eBNkVyzniEjcow TVbcdXA4=; b=jJF05yPfkVncMC3tALC/TZ9EYzC4ooimhxjpZur2BTSCt4pzWRG RoLRL7YKBjc8DI/G4V9Mmsyn+10S4O/lMqTzGlCPLvyPLyN00zHTsLq1Jgl2lHSX 71GtWrkx4N0hTl+oIIkmJKQOXC4l5tGkFnU9nxidqJBLXvpwHA0+Ja5I= X-Virus-Scanned: Debian amavisd-new at maurice.jlkmail.com X-Spam-Flag: NO X-Spam-Score: 4.296 X-Spam-Level: **** X-Spam-Status: No, score=4.296 tagged_above=-9999 required=6.31 tests=[ALL_TRUSTED=-1, RAZOR2_CF_RANGE_51_100=0.365, RAZOR2_CF_RANGE_E8_51_100=2.43, RAZOR2_CHECK=2.5, URIBL_BLOCKED=0.001] autolearn=no autolearn_force=no Received: from maurice.jlkmail.com ([127.0.0.1]) by maurice.jlkmail.com (maurice.jlkmail.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id B0xo4PTMbSia for ; Tue, 30 May 2017 06:52:13 -0400 (EDT) Received: from hogwarts.fios-router.home (static-70-104-198-154.nrflva.fios.verizon.net [70.104.198.154]) by maurice.jlkmail.com (Postfix) with ESMTPSA id 7379C1889A3C; Tue, 30 May 2017 06:52:13 -0400 (EDT) Message-ID: <1496141532.1095.41.camel@mailman-hosting.com> Subject: Re: Is it possible to use more than 1 CPUs during pkg create? From: Jim Ohlstein To: Koichiro IWAO , freebsd-questions@freebsd.org Date: Tue, 30 May 2017 06:52:12 -0400 In-Reply-To: <0101015c58b3dc58-1b936a1a-8412-472b-a257-c436a40e89f2-000000@us-west-2.amazonses.com> References: <0101015c58b3dc58-1b936a1a-8412-472b-a257-c436a40e89f2-000000@us-west-2.amazonses.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.24.2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit 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: Tue, 30 May 2017 10:52:22 -0000 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. > > -- Jim Ohlstein Professional Mailman Hosting https://mailman-hosting.com/