rlm_sql: %{sql:<long query>} - length limit

Frank Cusack fcusack at fcusack.com
Sat Apr 21 20:27:47 CEST 2007


On April 21, 2007 6:02:41 PM +0200 Alan DeKok <aland at deployingradius.com> 
wrote:
> Alan DeKok wrote:
>>   This is one place where garbage collection would make the code MUCH
>> easier.
>
>   Or, memory pools.  Start off with a 1K or 2K pool for a REQUEST*, and
> allocate any REQUEST specific things from there, including VALUE_PAIRs.
>  It would mean that the pool code would have to be in libradius, and
> that the pairfoo() interface would be updated to take a memory pool
> pointer.
>
>   It would be just repetitive edits to get that done, though.  I think
> the pool code should be pretty simple.  Let's see...

I would try tcmalloc (Linux) or mtmalloc (Solaris) first.
-frank



More information about the Freeradius-Devel mailing list