Re: help with huge memory consumption??
- From: Robert Redelmeier <redelm@xxxxxxxxxxxxxxx>
- Date: Sun, 04 Mar 2007 17:47:53 GMT
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.
Bugs can also propagate since all threads can trample the heap.
It won't even stop buffer overflow exploits except to the extent
that more buffers wind up on the heap. And thread generation will
need to know how many bytes of params to copy to the new stack.
-- Robert
.
- Follow-Ups:
- Re: help with huge memory consumption??
- From: Rainer Weikusat
- Re: help with huge memory consumption??
- From: Paul Pluzhnikov
- Re: help with huge memory consumption??
- From: Michel Talon
- 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
- 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
|