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]

Reply via email to