Hello People,

I've just setup a squid proxy at a local school. It's been humming along fine for two weeks now. Today it started to work rather sporadically.

I'm using squid-2.5.STABLE10-transparent from ports, on an OpenBSD snapshot from 1st september (too be upgraded to -stable on Nov 1st).

/var/squid/logs/cache.log tells me this:

2005/10/14 08:56:55| storeDiskdSend OPEN: (35) Resource temporarily unavailable 2005/10/14 08:56:55| storeDiskdSend: msgsnd: (35) Resource temporarily unavailable

So for some reason diskd is choking. Through google I found this thread, discussing the same symptoms:

http://squid.bilkent.edu.tr/mail-archive/squid-users/200212/0354.html

As told there, it's problably IPC settings that should be adjusted. The squid FAQ tells me to fiddle in the kernel config:

http://www.squid-cache.org/Doc/FAQ/FAQ-22.html#ss22.6

But since GENERIC is holy for me, I'd rather not poke around and have to run a custom kernel. Is there any other way to change these values?

With config -e /bsd I found that SHMSEG and SHMMAXPGS could be changed, but I'm not sure these are the ones I should touch? In sysctl there seems to be a bunch of values in kern.seminfo. But again, those are not named like the values in the squid FAQ.

Any tips/pointers on how to make squid a more happy fish?

====

squid.conf:

http_port 8080
icp_port 0
cache_mem 64 MB

cache_effective_user _squid
cache_effective_group _squid

logfile_rotate 0

pid_filename /var/run/squid.pid

visible_hostname proxy.media.sundsvall.se

httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on

cache_replacement_policy heap GDSF
memory_replacement_policy heap GDSF

cache_dir diskd /var/squid/cache 4096 16 256
cache_access_log /var/squid/logs/access.log
cache_log /var/squid/logs/cache.log
cache_store_log none

acl net-media src 192.168.5.0/24
acl net-hvfoto src 192.168.4.0/24

acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443
acl Safe_ports port 80
acl CONNECT method CONNECT

# Only allow cachemgr access from localhost
http_access allow manager localhost
http_access deny manager
# Deny requests to unknown ports
http_access deny !Safe_ports
# Deny CONNECT to other than SSL ports
http_access deny CONNECT !SSL_ports

http_access allow net-media
http_access allow net-hvfoto
http_access allow localhost
http_access deny all

======

dmesg:

OpenBSD 3.8 (GENERIC) #137: Thu Sep  1 17:41:20 MDT 2005
    [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel(R) Celeron(R) CPU 2.53GHz ("GenuineIntel" 686-class) 2.53 GHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,TM2,CNXT-ID
real mem  = 258084864 (252036K)
avail mem = 228601856 (223244K)
using 3176 buffers containing 13008896 bytes (12704K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(00) BIOS, date 02/09/05, BIOS32 rev. 0 @ 0xffe90
apm0 at bios0: Power Management spec V1.2
apm0: APM get power status: unknown error code? (83)
apm0: flags 30102 dobusy 0 doidle 1
pcibios0 at bios0: rev 2.1 @ 0xf0000/0x10000
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfeb00/240 (13 entries)
pcibios0: no compatible PCI ICU found: ICU vendor 0x8086 product 0x2640
pcibios0: Warning, unable to fix up PCI interrupt routing
pcibios0: PCI bus #4 is the last bus
bios0: ROM list: 0xc0000/0xa800! 0xca800/0x1800!
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "Intel 915G/P/GV Host" rev 0x04
ppb0 at pci0 dev 1 function 0 "Intel 915G/P/GV PCIE" rev 0x04
pci1 at ppb0 bus 1
vga1 at pci0 dev 2 function 0 "Intel 915G/P/GV Video" rev 0x04: aperture at 0xdff00000, size 0x8000000
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
vendor "Intel", unknown product 0x2782 (class display subclass miscellaneous, rev 0x04) at pci0 dev 2 function 1 not configured
ppb1 at pci0 dev 28 function 0 "Intel 82801FB PCIE" rev 0x04
pci2 at ppb1 bus 2
bge0 at pci2 dev 0 function 0 "Broadcom BCM5751" rev 0x01, BCM5750 A1 (0x4001): irq 11 address 00:11:43:7d:7f:0d
brgphy0 at bge0 phy 1: BCM5750 10/100/1000baseT PHY, rev. 0
ppb2 at pci0 dev 28 function 1 "Intel 82801FB PCIE" rev 0x04
pci3 at ppb2 bus 3
uhci0 at pci0 dev 29 function 0 "Intel 82801FB USB" rev 0x04: irq 9
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1 at pci0 dev 29 function 1 "Intel 82801FB USB" rev 0x04: irq 5
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2 at pci0 dev 29 function 2 "Intel 82801FB USB" rev 0x04: irq 3
usb2 at uhci2: USB revision 1.0
uhub2 at usb2
uhub2: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
uhci3 at pci0 dev 29 function 3 "Intel 82801FB USB" rev 0x04: irq 10
usb3 at uhci3: USB revision 1.0
uhub3 at usb3
uhub3: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub3: 2 ports with 2 removable, self powered
ehci0 at pci0 dev 29 function 7 "Intel 82801FB USB" rev 0x04: irq 9
usb4 at ehci0: USB revision 2.0
uhub4 at usb4
uhub4: Intel EHCI root hub, rev 2.00/1.00, addr 1
uhub4: 8 ports with 8 removable, self powered
ppb3 at pci0 dev 30 function 0 "Intel 82801BA AGP" rev 0xd4
pci4 at ppb3 bus 4
rl0 at pci4 dev 0 function 0 "Realtek 8139" rev 0x10: irq 11 address 00:e0:33:33:1e:30
rlphy0 at rl0 phy 0: RTL internal phy
skc0 at pci4 dev 1 function 0 "D-Link Systems DGE-530T" rev 0x11: irq 10
skc0: Marvell Yukon (0x1)
sk0 at skc0 port A: address 00:11:95:dd:27:42
eephy0 at sk0 phy 0: Marvell 88E1011 Gigabit PHY, rev. 3
ichpcib0 at pci0 dev 31 function 0 "Intel 82801FB LPC" rev 0x04: PM disabled
pciide0 at pci0 dev 31 function 1 "Intel 82801FB IDE" rev 0x04: DMA, channel 0 configured to compatibility, channel 1 configured to compatibility
atapiscsi0 at pciide0 channel 0 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <LITE-ON, CD-ROM LTN-489S, 8DS2> SCSI0 5/cdrom removable
cd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
pciide0: channel 1 ignored (disabled)
pciide1 at pci0 dev 31 function 2 "Intel 82801FB SATA" rev 0x04: DMA, channel 0 configured to native-PCI, channel 1 configured to native-PCI
pciide1: using irq 5 for native-PCI interrupt
wd0 at pciide1 channel 0 drive 0: <ST340014AS>
wd0: 16-sector PIO, LBA48, 38146MB, 78125000 sectors
wd0(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 5
"Intel 82801FB SMBus" rev 0x04 at pci0 dev 31 function 3 not configured
isa0 at ichpcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
spkr0 at pcppi0
sysbeep0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
npx0 at isa0 port 0xf0/16: using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pccom0: console
biomask f76d netmask ff6d ttymask ffef
pctr: user-level cycle counter enabled
dkcsum: wd0 matches BIOS drive 0x80
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302

Reply via email to