<div class="gmail_quote">On Thu, Jul 12, 2012 at 6:40 PM, Koen Kooi <span dir="ltr">&lt;<a href="mailto:koen@dominion.thruhere.net" target="_blank">koen@dominion.thruhere.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<br>
<br>
Op 12 jul. 2012 om 17:29 heeft Andrei Gherzan &lt;<a href="mailto:andrei@gherzan.ro">andrei@gherzan.ro</a>&gt; het volgende geschreven:<br>
<div><div class="h5"><br>
&gt; Hello,<br>
&gt;<br>
&gt; Koen suggested to add -T to xz commands. We have this option implemented in our current version .1alpha.<br>
&gt;<br>
&gt; -T threads, --threads=threads<br>
&gt;               Specify the number of worker threads to use.  Setting threads to<br>
&gt;               a special value 0 makes xz use as many threads as there are  CPU<br>
&gt;               cores  on  the system.  The actual number of threads can be less<br>
&gt;               than threads if the input file is not big enough  for  threading<br>
&gt;               with  the  given  settings or if using more threads would exceed<br>
&gt;               the memory usage limit.<br>
&gt;<br>
&gt; -------------------<br>
&gt;<br>
&gt; Memory: 7.8 GiB<br>
&gt; Processor:: Intel® Core™ i5-2540M CPU @ 2.60GHz × 4<br>
&gt;<br>
&gt; File to compress: 1.9G<br>
&gt;<br>
&gt; xz -f -k -e -9 --check=crc32 (current configuration)<br>
&gt; Memory: 673Mb<br>
&gt; real    6m37.170s<br>
&gt; user    6m35.389s<br>
&gt; sys     0m0.884s<br>
&gt; Compressed file size: 3.4Mb<br>
&gt;<br>
&gt; xz -f -k -e -9 -T 4 --check=crc32<br>
&gt; Memory: Cannot allocate memory<br>
&gt;<br>
&gt; xz -f -k -e -8 -T 4 --check=crc32<br>
&gt; Memory: 1.8G<br>
&gt; real    3m24.462s<br>
&gt; user    12m8.502s<br>
&gt; sys     0m2.180s<br>
&gt; Compressed file size: 3.4Mb<br>
&gt;<br>
&gt; xz -f -k -T 4 --check=crc32 (-e defaults to -6)<br>
&gt; Memory: 471Mb<br>
&gt; real    1m9.265s<br>
&gt; user    4m8.972s<br>
&gt; sys     0m0.944s<br>
&gt; Compressed file size: 3.4Mb<br>
&gt;<br>
&gt; So my conclusion would be to use the default -e -6 with -T 4.<br>
<br>
</div></div>Out of curiousity, what does -T0 give you?<br><br></blockquote><div> </div><div>Exactly the same as -T 0. </div><div><br></div><div>@g</div></div><br>