X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=ZLJV0kNOqjEY3HEt dkKwXUlPuniV9Xd1wkNGKz9g2ClWJhLU+1vTyfv+1NtQgnS8wYgSBrqLDOjEH9JJ g6asEAeHR6Vkv/00Jymmv2M/pjefp81NJY86h7weUmgK02p++EqIWo4xExQFlIcF lySrnOwuFO+rWFZ4eyRMccg2pMw= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=g0RM8cGM8JV09SOwtQPZYB E9GYM=; b=kW32cBXhL3HP8iJZA4prPBa0dLsyP6jDDXrx296ixPBPs5lAnyKsjx +QTfsvJEsmzjs974vhHq/hoZgIU3QUXzdm9A/x2ZD93Rlvq0kQ+5j4RtU4K2YxGv AkdPdBA4kMUXskofpkRjj6PzrEBwbIRjPp+A0LzQHq5dYJh7rNFD0= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.8 required=5.0 tests=BAYES_00,FREEMAIL_FROM,KAM_COUK,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD,SPF_PASS autolearn=no version=3.3.2 spammy=Stacey, stacey, H*M:tiscali, wfm X-HELO: smtp-d-5.tiscali.co.uk Subject: Re: xz-5.2.2: No threaded compression To: cygwin AT cygwin DOT com References: <550c836a-b321-b8e4-6fb6-b2e3751f6da1 AT tiscali DOT co DOT uk> From: David Stacey Message-ID: Date: Wed, 10 May 2017 06:33:23 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4wfJjyh14ohvdP7k8A1NuYc0Hy5kDfC6bKjLVCd6ZvYu3ULKGDO8i5BJu6qXGD143T03+BO23vmEa7YaHEBPSn3gyYKWn+xShFni1b+/1mnIfna7xFHLYq K4y+aLzalD7QNBXCeI0Glsw7/TxuBcPObzJVUS3XrWn1zqO5pKKd+tZs X-IsSubscribed: yes On 10/05/17 01:15, Yaakov Selkowitz wrote: > On 2017-05-09 18:02, David Stacey wrote: >> The man page for xz suggests that threaded compression ought to be >> available. However, when I run 'xz --threads=0 ' only one CPU core >> is used. Is there a way that I can run parallel xz compression in >> Cygwin? > > WFM. Note from the manpage: > > -T threads, --threads=threads > Specify the number of worker threads to use. Setting threads to > a special value 0 makes xz use as many threads as there are CPU > cores on the system. The actual number of threads can be less > than threads if the input file is not big enough for threading > with the given settings or if using more threads would exceed > the memory usage limit. That's helpful, thank you. The files I'm trying to compress are several GB, so I suppose I must be hitting the memory limit - which is surprising, given that I'm on a 64-bit system with a fair amount of RAM. I'll take a look at the source code and see if I can figure out what criteria it uses to enable or disable threaded compression. Thanks again, Dave. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple