<html><body><span style="font-family:Verdana; color:#000000; font-size:10pt;">Hello Mr. Jordanov,<br><br>I emailed you the scripts directly.<br><br>Thanks again for your help,<br><br>David<br><br>
<blockquote webmail="1" style="border-left: 2px solid blue; margin-left: 8px; padding-left: 8px; font-size: 10pt; color: black; font-family: verdana;">
-------- Original Message --------<br>
Subject: Re: Clone Function Called with each Authentication Request<br>
From: Boian Jordanov <bjordanov@orbitel.bg><br>
Date: Fri, October 10, 2008 12:38 am<br>
To: FreeRadius developers mailing list<br>
<freeradius-devel@lists.freeradius.org><br>
Cc: Boian Jordanov <bjordanov@orbitel.bg><br>
<br>
See the comments below.<br>
<br>
Best Regards,<br>
Boian Jordanov<br>
SNE<br>
Orbitel - Next Generation Telecom<br>
tel. +359 2 4004 723<br>
tel. +359 2 4004 002<br>
<br>
<br>
<br>
<br>
On Oct 10, 2008, at 9:08 AM, David D wrote:<br>
<br>
><br>
> Hi,<br>
><br>
> I'm testing an Authentication script and it's working great.<br>
><br>
> I need to optimize the performance and move some data stored in <br>
> files into<br>
> memory.<br>
> To accomplish this, we planned on placing the routine to read the <br>
> data into<br>
> memory in the clone<br>
> function, so it would load once.<br>
><br>
>> From reading the documentation and the posts I could find.<br>
> It's my understanding that the CLONE function will only be called <br>
> once for<br>
> each new thread created.<br>
<br>
Correct. This a place in which you should do per thread initialization <br>
of some variables like database connections etc.<br>
<br>
><br>
><br>
> In my testing I've noticed that the CLONE function get's called for <br>
> each<br>
> Authentication request, so it appears<br>
> the thread is initialized for each call, even though I see it load <br>
> up all 32<br>
> threads when radiusd initializes.<br>
><br>
<br>
There is something wrong. If you can share with me your script <br>
probably i can help.<br>
<br>
> The debug output shows all 32 threads calling the clone function and <br>
> then it<br>
> shows the clone function called again<br>
> when an authentication request comes in.<br>
><br>
> Any ideas on what I could check or change?<br>
><br>
> VERSION:<br>
> radius0-dev:/etc/raddb # radiusd -v<br>
> radiusd: FreeRADIUS Version 1.1.3, for host x86_64-unknown-linux- <br>
> gnu, built<br>
> on May 8 2007 at 19:12:20<br>
<br>
Please upgrade your freeradius to more newer version.<br>
<br>
<br>
-<br>
List info/subscribe/unsubscribe? See <a href="http://www.freeradius.org/list/devel.html" target="_blank" mce_href="http://www.freeradius.org/list/devel.html">http://www.freeradius.org/list/devel.html</a><br>
</blockquote></span></body></html>