[OpenSIPS-Devel] SF.net SVN: opensips:[8491] trunk
    Bogdan-Andrei Iancu 
    bogdan at opensips.org
       
    Tue Oct 18 12:47:46 CEST 2011
    
    
  
Hi Ovidiu,
Looking at the code, I'm not sure this really works :D
You see, the pkg mem is initialized as first step in main() function 
(line 1034) (using the value pkg_mem_size) while the "-M" param is 
handled later (line 1062) (to update the pkg_mem_size value from param).
So, pkg will be init all the time with the default value. Or is 
something I mis here ?
Regards,
Bogdan
On 10/17/2011 04:45 PM, Ovidiu Sas wrote:
> Revision: 8491
>            http://opensips.svn.sourceforge.net/opensips/?rev=8491&view=rev
> Author:   osas
> Date:     2011-10-17 13:45:24 +0000 (Mon, 17 Oct 2011)
> Log Message:
> -----------
> core: pkg mem is configurable via -M switch:
>        -M nr : Size of pkg memory allocated in Megabytes
>
> Modified Paths:
> --------------
>      trunk/config.h
>      trunk/globals.h
>      trunk/help_msg.h
>      trunk/main.c
>      trunk/mem/mem.c
>      trunk/mem/mem.h
>
> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
>
>
> _______________________________________________
> Devel mailing list
> Devel at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/devel
>
-- 
Bogdan-Andrei Iancu
OpenSIPS eBootcamp - 19th of September 2011
OpenSIPS solutions and "know-how"
    
    
More information about the Devel
mailing list