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