zoneli

2006-11-26 Thread Рихад Гаджиев
Hi! From time to time our moderately loaded Squid 2.6.3 (~500 simultaneous 
clients, ~5000 req/min) stops responding all of a sudden, its status being 
'zoneli' according to top(1), and nothing short of a machine reboot can bring 
it back to life. I think it's the growing load on the box that causes this, 
because the problem never showed up when the load was lower. I upped certain 
kernel variables through /boot/loader.conf, it seemed to help in the sense that 
zoneli now occurs much less frequently (like once in a month). Can you please 
give any suggestions on how to fix the problem? If you should need any further 
info, please let me know.

$ uname -r
6.0-RELEASE-p15
$ grep '^CPU:' /var/run/dmesg.boot
CPU: AMD Athlon(tm) 64 Processor 3000+ (1808.81-MHz 686-class CPU)
$ grep -E '^(real|avail) memory' /var/run/dmesg.boot
real memory  = 2147418112 (2047 MB)
avail memory = 2097672192 (2000 MB)
$ grep -v -e ^# -e '^$' /boot/loader.conf
kern.maxdsiz=1153433600
kern.maxssiz=201326592
kern.ipc.nmbclusters=65536
kern.ipc.msgmnb=8192
kern.ipc.msgssz=64
kern.ipc.msgtql=2048
$ grep -v -e ^# -e '^$' /etc/sysctl.conf
net.inet.tcp.sendspace=131072
net.inet.tcp.recvspace=131072
kern.ipc.somaxconn=1024
kern.ipc.maxsockbuf=524288


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


tcpwrappers SSH

2006-10-25 Thread Рихад Гаджиев
A comment in /etc/hosts.allow states that:
Wrapping sshd(8) is not normally a good idea

Why? Is it because such restrictions should naturally be made using a 
firewall/PAM/sshd itself/whatever? I think GENERIC sshd wouldn't have been 
built with libwrap support in the first place. Or?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


newsyslog.conf wrong count of archive logs

2006-06-01 Thread Рихад Гаджиев
I'm using newsyslog (FreeBSD 6.0-RELEASE-p6) to manage Apache's monthly log 
files. The 
relevant /etc/newsyslog.conf entry is
# logfilename  [owner:group]mode count size when  flags [/pid_file] 
[sig_num]
/var/log/httpd/*log root:wheel  644  2 *$M1D3   GB 
/var/run/httpd.pid 
30
newsyslog.conf(5) says: 
count   Specify the maximum number of archive files which may exist.
 This does not consider the current log file.

But there already are 3 months worth of archive logs (*.0 *.1 *.2), excluding 
the 
current log. What did I do wrong?

Thank you.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]