Re: help with huge memory consumption??
- From: Robert Redelmeier <redelm@xxxxxxxxxxxxxxx>
- Date: Fri, 02 Mar 2007 19:15:22 GMT
Rainer Weikusat <rainer.weikusat@xxxxxxxxx> wrote in part:
The original article talked about stacks allocated for thread
within a process and I did, too. So, how can stack pages allocated
for threads withing a single process be shared with whom?
They can RO -- so long as no one writes to them. I mean that data
is shared, frozen at spawn time. And memory can be shared but not
with writing. The memory isn't shared in any back-and-forth sense
[semaphores].
AFAIK, a thread has the spawner's stack until one of them writes
to it, then the page gets copied (CoW). You can make private
stacks, but it's more work: they have to be specially allocated
and mapped with all the usual overflow worries.
-- Robert
.
- Follow-Ups:
- Re: help with huge memory consumption??
- From: David Schwartz
- Re: help with huge memory consumption??
- From: Rainer Weikusat
- Re: help with huge memory consumption??
- References:
- help with huge memory consumption??
- From: Dan Miller
- Re: help with huge memory consumption??
- From: Bin Chen
- Re: help with huge memory consumption??
- From: Dan Miller
- 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: 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
- help with huge memory consumption??
- Prev by Date: Re: NETBEUI for 2.6.x
- Next by Date: Re: pthreads stack size solution!!
- Previous by thread: Re: help with huge memory consumption??
- Next by thread: Re: help with huge memory consumption??
- Index(es):
Relevant Pages
|