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

Peter happy at hour.com
Wed Jul 20 17:13:04 MSD 2016


On 20/07/16 08:27, freeswitch-users-request at lists.freeswitch.org wrote:
> Date: Wed, 20 Jul 2016 00:35:51 +0200
> From: Stanislav Sinyagin <ssinyagin at gmail.com>
> Subject: Re: [Freeswitch-users] inefficient build scripts for Debian
> 	8, 32bit packages ?
> To: FreeSWITCH Users Help <freeswitch-users at lists.freeswitch.org>
> Message-ID:
> 	<CACOYK=imxbQZ6x+sZFbsKLWB-cOAxV4Fk_REsHgL+PoGMSyTHA at mail.gmail.com>
> Content-Type: text/plain; charset=UTF-8
>
> actually in the scripts at
> https://freeswitch.org/confluence/display/FREESWITCH/Building+debs+for+other+architectures
> the build utilities are executed with -z1 option, which should result
> in minimal compression.  Did you use that in your build procedure?
>
>

I apologise Stanislav,

the memory issue is not with your script but the invoked debian/rules script by Travis Cross, when building the sound packages 

I had to change the compression level in line 90 on a 512MiB RAM machine:

     xz -6ev $(pkg)_$(ver).orig.tar

compression level was -9e resulting in allocating 674 MiB for the operation.







>
>
> On Tue, Jul 19, 2016 at 10:57 PM, Peter <happy at hour.com> wrote:
>> Thanks Steven and Luis for your lightning fast responses!
>>
>> Reading the man pages for xz was indeed a good suggestion.
>> So with 512MiB  RAM, I got away with 6e for the compression level :-)
>>
>>
>> On 19/07/16 20:05, freeswitch-users-request at lists.freeswitch.org wrote:
>>> 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).
>>
>> _________________________________________________________________________
>> 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
>
>
> ------------------------------
>
> Message: 2
> Date: Tue, 19 Jul 2016 21:44:10 -0300
> From: ?talo Rossi <italo at freeswitch.org>
> Subject: Re: [Freeswitch-users] limit usage?
> To: FreeSWITCH Users Help <freeswitch-users at lists.freeswitch.org>
> Message-ID:
> 	<CABMX_w-Sqq+QKGssBOrwpuLsTLSa9PsxoJ2f2c0Pjg4Oa1nmhA at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> It?s already documented
>
> https://freeswitch.org/confluence/display/FREESWITCH/mod_dptools%3A+Limit#mod_dptools:Limit-VariablesThatAffectLimit
>
> On Mon, Jul 18, 2016 at 7:04 PM, Stanislav Sinyagin <ssinyagin at gmail.com>
> wrote:
>
>> I keep a list of variables that need yet to be documented. I'll add this
>> one too.
>>
>> But in general, source code is your best friend ))
>>
>> On 18 Jul 2016 22:18, "Yu Boot" <yu at yu-boot.ru> wrote:
>>
>>> Thanks!  limit_ignore_transfer=true solves my problem.
>>>
>>> Never seen that parameter in wiki etc. Kind of yet another FS black magic
>>> :)
>>>
>>> 18.07.2016 17:47, ?talo Rossi ?????:
>>>
>>> Hard to say without logs.
>>>
>>> But a common mistake is to transfer the call to another extension and by
>>> default this causes would cause drop the limit, you may need to set
>>> limit_ignore_transfer=true
>>>
>>> On Mon, Jul 18, 2016 at 7:40 AM, Yu Boot <yu at yu-boot.ru> wrote:
>>>
>>>> I want to use "limit" dialplan app for calls count.
>>>>
>>>> dialplan:
>>>>
>>>> ....
>>>>
>>>> <action application="limit" data="hash peername allcalls 1000"/>
>>>> .....
>>>>
>>>>
>>>> Then, in fs_cli:
>>>>
>>>>  > limit_usage hash peername allcalls
>>>> 0
>>>>
>>>> Why zero? How to use this correctly?
>>>>
>>>>
>>>> _________________________________________________________________________
>>>> 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
>>>>
>>>
>>>
>>> --
>>> ?talo Rossi
>>> italo at freeswitch.org
>>>
>>>
>>> _________________________________________________________________________
>>> Professional FreeSWITCH Consulting Services: consulting at freeswitch.orghttp://www.freeswitchsolutions.com
>>>
>>> Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://confluence.freeswitch.orghttp://www.cluecon.com
>>>
>>> FreeSWITCH-users mailing listFreeSWITCH-users at lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://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
>>>
>> _________________________________________________________________________
>> 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
>>
>
>




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