Optimizations SQUID for diskdaemon
May 29, 2008 11:40 am SQUIDAwalnya seperti biasa, nemu error semacem ini
2008/05/25 22:44:49| storeDiskdSend: msgsnd: (35) Resource temporarily unavailable
2008/05/25 22:44:49| storeDiskdSend OPEN: (35) Resource temporarily unavailable
2008/05/25 22:44:51| storeDiskdSend: msgsnd: (35) Resource temporarily unavailable
2008/05/25 22:44:51| storeDiskdSend OPEN: (35) Resource temporarily unavailable
2008/05/25 23:45:38| sslReadClient: FD 60: read failure: (60) Operation timed out
di cache.log dan terkadang si SQUID suka mati tiba2 servicenya, cari-cari di forum dan milis squid, katanya harus ada optimize kernel untuk cache_dir yang menggunakan option diskd, dan memang kalo digunakan ufs sih ndak masalah.
Berikut parameter yang harus di tambah di kernelnya
FreeBSD
setting in: in /etc/sysctl.conf
kern.maxfilesperproc=8192
setting in the kernel config file (larger values may be needed for very busy caches):
options MSGMNB=8192 # max # of bytes in a queue
options MSGMNI=40 # number of message queue identifiers
options MSGSEG=512 # number of message segments per queue
options MSGSSZ=64 # size of a message segment
options MSGTQL=2048 # max messages in systemoptions SHMSEG=16options SHMMNI=32
options SHMMAX=2097152
options SHMALL=4096
options MAXFILES=16384
Linux
Stefan Köpsell reports that if you compile sysctl support into your kernel, then you can change the following values:
- kernel.msgmnb
- kernel.msgmni
- kernel.msgmax
Winfried Truemper reports: The default values should be large enough for most common cases. You can modify the message queue configuration by writing to these files:
- /proc/sys/kernel/msgmax
- /proc/sys/kernel/msgmnb
- /proc/sys/kernel/msgmni
selesai sudah deh, tinggal compile kernel dan restart cache_dir, Alhamdullilah cara ini sementara ampuh menghandle issue ini, ntar itu bugs ato apa yg jelas so far so good setelah melakukan optimize kernel
Ref: http://squid.biz.net.id/faq
Thanks,
~Angky R~















