Signal 11 on dansguardian threads and freebsd

Evangelos Souglakos evansg at otenet.gr
Mon Aug 10 13:53:59 UTC 2009


Using the latest version of dansguardian web filter daemon i still can
see signal 11 errors to messages.

pid 42464 (dansguardian), uid 106: exited on signal 11
pid 42603 (dansguardian), uid 106: exited on signal 11
pid 42511 (dansguardian), uid 106: exited on signal 11
pid 42447 (dansguardian), uid 106: exited on signal 11
pid 42407 (dansguardian), uid 106: exited on signal 11
pid 42812 (dansguardian), uid 106: exited on signal 11

This problem occurs to all my servers running freebsd 7.1 x64 and
dansguardian with squid 3.0. 

I think that it is a sysctl fine tuning (maybe) but i still cannot find
the solution.

All of my servers have 8gb ram and dual intel xeon cpus.

Some of my tunning attemtps to sysctl.conf

net.inet.tcp.sendspace=65536
net.inet.tcp.recvspace=65536
net.inet.ip.redirect=0
net.inet.tcp.syncookies=1
net.inet.tcp.delayed_ack=0
kern.coredump=0
kern.maxfiles=204800
kern.maxfilesperproc=200000
kern.maxprocperuid=32768
kern.ipc.somaxconn=4096
kern.ipc.maxsockbuf=2097152
kern.ipc.maxsockets=204800
kern.ipc.nmbclusters=32768
net.inet.udp.maxdgram=57344
net.inet.icmp.icmplim=500

#Port Ranges
net.inet.ip.portrange.last=65535
net.inet.ip.portrange.first=10000

#nat purposes
net.inet.ip.forwarding=1

net.inet.tcp.blackhole=0

kern.ipc.shm_use_phys=1
vm.pmap.shpgperproc=20574
kern.maxvnodes=400000



and /boot/loader.conf 

kern.ipc.msgmnb=8192
kern.ipc.msgmni=40
kern.ipc.msgseg=512
kern.ipc.msgssz=64
kern.ipc.msgtql=2048
kern.ipc.shmseg=512
kern.ipc.shmmni=512


I have used the following dansguardian children options (if you have any
clue about these)

---------------------------------

 # sets the maximum number of processes to spawn to handle the incoming
# connections.  Max value usually 250 depending on OS.
# On large sites you might want to try 180.
maxchildren = 990


# sets the minimum number of processes to spawn to handle the incoming
connections.
# On large sites you might want to try 32.
minchildren = 64


# sets the minimum number of processes to be kept ready to handle
connections.
# On large sites you might want to try 8.
minsparechildren = 32


# sets the minimum number of processes to spawn when it runs out
# On large sites you might want to try 10.
preforkchildren = 16


# sets the maximum number of processes to have doing nothing.
# When this many are spare it will cull some of them.
# On large sites you might want to try 64.
maxsparechildren = 256


# sets the maximum age of a child process before it croaks it.
# This is the number of connections they handle before exiting.
# On large sites you might want to try 10000.
maxagechildren = 10000

--------------------------------

I would be grateful if you can help me.

Thanks a lot,

-- 
=============================================================================
Evangelos Souglakos           OTE S.A Internet Service Provider 
Unix Systems Engineer         Systems Design Department
Phone: +302106116282          OTE Megaro Building 2A8
=============================================================================

Great minds have purposes, others have wishes.




More information about the freebsd-threads mailing list