Threads & Perl

Alexandr Kovalenko alexandr.kovalenko at
Fri Mar 5 15:19:54 CET 2010

On Fri, Mar 5, 2010 at 9:13 AM, Alan DeKok <aland at> wrote:
> Alexandr Kovalenko wrote:
>> I'm trying to find out if FreeRADIUS create separate Perl instance per
>> each thread (thread pool {}) (2.1.8) ?
>  See doc/ChangeLog

Cannot see there anything related to my question.

>> The main question is: will FreeRADIUS with use of rlm_perl script be
>> able to serve multiple requests simultaneously or each next request
>> should wait until previous will finish?
>  Yes.


My tests show me that only one perl instance created every time,
max_requests_per_server option (from thread pool {}) does not work at
all - FreeRADIUS does not create new instance after 3+ requests.

This is perl, v5.8.9 built for i386-freebsd-64int

Characteristics of this binary (from libperl):
  Compile-time options: MYMALLOC PERL_MALLOC_WRAP USE_64_BIT_INT

radiusd: FreeRADIUS Version 2.1.8, for host i386-portbld-freebsd8.0,
built on Feb  3 2010 at 14:04:18

1. Should I compile perl with threads to enable multiple instances?
2. With non-threaded perl, separate perl instances created?

Alexandr Kovalenko

More information about the Freeradius-Users mailing list