Re: help with huge memory consumption??
- From: talon@xxxxxxxxxxxxxxxx (Michel Talon)
- Date: Sun, 4 Mar 2007 17:58:54 +0000 (UTC)
Robert Redelmeier <redelm@xxxxxxxxxxxxxxx> wrote:
Rainer Weikusat <rainer.weikusat@xxxxxxxxx> wrote in part:
By definition, threads run in the same address space and each
thread as access to the memory all other threads have access
to, too (assuming it has a pointer pointing into first).
If all the memory is marked as shared (with the exception of
the stacks) this puts a lot of memory pressure on the heap.
A special thread-safe heap-only malloc() may be needed.
But precisely, modern mallocs are programmed to be thread friendly, for
example by having several arenas for allocating memory, so that several
threads can allocate concurrently without locking. I think this is the
case for Linux, Solaris and FreeBSD.
--
Michel TALON
.
- Follow-Ups:
- Re: help with huge memory consumption??
- From: phil-news-nospam
- Re: help with huge memory consumption??
- References:
- help with huge memory consumption??
- From: Dan Miller
- Re: help with huge memory consumption??
- From: Robert Redelmeier
- Re: help with huge memory consumption??
- From: Bin Chen
- Re: help with huge memory consumption??
- From: Robert Redelmeier
- Re: help with huge memory consumption??
- From: Rainer Weikusat
- Re: help with huge memory consumption??
- From: Robert Redelmeier
- Re: help with huge memory consumption??
- From: Rainer Weikusat
- Re: help with huge memory consumption??
- From: Robert Redelmeier
- Re: help with huge memory consumption??
- From: Rainer Weikusat
- Re: help with huge memory consumption??
- From: Robert Redelmeier
- Re: help with huge memory consumption??
- From: Rainer Weikusat
- Re: help with huge memory consumption??
- From: Robert Redelmeier
- help with huge memory consumption??
- Prev by Date: Re: help with huge memory consumption??
- Next by Date: Re: help with huge memory consumption??
- Previous by thread: Re: help with huge memory consumption??
- Next by thread: Re: help with huge memory consumption??
- Index(es):
Relevant Pages
|