[Freeswitch-users] inefficient build scripts for Debian 8, 32bit packages ?

Luis Daniel Lucio Quiroz luis.daniel.lucio at gmail.com
Tue Jul 19 20:47:43 MSD 2016


Put more swap, it will be slower but you won't run out of memory

http://inside-out.xyz/technology/adding-swap-into-a-linux-server-after-installation.html

Le 19 juil. 2016 12:24 PM, "Steven Ayre" <steveayre at gmail.com> a écrit :

> The issue is that xz is compressing with the extreme '9e' 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).
>
> On 19 July 2016 at 17:16, Peter <happy at hour.com> wrote:
>
>> I am trying to build the Debian 8 packages for a 32bit platform using Stanislav's script.
>>
>> Unfortunately, I experience memory issues when building the sound packages at the point the ./debian/rules get-orig-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.See below.
>> 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.
>>
>>
>> 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 at sip:/usr/src/freeswitch-sounds/music-default# ./debian/rules get-orig-source
>> wget -O ./tmp.cs0qwdwEJ2/upstream.tgz "http://files.freeswitch.org/freeswitch-sounds-music-48000-1.0.51.tar.gz" <http://files.freeswitch.org/freeswitch-sounds-music-48000-1.0.51.tar.gz>
>> --2016-07-17 08:04:37--  http://files.freeswitch.org/freeswitch-sounds-music-48000-1.0.51.tar.gz
>> Resolving files.freeswitch.org (files.freeswitch.org)... 209.105.235.7, 2607:f348:1021::7
>> Connecting to files.freeswitch.org (files.freeswitch.org)|209.105.235.7|:80... connected.
>> HTTP request sent, awaiting response... 301 Moved Permanently
>> Location: http://files.freeswitch.org/releases/sounds/freeswitch-sounds-music-48000-1.0.51.tar.gz [following]
>> --2016-07-17 08:04:38--  http://files.freeswitch.org/releases/sounds/freeswitch-sounds-music-48000-1.0.51.tar.gz
>> Reusing existing connection to files.freeswitch.org:80.
>> HTTP request sent, awaiting response... 200 OK
>> Length: 75546338 (72M) [application/x-gzip]
>> Saving to: ‘./tmp.cs0qwdwEJ2/upstream.tgz’
>>
>> ./tmp.cs0qwdwEJ2/upstream.tgz                   100%[=======================================================================================================>]  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 ....
>>
>>
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://confluence.freeswitch.org
>> http://www.cluecon.com
>>
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>>
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20160719/a0fd8c8e/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list