[Freeswitch-users] inefficient build scripts for Debian 8, 32bit packages ?
Peter
happy at hour.com
Tue Jul 19 20:16:16 MSD 2016
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"
--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 ....
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20160719/497b404b/attachment.html
Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users
mailing list