Good on you Paul,
I have included your instructions in the goodies directory of the next
release, plus something in the FAQ pointing at it.
Thanks again.
Cheers.
On May 14, 10:20am, Paul Thornton wrote:
> Subject: (RADIATOR) Out of Memory (BSDI) Fix
> Hi all,
>
> If there is anyone running BSDI and are receiving an out of Memory
> problems when executing the server then here is the definitive answer to
> fixing the problem.
>
> Simply see how much memory Radiusd is running first. Use the unlimit
> command before executing radiusd so that it will run ok for now. Leave it
> for a while as the size may grow within a short period.
>
> radiusd on our server uses approximately 21M.
>
> In your Kernel Add these lines.
>
> Note # We are running with 512Mb of ram so you would need to adjust these
> figures to the amount of Ram you have! MAXDSIZ is the main culprit.
>
> -----SNIP------
> options NMBCLUSTERS=4096
> options NKMEMCLUSTERS=4096
> options "KMEMSIZE=\(32*1024*1024\)"
> options "DFLDSIZ=\(160*1024*1024\)"
> options "DFLSSIZ=\(16*1024*1024\)"
> options "MAXDSIZ=\(384*1024*1024\)"
> options CHILD_MAX=512
> options OPEN_MAX=256
> -----END SNIP-----
>
> Recompile your kernel but don't reboot yet.
>
> This is the main key to setting you datasize limit up to more than the
> default 16Mb that BSDI chooses to use. (Thankyou Mike!) Allow yourself
> some room for radius memory growth. We use 21M allowed 32M.
>
> Edit the login.conf file most likely in /etc/login.conf
>
> Locate the Default values.
>
> I.E.
> ----
> default:\
> :path=/bin /usr/bin /usr/contrib/bin:\
> :datasize-cur=16M:\
> ----
>
> Where you see :datasize-cur=16M:\ change this to more than what Radius
> requires to run. I have set ours up to :datasize-cur=32M:\ to allow radius
> to grow if needed.
>
> Reboot the server with the new kernel / default datasize limit and
> you should be able to run radiusd from within inetd.conf, rather than
> standalone with the unlimit command or the use of RestartWrapper.
>
> Just to test it simply type limit after it reboots and you should now see
> your Datasize set to the amount of which you have in login.conf.
>
> ** THANKS Mike for the help (Your a legend)
>
> * Manually test the server by executing it at the command line before
> adding it to your inetd.conf file, just to be sure.
>
> Regards,
>
> Paul Thornton.
>
> ,- __ -, DOVE AUSTRALIA SYSADMIN TEAM
> / \___/ /__ _ _____/ \
> / _ / _ / _ \ |/ / -_) _ \ Account queries: [EMAIL PROTECTED]
> /.- \_,_/\___/___/\__/ -.\ Tech Support: [EMAIL PROTECTED]
> A U S T R A L I A Sales queries: [EMAIL PROTECTED]
> http://dove.net.au Admin queries: [EMAIL PROTECTED]
>
>
>
> ===
> To unsubscribe, email '[EMAIL PROTECTED]' with
> 'unsubscribe radiator' in the body of the message.
>-- End of excerpt from Paul Thornton
--
Mike McCauley [EMAIL PROTECTED]
Open System Consultants Pty. Ltd Unix, Perl, Motif, C++, WWW
24 Bateman St Hampton, VIC 3188 Australia http://www.open.com.au
Phone +61 3 9598-0985 Fax +61 3 9598-0955
Radiator: the most portable, flexible and configurable RADIUS server
anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT, Emerald,
Platypus, Freeside, TACACS+, PAM, external, etc etc on Unix, Win95/8,
NT, Rhapsody
===
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.