Freeradius performance settings or bug?

Jeremiah Millay jmillay at sover.net
Tue Apr 22 15:42:48 CEST 2008


Hi,
I'm seeing some odd behavior running freeradius-1.1.7 in a freebsd 6.3 
environment. I see a lot of these in the radius log:

Tue Apr 22 09:27:44 2008 : Error: Discarding duplicate request from 
client arc3.wnskvtao.sover.net:1645 - ID: 208 due to unfinished request 1267
Tue Apr 22 09:27:44 2008 : Error: Discarding duplicate request from 
client arc3.wnskvtao.sover.net:1645 - ID: 209 due to unfinished request 1268

as well as the cputime constantly increasing the longer I leave radiusd 
running:

last pid: 34247;  load averages:  0.29,  0.32,  
0.39                                                                                                                                   
up 4+22:29:48  09:27:05
30 processes:  2 running, 28 sleeping
CPU states:  2.6% user,  0.0% nice, 10.5% system,  0.0% interrupt, 86.8% 
idle
Mem: 17M Active, 447M Inact, 173M Wired, 20K Cache, 112M Buf, 2618M Free
Swap: 4096M Total, 4096M Free

  PID USERNAME      PRI NICE   SIZE    RES STATE  C   TIME   WCPU COMMAND
34011 root           20    0  9852K  6904K kserel 2   8:09  1.61% radiusd
34011 root           96    0  9852K  6904K select 0   8:09  0.00% radiusd
34011 root           20    0  9852K  6904K kserel 2   8:09  0.00% radiusd
34011 root           20    0  9852K  6904K kserel 2   8:09  0.00% radiusd
34011 root           20    0  9852K  6904K ksesig 0   8:09  0.00% radiusd
34011 root           98    0  9852K  6904K CPU0   0   8:09  0.00% radiusd

Looking at older messages posted to the list, I see Alan suggests that 
the duplicate requests are related to radiusd not replying quickly 
enough due to either having hostname lookups enabled or due to sql 
backend slowness. I'm not using sql in my configuration and do not have 
hostname lookups enabled.
Are there any settings I could tweak in radiusd.conf to help? Maybe 
there is a bug I am not aware of relating to running freeradius under 
freebsd (I know there are some SMP related issues).

Here are some configuration snippets that may be relevant:

cleanup_delay = 2
max_requests = 10240
hostname_lookups = no
thread pool {
    start_servers = 20
    max_servers = 32
    min_spare_servers = 3
    max_spare_servers = 10
    max_requests_per_server = 0
}

Any help or suggestions would be greatly appreciated.
Jeremiah





More information about the Freeradius-Users mailing list