Re: [pfSense Support] squid diskd 70.10
I will look into using the sysctl.conf infrastructure that we have. I have a feeling that some of these values need to be passed from the boot loader, however. We'll see. Scott On 7/25/05, Bill Marquette [EMAIL PROTECTED] wrote: Uhhh, what's that gonna do to the rest of us that don't use squid? Is this going to make the kernel use more memory? --Bill On 7/24/05, Scott Ullrich [EMAIL PROTECTED] wrote: Alright, I'll recompile the kernel with: 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 system Any objections? Speak now or forever have a modified kernel pfSense users! Scott On 7/24/05, Bachman Kharazmi [EMAIL PROTECTED] wrote: from what I can read in the squid faq your kernel need to get rebuilt. http://www.squid-cache.org/Doc/FAQ/FAQ-22.html#ss22.6 The messages between Squid and diskd are 32 bytes for 32-bit CPUs and 40 bytes for 64-bit CPUs. Thus, MSGSSZ should be 32 or greater. You may want to set it to a larger value, just to be safe. your vaule is set to kern.ipc.msgssz: 8 which is whey too low. please read http://ezine.daemonnews.org/200209/squid.html that also gives good suggestions gl /bk On 7/24/05, William David Armstrong [EMAIL PROTECTED] wrote: I have upgrade 70.8 to 70.10 and I get this error try usind a diskd in squid a squid try restart but continues not work. I version 70.8 diskd work ok. not get any this errors, I try in a another machine. I belive is a diskd options is not include or not correct configured in kernel. option MSGMNI=41 option MSGMNB=16384 option MSGSEG=2049 option MSGSSZ=64 option MSGTQL=512 option MHMSEG=16 option MHMMNI=32 option MHMMAX=2097152 option SHMALL=4096 option MAXFILES=8192 option NMBCLUSTERS=32768 I found this in a 70.10 $ sysctl -a kern.ipc.msgmni: 40 kern.ipc.msgmnb: 2048 kern.ipc.msgseg: 2048 kern.ipc.msgssz: 8 kern.ipc.msgtql: 40 MHMSEG not found MHMMNI not found MHMMAX not found kern.ipc.shmall: 8192 kern.maxfiles: 16384 kern.maxfilesperproc: 16384 kern.ipc.nmbclusters: 4800 it´s confirm ??? I send a log off errors $cat /usr/loca/suiqd/log/cache.log 2005/07/24 03:54:06| storeDiskdSend OPEN: (35) Resource temporarily unavailable 2005/07/24 03:54:06| storeDiskdSend: msgsnd: (35) Resource temporarily unavailable 2005/07/24 03:54:06| storeDiskdSend OPEN: (35) Resource temporarily unavailable 2005/07/24 03:54:06| storeDiskdSend: msgsnd: (35) Resource temporarily unavailable 2005/07/24 03:54:06| storeDiskdSend OPEN: (35) Resource temporarily unavailable 2005/07/24 03:54:06| storeDiskdSend: msgsnd: (35) Resource temporarily unavailable 2005/07/24 03:54:06| storeDiskdSend OPEN: (35) Resource temporarily unavailable 2005/07/24 03:54:06| storeDiskdSend: msgsnd: (35) Resource temporarily unavailable 2005/07/24 03:54:06| storeDiskdSend OPEN: (35) Resource temporarily unavailable 2005/07/24 03:54:06| storeDiskdSend: msgsnd: (35) Resource temporarily unavailable 2005/07/24 03:54:06| storeDiskdSend OPEN: (35) Resource temporarily unavailable 2005/07/24 03:54:07| storeDiskdSend: msgsnd: (35) Resource temporarily unavailable 2005/07/24 03:54:07| storeDiskdSend OPEN: (35) Resource temporarily unavailable 2005/07/24 03:54:07| storeDiskdSend: msgsnd: (35) Resource temporarily unavailable 2005/07/24 03:54:07| storeDiskdSend OPEN: (35) Resource temporarily unavailable 2005/07/24 03:54:07| storeDiskdSend: msgsnd: (35) Resource temporarily unavailable 2005/07/24 03:54:07| assertion failed: diskd/store_io_diskd.c:494: ++send_errors 100 2005/07/24 03:54:10| Starting Squid Cache version 2.5.STABLE10 for i386-portbld-freebsd6.0... 2005/07/24 03:54:10| Process ID 2670 2005/07/24 03:54:10| With 1735 file descriptors available 2005/07/24 03:54:10| DNS Socket created at 0.0.0.0, port 60294, FD 7 2005/07/24 03:54:10| Adding nameserver 201.10.120.2 from /etc/resolv.conf 2005/07/24 03:54:10| Adding nameserver 201.10.128.3 from /etc/resolv.conf 2005/07/24 03:54:10| Unlinkd pipe opened on FD 12 2005/07/24 03:54:10| Swap maxSize 307200 KB, estimated 23630 objects 2005/07/24 03:54:10| Target number of buckets: 1181 2005/07/24 03:54:10| Using 8192 Store buckets 2005/07/24 03:54:10| Max Mem size: 8192 KB 2005/07/24 03:54:10| Max Swap size:
Re: [pfSense Support] squid diskd 70.10
Are we having a kernel compiled specifically for squid diskd support here? Can we not just put the appropriate sysctl tunable values in /boot/loader.conf and then reboot to effect the changes? Best regards, Miles --- Scott Ullrich [EMAIL PROTECTED] wrote: Alright, I'll recompile the kernel with: 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 system Any objections? Speak now or forever have a modified kernel pfSense users! Scott On 7/24/05, Bachman Kharazmi [EMAIL PROTECTED] wrote: from what I can read in the squid faq your kernel need to get rebuilt. http://www.squid-cache.org/Doc/FAQ/FAQ-22.html#ss22.6 The messages between Squid and diskd are 32 bytes for 32-bit CPUs and 40 bytes for 64-bit CPUs. Thus, MSGSSZ should be 32 or greater. You may want to set it to a larger value, just to be safe. your vaule is set to kern.ipc.msgssz: 8 which is whey too low. please read http://ezine.daemonnews.org/200209/squid.html that also gives good suggestions gl /bk On 7/24/05, William David Armstrong [EMAIL PROTECTED] wrote: I have upgrade 70.8 to 70.10 and I get this error try usind a diskd in squid a squid try restart but continues not work. I version 70.8 diskd work ok. not get any this errors, I try in a another machine. I belive is a diskd options is not include or not correct configured in kernel. option MSGMNI=41 option MSGMNB=16384 option MSGSEG=2049 option MSGSSZ=64 option MSGTQL=512 option MHMSEG=16 option MHMMNI=32 option MHMMAX=2097152 option SHMALL=4096 option MAXFILES=8192 option NMBCLUSTERS=32768 I found this in a 70.10 $ sysctl -a kern.ipc.msgmni: 40 kern.ipc.msgmnb: 2048 kern.ipc.msgseg: 2048 kern.ipc.msgssz: 8 kern.ipc.msgtql: 40 MHMSEG not found MHMMNI not found MHMMAX not found kern.ipc.shmall: 8192 kern.maxfiles: 16384 kern.maxfilesperproc: 16384 kern.ipc.nmbclusters: 4800 it´s confirm ??? I send a log off errors $cat /usr/loca/suiqd/log/cache.log 2005/07/24 03:54:06| storeDiskdSend OPEN: (35) Resource temporarily unavailable 2005/07/24 03:54:06| storeDiskdSend: msgsnd: (35) Resource temporarily unavailable 2005/07/24 03:54:06| storeDiskdSend OPEN: (35) Resource temporarily unavailable 2005/07/24 03:54:06| storeDiskdSend: msgsnd: (35) Resource temporarily unavailable 2005/07/24 03:54:06| storeDiskdSend OPEN: (35) Resource temporarily unavailable 2005/07/24 03:54:06| storeDiskdSend: msgsnd: (35) Resource temporarily unavailable 2005/07/24 03:54:06| storeDiskdSend OPEN: (35) Resource temporarily unavailable 2005/07/24 03:54:06| storeDiskdSend: msgsnd: (35) Resource temporarily unavailable 2005/07/24 03:54:06| storeDiskdSend OPEN: (35) Resource temporarily unavailable 2005/07/24 03:54:06| storeDiskdSend: msgsnd: (35) Resource temporarily unavailable 2005/07/24 03:54:06| storeDiskdSend OPEN: (35) Resource temporarily unavailable 2005/07/24 03:54:07| storeDiskdSend: msgsnd: (35) Resource temporarily unavailable 2005/07/24 03:54:07| storeDiskdSend OPEN: (35) Resource temporarily unavailable 2005/07/24 03:54:07| storeDiskdSend: msgsnd: (35) Resource temporarily unavailable 2005/07/24 03:54:07| storeDiskdSend OPEN: (35) Resource temporarily unavailable 2005/07/24 03:54:07| storeDiskdSend: msgsnd: (35) Resource temporarily unavailable 2005/07/24 03:54:07| assertion failed: diskd/store_io_diskd.c:494: ++send_errors 100 2005/07/24 03:54:10| Starting Squid Cache version 2.5.STABLE10 for i386-portbld-freebsd6.0... 2005/07/24 03:54:10| Process ID 2670 2005/07/24 03:54:10| With 1735 file descriptors available 2005/07/24 03:54:10| DNS Socket created at 0.0.0.0, port 60294, FD 7 2005/07/24 03:54:10| Adding nameserver 201.10.120.2 from /etc/resolv.conf 2005/07/24 03:54:10| Adding nameserver 201.10.128.3 from /etc/resolv.conf 2005/07/24 03:54:10| Unlinkd pipe opened on FD 12 2005/07/24 03:54:10| Swap maxSize 307200 KB, estimated 23630 objects 2005/07/24 03:54:10| Target number of buckets: 1181 2005/07/24 03:54:10| Using 8192 Store buckets 2005/07/24 03:54:10| Max Mem size: 8192 KB 2005/07/24 03:54:10| Max Swap size: 307200 KB 2005/07/24 03:54:10| Rebuilding storage in /usr/local/squid/cache (DIRTY) 2005/07/24 03:54:10| Using Least Load store dir selection 2005/07/24 03:54:10| Set Current Directory to /tmp 2005/07/24 03:54:10| Loaded Icons. 2005/07/24 03:54:10| Accepting HTTP connections at 0.0.0.0, port 3128, FD 14. 2005/07/24