rlm_perl multiple processes/threads behavior
Nick Rogers
ncrogers at gmail.com
Thu Sep 18 17:56:10 CEST 2014
On Tue, Sep 16, 2014 at 1:18 PM, Alan DeKok <aland at deployingradius.com>
wrote:
> Nick Rogers wrote:
> > Now I understand that rlm_perl uses the same
> > freeradius thread management that everything else does.
>
> Yes. It's simpler, and doesn't have problems.
>
> > My problem is that my freeradius rlm_perl installation no longer spawns
> > multiple instances of the perl process, effectively causing my server to
> > be single threaded, which has begun to cause performance issues at some
> > of my larger sites with increased load.
>
> It's more that the module used to spawn multiple interpretors. This
> means extra overhead, etc.
>
> > I do not have perl with multiplicity or ithreads compiled, as this
> > causes issues with other perl applications running on the same server.
> > My question is, is there a way to support multiple instances of the
> > rlm_perl interpreter without having ithreads or multiplicity compiled
> > with perl?
>
> One way is to build Perl libraries specifically for FreeRADIUS.
>
> > Is there a way for freeradius to simply launch a perl process for every
> > freeradius server thread, instead of all threads relying on the same
> > rlm_perl process? I am not interested in using perl threads or having
> > multiple perl interpreters within the same perl process. I would really
> > appreciate some clarification if this is possible or not.
>
> I don't think it ever spawned multiple Perl *processes*. It always
> used just one.
>
> You may be able to convert the module back to using a separate
> interpretor per thread. I'm not familiar with Perl programming, so I
> can't say more.
>
Thanks for the clarification and insights!
>
> Alan DeKok.
> -
> List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20140918/21db0d94/attachment.html>
More information about the Freeradius-Users
mailing list