<p dir="ltr">Put more swap, it will be slower but you won&#39;t run out of memory</p>
<p dir="ltr"><a href="http://inside-out.xyz/technology/adding-swap-into-a-linux-server-after-installation.html">http://inside-out.xyz/technology/adding-swap-into-a-linux-server-after-installation.html</a></p>
<div class="gmail_extra"><br><div class="gmail_quote">Le 19 juil. 2016 12:24 PM, &quot;Steven Ayre&quot; &lt;<a href="mailto:steveayre@gmail.com">steveayre@gmail.com</a>&gt; a écrit :<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">The issue is that xz is compressing with the extreme &#39;9e&#39; compression option which is the most resource-hungry. 9e needs 674MB during compression (see the table on the xz manpage). Try running it via the util.sh script with the -z option to set a much lower compression level (eg 3).</div><div class="gmail_extra"><br><div class="gmail_quote">On 19 July 2016 at 17:16, Peter <span dir="ltr">&lt;<a href="mailto:happy@hour.com" target="_blank">happy@hour.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  

    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <pre>I am trying to build the Debian 8 packages for a 32bit platform using Stanislav&#39;s script.

Unfortunately, I experience memory issues when building the sound packages at the point <code>the .</code><code>/debian/rules</code> <code>get-orig-</code><code>source script is running.
After the xs compress tool starts claiming all physical memory, memory swap is increased rapidly to a point that downloading the tar file gets to a hold.
</code><code><code>See below.

</code>I am running the script on a 32bit machine with 512MiB RAM, so resources are relatively low.
I am not a shell script whiz, so maybe someone is willing to help with altering the script to work with lower resources, if this seems to be the cause.</code>


Thanks Stanislav Sinyagin for creating and referring me to the script and Michael Jerris for additional comments.



1174 root      20   0  693176 447352    304 D  2.0 87.0   2:56.01 xz  


root@sip:/usr/src/freeswitch-sounds/music-default# ./debian/rules get-orig-source
wget -O ./tmp.cs0qwdwEJ2/upstream.tgz <a href="http://files.freeswitch.org/freeswitch-sounds-music-48000-1.0.51.tar.gz" target="_blank">&quot;http://files.freeswitch.org/freeswitch-sounds-music-48000-1.0.51.tar.gz&quot;</a>
--2016-07-17 08:04:37--  <a href="http://files.freeswitch.org/freeswitch-sounds-music-48000-1.0.51.tar.gz" target="_blank">http://files.freeswitch.org/freeswitch-sounds-music-48000-1.0.51.tar.gz</a>
Resolving <a href="http://files.freeswitch.org" target="_blank">files.freeswitch.org</a> (<a href="http://files.freeswitch.org" target="_blank">files.freeswitch.org</a>)... 209.105.235.7, 2607:f348:1021::7
Connecting to <a href="http://files.freeswitch.org" target="_blank">files.freeswitch.org</a> (<a href="http://files.freeswitch.org" target="_blank">files.freeswitch.org</a>)|209.105.235.7|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: <a href="http://files.freeswitch.org/releases/sounds/freeswitch-sounds-music-48000-1.0.51.tar.gz" target="_blank">http://files.freeswitch.org/releases/sounds/freeswitch-sounds-music-48000-1.0.51.tar.gz</a> [following]
--2016-07-17 08:04:38--  <a href="http://files.freeswitch.org/releases/sounds/freeswitch-sounds-music-48000-1.0.51.tar.gz" target="_blank">http://files.freeswitch.org/releases/sounds/freeswitch-sounds-music-48000-1.0.51.tar.gz</a>
Reusing existing connection to <a href="http://files.freeswitch.org:80" target="_blank">files.freeswitch.org:80</a>.
HTTP request sent, awaiting response... 200 OK
Length: 75546338 (72M) [application/x-gzip]
Saving to: ‘./tmp.cs0qwdwEJ2/upstream.tgz’

./tmp.cs0qwdwEJ2/upstream.tgz                   100%[=======================================================================================================&gt;]  72.05M  43.4KB/s   in 18m 59ss

2016-07-17 08:23:37 (64.8 KB/s) - ‘./tmp.cs0qwdwEJ2/upstream.tgz’ saved [75546338/75546338]

mkdir -p ./tmp.cs0qwdwEJ2/freeswitch-music-default-1.0.51
tar -x -C ./tmp.cs0qwdwEJ2/freeswitch-music-default-1.0.51 -f ./tmp.cs0qwdwEJ2/upstream.tgz
if [ -d ./tmp.cs0qwdwEJ2/freeswitch-music-default-1.0.51/music ]; then \
  mv ./tmp.cs0qwdwEJ2/freeswitch-music-default-1.0.51/music/48000 ./tmp.cs0qwdwEJ2/freeswitch-music-default-1.0.51/music/default; \
else \
  for x in ./tmp.cs0qwdwEJ2/freeswitch-music-default-1.0.51/*/*/*/*; do \
    for y in $x/*; do mv $y/* $x; rmdir $y; done; \
  done; \
fi
tar -c -C ./tmp.cs0qwdwEJ2 -f freeswitch-music-default_1.0.51.orig.tar freeswitch-music-default-1.0.51
xz -9ev freeswitch-music-default_1.0.51.orig.tar
freeswitch-music-default_1.0.51.orig.tar (1/1)
 45.6 %         21.9 MiB / 48.2 MiB = 0.455   192 KiB/s       4:17   5 min 10 s
 47.9 %         22.7 MiB / 50.7 MiB = 0.449    79 KiB/s      10:58       12 min

script stuck indefinitely at this point ....
  
</pre>
  </div>

<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div></div>