[squid-users] Some troubles with squid (memory allocation)

From: Artem Stepanoff <Artem.Stepanoff@dont-contact.us>
Date: Mon, 12 Jul 2004 10:43:47 +0300

 Hello.
I have written the bug report, but nobody had answered me.
That's why I'll repeat here with some additional information.
I think that it's not a problem with squid, but the problem
with my configuration.

Memory: real memory = 3791126528 (3702272K bytes)
        avail memory = 3693056000 (3606500K bytes)
Processor: CPU: AMD Athlon(tm) MP 2400+ (2000.08-MHz 686-class CPU) - dual
OS: FreeBSD 4.10-RELEASE
           

#-------------------------------------------------------------------

Options in the kernel, concerning squid:

#-------------------------------------------------------------------
options NMBCLUSTERS=32768
options NMBUFS=131072

options MAXDSIZ="(2496*1024*1024)"
options MAXSSIZ="(1024*1024*1024)"
options DFLDSIZ="(1248*1024*1024)"
#options VM_KMEM_SIZE="(512*1024*1024)"

options MSGMNB=16384 # max characters per message queue
options MSGMNI=41 # max number of message queue identifiers
options MSGSEG=4096 # max number of message segments in the system
options MSGSSZ=64 # size of a message segment MUST be power of 2
options MSGTQL=4096 # max amount of messages in the system

options SHMALL=262144 # max amount of shared memory (bytes)
#options SHMMAX="(SHMMAXPGS*PAGE_SIZE+1)"
options SHMMAX=268435456

# max shared memory segment size (bytes)
options SHMMNI=33 # max number of shared memory identifiers
options SHMSEG=128 # max shared memory segments per process

pseudo-device gre
#-------------------------------------------------------------------

#-------------------- Some options in configuraion file -------------------
cache_mem 256 MB
cache_swap_low 93
cache_swap_high 97
maximum_object_size 256 MB
maximum_object_size_in_memory 512 KB
request_header_max_size 20 KB

ipcache_size 16384
ipcache_low 90
ipcache_high 95
cache_replacement_policy heap LFUDA

cache_dir diskd /cache1 105000 16 256 Q1=72 Q2=64
cache_dir diskd /cache2 105000 16 256 Q1=72 Q2=64

#--------------------------------------------------------------------------

#----------------- CORE ---------------------------------------------------

10:42[p0]root@enceladus#/home/squid/core>gdb /usr/local/sbin/squid squid.core
GNU gdb 4.18 (FreeBSD)
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-unknown-freebsd"...Deprecated bfd_read called at /usr/src/gnu/usr.bin/binutils/gdb/../../../../contrib/gdb/gdb/dbxread.c line 2627 in elfstab_build_psymtabs
Deprecated bfd_read called at /usr/src/gnu/usr.bin/binutils/gdb/../../../../contrib/gdb/gdb/dbxread.c line 933 in fill_symbuf

Core was generated by `squid'.
Program terminated with signal 6, Abort trap.
Reading symbols from /usr/lib/libcrypt.so.2...done.
Reading symbols from /usr/lib/libm.so.2...done.
Reading symbols from /usr/lib/libc.so.4...done.
Reading symbols from /usr/libexec/ld-elf.so.1...done.
#0 0x8816cfc4 in kill () from /usr/lib/libc.so.4
(gdb) where
#0 0x8816cfc4 in kill () from /usr/lib/libc.so.4
#1 0x881ae93e in abort () from /usr/lib/libc.so.4
#2 0x80a359e in death (sig=11) at tools.c:303
#3 0xbfbfffac in ?? ()
#4 0x80b4975 in heap_delete (hp=0x81fa7c0, elm=0xa000d80) at heap.c:178
#5 0x80b49ee in heap_extractmin (hp=0x81fa7c0) at heap.c:227
#6 0x80a80af in heap_purgeNext (walker=0x208905d0) at heap/store_repl_heap.c:192
#7 0x80abe31 in storeDiskdDirMaintain (SD=0x82080a0) at diskd/store_dir_diskd.c:1526
#8 0x809d0cb in storeMaintainSwapSpace (datanotused=0x0) at store.c:834
#9 0x8068e9d in eventRun () at event.c:147
#10 0x8085505 in main (argc=2, argv=0xbfbffb78) at main.c:739

#-------------------------------------------------------------------------

Thanks.

-- 
 --------------------------------------------------------------
 Artem Stepanoff   |   System Administrator   |     KESH-RIPE
 ISP "National Bureau of Information"         |     KESH-UANIC
 --------------------------------------------------------------
Received on Mon Jul 12 2004 - 01:43:50 MDT

This archive was generated by hypermail pre-2.1.9 : Sun Aug 01 2004 - 12:00:01 MDT