Freeradius slow start

absolutely_free at libero.it absolutely_free at libero.it
Thu Jun 4 01:36:43 CEST 2015


Hi,
I am using freeradius 2.0.4 (official deb package) - unfortunately, this is a very old server with Debian 5.
It's a VMware virtual machine with 3 GB ram and 4 vCPU.

I noticed that freeradius take very long time to start.
Here is strace output of starting pid:

# strace -p 3889
Process 3889 attached - interrupt to quit
brk(0x12cba000)                         = 0x12cba000
brk(0x12cdb000)                         = 0x12cdb000
brk(0x12cfc000)                         = 0x12cfc000
brk(0x12d1d000)                         = 0x12d1d000
brk(0x12d3e000)                         = 0x12d3e000
brk(0x12d5f000)                         = 0x12d5f000
brk(0x12d80000)                         = 0x12d80000
brk(0x12da1000)                         = 0x12da1000
brk(0x12dc2000)                         = 0x12dc2000
brk(0x12de3000)                         = 0x12de3000
brk(0x12e04000)                         = 0x12e04000
brk(0x12e25000)                         = 0x12e25000
munmap(0xb6caa000, 1052672)             = 0
brk(0x12e46000)                         = 0x12e46000
time(NULL)                              = 1433373461
brk(0x12e6b000)                         = 0x12e6b000
ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
_llseek(0, 0, 0xbfe6de50, SEEK_CUR)     = -1 ESPIPE (Illegal seek)
ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
_llseek(1, 0, 0xbfe6de50, SEEK_CUR)     = -1 ESPIPE (Illegal seek)
ioctl(2, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
_llseek(2, 0, 0xbfe6de50, SEEK_CUR)     = -1 ESPIPE (Illegal seek)
ioctl(2, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
_llseek(2, 0, 0xbfe6de50, SEEK_CUR)     = -1 ESPIPE (Illegal seek)
ioctl(18, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) =                                                                                                               0
_llseek(18, 0, 0xbfe6ddf0, SEEK_CUR)    = -1 ESPIPE (Illegal seek)
ioctl(18, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) =                                                                                                               0
ioctl(18, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) =                                                                                                               0
_llseek(18, 0, 0xbfe6ddf0, SEEK_CUR)    = -1 ESPIPE (Illegal seek)
ioctl(18, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) =                                                                                                               0
ioctl(19, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) =                                                                                                               0
_llseek(19, 0, 0xbfe6ddf0, SEEK_CUR)    = -1 ESPIPE (Illegal seek)
ioctl(19, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) =                                                                                                               0
ioctl(19, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) =                                                                                                               0
_llseek(19, 0, 0xbfe6ddf0, SEEK_CUR)    = -1 ESPIPE (Illegal seek)
ioctl(19, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) =                                                                                                               0
brk(0x12e8c000)                         = 0x12e8c000
brk(0x12ead000)                         = 0x12ead000
brk(0x12ece000)                         = 0x12ece000
brk(0x12eef000)                         = 0x12eef000
brk(0x12f10000)                         = 0x12f10000
brk(0x12f31000)                         = 0x12f31000
mmap2(NULL, 135168, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x                                                                                                              b6e6d000
brk(0x12f52000)                         = 0x12f52000
brk(0x12f73000)                         = 0x12f73000
brk(0x12f94000)                         = 0x12f94000
brk(0x12fb5000)                         = 0x12fb5000
brk(0x12fd6000)                         = 0x12fd6000
brk(0x12ff7000)                         = 0x12ff7000
mremap(0xb6e6d000, 135168, 266240, MREMAP_MAYMOVE) = 0xb6e2c000
brk(0x13018000)                         = 0x13018000
brk(0x13039000)                         = 0x13039000
brk(0x1305a000)                         = 0x1305a000
brk(0x1307b000)                         = 0x1307b000
brk(0x1309c000)                         = 0x1309c000
brk(0x130bd000)                         = 0x130bd000
brk(0x130de000)                         = 0x130de000
brk(0x130ff000)                         = 0x130ff000
brk(0x13120000)                         = 0x13120000
brk(0x13141000)                         = 0x13141000
brk(0x13162000)                         = 0x13162000
brk(0x13183000)                         = 0x13183000
brk(0x131a4000)                         = 0x131a4000
mremap(0xb6e2c000, 266240, 528384, MREMAP_MAYMOVE) = 0xb6dab000
brk(0x131c5000)                         = 0x131c5000
brk(0x131e6000)                         = 0x131e6000
brk(0x13207000)                         = 0x13207000
...
...
(many similar lines)
brk(0x1f12d000)                         = 0x1f12d000
brk(0x1f14e000)                         = 0x1f14e000
brk(0x1f16f000)                         = 0x1f16f000
munmap(0xb6caa000, 1052672)             = 0
time(NULL)                              = 1433373478
open("/usr/lib/freeradius/rlm_acct_unique.la", O_RDONLY) = -1 ENOENT (No such fi                                                                                                              le or directory)
open("/lib/rlm_acct_unique.la", O_RDONLY) = -1 ENOENT (No such file or directory                                                                                                              )
open("/usr/lib/rlm_acct_unique.la", O_RDONLY) = -1 ENOENT (No such file or direc                                                                                                              tory)
open("/lib/i486-linux-gnu/rlm_acct_unique.la", O_RDONLY) = -1 ENOENT (No such fi                                                                                                              le or directory)
open("/usr/lib/i486-linux-gnu/rlm_acct_unique.la", O_RDONLY) = -1 ENOENT (No suc                                                                                                              h file or directory)
open("/usr/local/lib/rlm_acct_unique.la", O_RDONLY) = -1 ENOENT (No such file or                                                                                                               directory)
access("/usr/lib/freeradius/rlm_acct_unique.so", R_OK) = 0
open("/usr/lib/freeradius/rlm_acct_unique.so", O_RDONLY) = 9
read(9, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`\7\0\0004\0\0\0\\"...,                                                                                                               512) = 512
fstat64(9, {st_mode=S_IFREG|0644, st_size=6508, ...}) = 0
mmap2(NULL, 9340, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 9, 0) = 0xb6e8                                                                                                              b000
mmap2(0xb6e8d000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRIT                                                                                                              E, 9, 0x1) = 0xb6e8d000
close(9)                                = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, chil                                                                                                              d_tidptr=0xb71976f8) = 3940
exit_group(0)                           = ?
Process 3889 detached


Since I notice a very high load on this server (freeradius seems to be to root cause, according to top), I'm looking for some help.
Thank you




More information about the Freeradius-Users mailing list