Thanks for the hint. I will test the memory and view the BIOS settings as soon as possible.
Best regards. Patrick Whyzzi schrieb: > Again I highly recommend you check the memory for problems: > > http://www.memtest86.com/ > > Another thing I've noticed that can cause strange problems: > miss-matched memory timings caused by mixture of RAM, especially if > the BIOS is set to auto detect timings. Double check the memory module > RAS/CAS timings between each module and if they are not the same, > force the timing in the BIOS from the highest timing module. I also > recommend checking to see if there is a BIOS update for your board. > > Good luck. > > PV > > As a comparison, I'm running squid-2.5.STABLE13 on a 4.0 snapshot > without issue: > > OpenBSD 4.0 (GENERIC) #1107: Sat Sep 16 19:15:58 MDT 2006 > [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC > cpu0: Intel(R) Pentium(R) 4 CPU 2.40GHz ("GenuineIntel" 686-class) 2.44 GHz > cpu0: > FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM > > > real mem = 1073217536 (1048064K) > avail mem = 970981376 (948224K) > using 4256 buffers containing 53764096 bytes (52504K) of memory > mainbus0 (root) > bios0 at mainbus0: AT/286+(ed) BIOS, date 11/10/03, BIOS32 rev. 0 @ > 0xf1e30, SMBIOS rev. 2.3 @ 0xf0040 (56 entries) > bios0: ASUSTeK Computer INC. P4PE > apm0 at bios0: Power Management spec V1.2 (BIOS mgmt disabled) > apm0: APM power management enable: unrecognized device ID (9) > apm0: APM engage (device 1): power management disabled (1) > apm0: AC on, battery charge unknown > apm0: flags b0102 dobusy 0 doidle 1 > pcibios0 at bios0: rev 2.1 @ 0xf0000/0x24b2 > pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xf23d0/224 (12 entries) > pcibios0: PCI Interrupt Router at 000:31:0 ("Intel 82371FB ISA" rev 0x00) > pcibios0: PCI bus #2 is the last bus > bios0: ROM list: 0xc0000/0xc800 0xd0000/0x7c00! 0xd8000/0x1000 > cpu0 at mainbus0 > pci0 at mainbus0 bus 0: configuration mode 1 (no bios) > pchb0 at pci0 dev 0 function 0 "Intel 82845G/GL" rev 0x02 > ppb0 at pci0 dev 1 function 0 "Intel 82845G/GL/GV/GE/PE AGP" rev 0x02 > pci1 at ppb0 bus 1 > vga1 at pci1 dev 0 function 0 "NVIDIA GeForce2 MX" rev 0xb2 > wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) > wsdisplay0: screen 1-5 added (80x25, vt100 emulation) > uhci0 at pci0 dev 29 function 0 "Intel 82801DB USB" rev 0x02: irq 12 > 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 82801DB USB" rev 0x02: irq 3 > 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 82801DB USB" rev 0x02: irq 14 > 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 > ehci0 at pci0 dev 29 function 7 "Intel 82801DB USB" rev 0x02: irq 11 > usb3 at ehci0: USB revision 2.0 > uhub3 at usb3 > uhub3: Intel EHCI root hub, rev 2.00/1.00, addr 1 > uhub3: 6 ports with 6 removable, self powered > ppb1 at pci0 dev 30 function 0 "Intel 82801BA AGP" rev 0x82 > pci2 at ppb1 bus 2 > "VIA VT6306 FireWire" rev 0x80 at pci2 dev 3 function 0 not configured > pciide0 at pci2 dev 4 function 0 "Promise PDC20376" rev 0x02: DMA > wd0 at pciide0 channel 0 drive 0: <ST380013AS> > wd0: 16-sector PIO, LBA48, 76319MB, 156301488 sectors > wd0(pciide0:0:0): using BIOS timings, Ultra-DMA mode 6 > pciide0: using irq 11 for native-PCI interrupt > bge0 at pci2 dev 5 function 0 "Broadcom BCM5702X" rev 0x02, BCM5703 A2 > (0x1002): irq 10, address 00:e0:18:bf:77:eb > brgphy0 at bge0 phy 1: BCM5703 10/100/1000baseT PHY, rev. 2 > em0 at pci2 dev 10 function 0 "Intel PRO/1000GT (82541GI)" rev 0x05: > irq 5, address 00:0e:0c:bc:33:44 > ichpcib0 at pci0 dev 31 function 0 "Intel 82801DB LPC" rev 0x02 > pciide1 at pci0 dev 31 function 1 "Intel 82801DB IDE" rev 0x02: DMA, > channel 0 configured to compatibility, channel 1 configured to > compatibility > pciide1: no compatibility interrupt for use by channel 0 > atapiscsi0 at pciide1 channel 1 drive 0 > scsibus0 at atapiscsi0: 2 targets > cd0 at scsibus0 targ 0 lun 0: <HL-DT-ST, DVD-ROM GDR8161B, 0100> SCSI0 > 5/cdrom removable > cd0(pciide1:1:0): using PIO mode 4, Ultra-DMA mode 2 > 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 > 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 > fdc0 at isa0 port 0x3f0/6 irq 6 drq 2 > fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec > biomask fb4d netmask ff6d ttymask ffef > pctr: user-level cycle counter enabled > dkcsum: wd0 matches BIOS drive 0x80 > root on wd0a > > > On 16/07/07, Patrick Hemmen <[EMAIL PROTECTED]> wrote: >> Thanks for your reply. >> I installed squid from the Package "squid-2.6.STABLE9.tgz" on OpenBSD >> 4.1-stable i386. >> Here the relevant parts of my squid.conf. >> >> cache_mem 192 MB >> maximum_object_size 16 MB >> cache_dir ufs /var/squid/cache 5000 16 256 >> >> With this cache_mem size, the squid process use 498 MB of RAM. >> In a few days I will try to run a little C-Program which allocate more >> than 512 MB and post the output here. >> >> Here my dmesg. >> >> OpenBSD 4.1 (GENERIC) #2: Tue May 29 17:53:25 CEST 2007 >> [EMAIL >> PROTECTED]:/usr/binpatch/work-binpatch-4.1/src/sys/arch/i386/compile/GENERIC >> >> cpu0: Intel Pentium III ("GenuineIntel" 686-class) 804 MHz >> cpu0:FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE >> >> >> real mem = 1073233920 (1048080K) >> avail mem = 971886592 (949108K) >> using 4278 buffers containing 53784576 bytes (52524K) of memory >> mainbus0 (root) >> bios0 at mainbus0: AT/286+ BIOS, date 11/02/00, BIOS32 rev. 0 @ 0xf0aa0, >> SMBIOS rev. 2.3 @ 0xf2930 (45 entries) >> bios0: ASUSTeK Computer INC. CUV4X >> apm0 at bios0: Power Management spec V1.2 >> apm0: AC on, battery charge unknown >> apm0: flags 30102 dobusy 0 doidle 1 >> pcibios0 at bios0: rev 2.1 @ 0xf0000/0x12e2 >> pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xf1250/144 (7 entries) >> pcibios0: PCI Interrupt Router at 000:04:0 ("VIA VT82C586 ISA" rev 0x00) >> pcibios0: PCI bus #1 is the last bus >> bios0: ROM list: 0xc0000/0xc000 >> acpi at mainbus0 not configured >> cpu0 at mainbus0 >> pci0 at mainbus0 bus 0: configuration mode 1 (no bios) >> pchb0 at pci0 dev 0 function 0 "VIA VT8605 PCI" rev 0x81 >> ppb0 at pci0 dev 1 function 0 "VIA VT8605 AGP" rev 0x00 >> pci1 at ppb0 bus 1 >> vga1 at pci1 dev 0 function 0 "ATI Rage Fury" rev 0x00 >> wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) >> wsdisplay0: screen 1-5 added (80x25, vt100 emulation) >> pcib0 at pci0 dev 4 function 0 "VIA VT82C686 ISA" rev 0x22 >> pciide0 at pci0 dev 4 function 1 "VIA VT82C571 IDE" rev 0x10: ATA66, >> channel 0 configured to compatibility, channel 1 configured to >> compatibility >> wd0 at pciide0 channel 0 drive 0: <QUANTUM FIREBALL CX10.2A> >> wd0: 16-sector PIO, LBA, 9787MB, 20044080 sectors >> wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 4 >> atapiscsi0 at pciide0 channel 1 drive 0 >> scsibus0 at atapiscsi0: 2 targets >> cd0 at scsibus0 targ 0 lun 0: <E-IDE, CD-950E/AKU, A4Q> SCSI0 5/cdrom >> removable >> cd0(pciide0:1:0): using PIO mode 4, DMA mode 2 >> uhci0 at pci0 dev 4 function 2 "VIA VT83C572 USB" rev 0x10: irq 12 >> usb0 at uhci0: USB revision 1.0 >> uhub0 at usb0 >> uhub0: VIA UHCI root hub, rev 1.00/1.00, addr 1 >> uhub0: 2 ports with 2 removable, self powered >> uhci1 at pci0 dev 4 function 3 "VIA VT83C572 USB" rev 0x10: irq 12 >> usb1 at uhci1: USB revision 1.0 >> uhub1 at usb1 >> uhub1: VIA UHCI root hub, rev 1.00/1.00, addr 1 >> uhub1: 2 ports with 2 removable, self powered >> viaenv0 at pci0 dev 4 function 4 "VIA VT82C686 SMBus" rev 0x30: HWM >> disabled >> xl0 at pci0 dev 14 function 0 "3Com 3c905C 100Base-TX" rev 0x78: irq 10, >> address 00:01:02:e3:19:86 >> exphy0 at xl0 phy 24: 3Com internal media interface >> xl1 at pci0 dev 15 function 0 "3Com 3c905 100Base-TX" rev 0x00: irq 12, >> address 00:60:08:55:98:9b >> nsphy0 at xl1 phy 24: DP83840 10/100 PHY, rev. 1 >> xl2 at pci0 dev 16 function 0 "3Com 3c905B 100Base-TX" rev 0x24: irq 5, >> address 00:a0:24:a9:1c:23 >> exphy1 at xl2 phy 24: 3Com internal media interface >> isa0 at pcib0 >> 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 >> lpt0 at isa0 port 0x378/4 irq 7 >> npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16 >> pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo >> pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo >> fdc0 at isa0 port 0x3f0/6 irq 6 drq 2 >> fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec >> biomask fb45 netmask ff65 ttymask ffe7 >> pctr: 686-class user-level performance counters enabled >> mtrr: Pentium Pro MTRR support >> dkcsum: wd0 matches BIOS drive 0x80 >> root on wd0a >> rootdev=0x0 rrootdev=0x300 rawdev=0x302 >> >> Best regards. >> Patrick >> >> >> Whyzzi schrieb: >> > Curious. Well there's not much we can say on the matter: >> > >> > 1) no dmesg >> > 2) no squid conf >> > >> > I personally recommend testing your squid server's memory for problems >> > and providing at least the whole dmesg and relevant parts of your >> > squid.conf (eg cache_mem). >> > >> > BTW: Shouldn't this be in the ports list? >> > >> > Cheers! >> > >> > On 15/07/07, Patrick Hemmen <[EMAIL PROTECTED]> wrote: >> >> Hi all, >> >> >> >> I use the squid web-proxy on a OpenBSD 4.1 i386 machine with 1024 >> MB of >> >> RAM. >> >> Squid can only allocate 512 MB of RAM. If squid tries to allocate more >> >> than that, the process kills himself and starts automatically again >> with >> >> the following message in /var/log/messages. >> >> >> >> FATAL: xcalloc: Unable to allocate 4096 blocks of 1 bytes! >> >> >> >> Squid runs under the user _squid. This user is in the login class >> >> "daemon" in which the data size is set to infinity. >> >> I also checked the file /usr/src/sys/arch/i386/include/vmparam.h where >> >> I found the line. >> >> >> >> #define MAXDSIZ (1024*1024*1024) /* max data size */ >> >> >> >> Can anybody give me a hint where I can set the maximum RAM usage of >> one >> >> process? >> >> >> >> Thanks in advance >> >> Patrick >> >> >> >> [demime 1.01d removed an attachment of type >> >> application/x-pkcs7-signature which had a name of smime.p7s] >> >> [demime 1.01d removed an attachment of type >> application/x-pkcs7-signature which had a name of smime.p7s] [demime 1.01d removed an attachment of type application/x-pkcs7-signature which had a name of smime.p7s]