From: Ralf Hildebrandt <Ralf.Hildebrandt@charite.de>
To: linux-kernel@vger.kernel.org
Subject: 2.4.20-aa and LARGE Squid process -> SIGSEGV
Date: Fri, 20 Dec 2002 12:48:37 +0100 [thread overview]
Message-ID: <20021220114837.GC13591@charite.de> (raw)
Hi!
Right now we're trying to implement a large scale Squid proxy on
Debian/testing. We're using 2.4.20-aa and Squid-2.4.7-1.
We're encountering sporadic crashes of the squid children (SIGSEGV,
signal 11). We were investigating in several directions:
* the Kernel has highmem support enabled (we have 2GB RAM and 4 GB swap)
* we tried different kernels (with or without highmem support)
* we tried another squid version (Squid-2.4.6 from the "stable"
distribution of Debian)
* We recompiled Squid using gcc-3.2, since -- according to the FAQ --
squid may crash with signal 11 with optimization enabled when using
gcc-2.95.4 (Debian uses gcc-2.95.4, but still build squid using -O!)
* we closely observed dmesg, messages and syslog. No oddities were
found. Squid simply crashes.
* we tried both ufs and aufs as cache filesystems, since the FAQ tells
us the async I/O may have bugs.
* We use two identical machines -- the crash happens on both machines.
Same CPU, disks, RAM, manufacturer, heck -- even the same series!
To no avail -- Squid simply crashes from time to time. It's
impossible to predict when.
Then we wrote a program which allocates large amounts of memory:
--- snip ---
#include <stdlib.h>
#include <stdio.h>
main(){
char *buf;
long c;
FILE *fp;
fp = fopen("/dev/null","a");
while(1){
buf = (char *)malloc(100000000);
c = random();
if (c > 100000000)
continue;
fprintf(fp,"%c",buf[c]);
printf("hier\n");
}
}
--- snip ---
And we found that this program will be killed with a SIGSEGV as well.
So, what are we doing wrong? Since we have 2GB RAM and 4GB swap,
shouldn't the machine start to swap and execute the program above
successfully?
# cat /proc/meminfo
total: used: free: shared: buffers: cached:
Mem: 2119065600 2111709184 7356416 0 299008 1438240768
Swap: 4293509120 0 4293509120
MemTotal: 2069400 kB
MemFree: 7184 kB
MemShared: 0 kB
Buffers: 292 kB
Cached: 1404532 kB
SwapCached: 0 kB
Active: 387796 kB
Inactive: 1317064 kB
HighTotal: 1703872 kB
HighFree: 2960 kB
LowTotal: 365528 kB
LowFree: 4224 kB
SwapTotal: 4192880 kB
SwapFree: 4192880 kB
BigFree: 0 kB
# cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 15
model : 2
model name : Intel(R) Xeon(TM) CPU 2.80GHz
stepping : 7
cpu MHz : 2785.629
cache size : 512 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm
bogomips : 5557.45
# cat /proc/swaps
Filename Type Size Used Priority
/dev/sda6 partition 2096440 0 -1
/dev/sda7 partition 2096440 0 -2
--
Ralf Hildebrandt (Im Auftrag des Referat V a) Ralf.Hildebrandt@charite.de
Charite Campus Mitte Tel. +49 (0)30-450 570-155
Referat V a - Kommunikationsnetze - Fax. +49 (0)30-450 570-916
I've got the perfect system. I never need to do maintenance on it, or
software upgrades, patches, or anything. It's great. It never wakes me up,
or gets hacked into. It's completely perfect. That was the first step in
my plan to build the perfect Postfix system.
The second step is to plug it in.
next reply other threads:[~2002-12-20 11:52 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-12-20 11:48 Ralf Hildebrandt [this message]
2002-12-20 22:37 ` 2.4.20-aa and LARGE Squid process -> SIGSEGV J.A. Magallon
2002-12-20 22:57 ` Ralf Hildebrandt
2002-12-21 0:13 ` J.A. Magallon
2002-12-21 7:52 ` Ralf Hildebrandt
2002-12-21 8:28 ` Reuben Farrelly
2002-12-21 9:06 ` Ralf Hildebrandt
2002-12-21 9:17 ` Reuben Farrelly
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20021220114837.GC13591@charite.de \
--to=ralf.hildebrandt@charite.de \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.