From: Reuben Farrelly <reuben-linux@reub.net>
To: Ralf Hildebrandt <Ralf.Hildebrandt@charite.de>,
linux-kernel@vger.kernel.org
Cc: Robert Collins <robertc@squid-cache.org>
Subject: Re: 2.4.20-aa and LARGE Squid process -> SIGSEGV
Date: Sat, 21 Dec 2002 19:28:12 +1100 [thread overview]
Message-ID: <5.2.0.9.2.20021221191530.02ade850@tornado.reub.net> (raw)
In-Reply-To: <20021221075205.GZ31070@charite.de>
No, squid is not br0ken in this fashion. If squid cannot be allocated
enough memory by the system, it logs a message and _dies_. Relevant files
to look at in your squid source are squid/lib/util.c for xcalloc() and
xmalloc().
Aside from this, if squid ever does get to the point of swapping, it is
misconfigured and your performance has just gone to hell anyway... (see
the FAQ at www.squid-cache.org)
Questions relating to squid performance and stability should really be
discussed on the squid users mailing list, you can find details on this
list at http://www.squid-cache.org/mailing-lists.html
Reuben
At 08:52 AM 21/12/2002 +0100, Ralf Hildebrandt wrote:
>* J.A. Magallon <jamagallon@able.es>:
>
> > For user space memory, there is no real OOM state. The system (glibc) just
> > does not give you the memory, returns NULL in the malloc, and it is your
> > responsibility to check malloc's return value. If you do not check it,
> > you try to access a null pointer and _bang_. So in your case, after enough
> > iterations on malloc() without free(), it returns NULL and you fall into
> > a null pointer dereference.
>
>Ergo: Squid is br0ken.
>
>--
>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
>Windows is the answer, but only if the question was 'what is the
>intellectual equivalent of being a galley slave?'
>
>-
>To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
>the body of a message to majordomo@vger.kernel.org
>More majordomo info at http://vger.kernel.org/majordomo-info.html
>Please read the FAQ at http://www.tux.org/lkml/
next prev parent reply other threads:[~2002-12-21 8:20 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-12-20 11:48 Ralf Hildebrandt
2002-12-20 22:37 ` 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 [this message]
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=5.2.0.9.2.20021221191530.02ade850@tornado.reub.net \
--to=reuben-linux@reub.net \
--cc=Ralf.Hildebrandt@charite.de \
--cc=linux-kernel@vger.kernel.org \
--cc=robertc@squid-cache.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®