Re: help with huge memory consumption??
- From: Rainer Weikusat <rainer.weikusat@xxxxxxxxx>
- Date: Fri, 02 Mar 2007 14:47:45 +0100
Robert Redelmeier <redelm@xxxxxxxxxxxxxxx> writes:
Bin Chen <binary.chen@xxxxxxxxx> wrote in part:
A libc guy tell me the cause. It is stack. For default stack
size is 8MB for each thread. He said there is some method
to decrease the default stack size but I don't know how to.
`man setrlimit`
The stack size of a thread can be set during creation with the help of
an appropriately initialized thread attribute
(pthread_attr_setstacksize).
8 MB isn't unreasonable. Most of it will be shared.
A virtual page that hasn't been used yet will have no physical page
associated with it. But how can a stack page possibly be shared and
with whom?
.
- Follow-Ups:
- Re: help with huge memory consumption??
- From: Robert Redelmeier
- 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
- help with huge memory consumption??
- Prev by Date: Re: help with huge memory consumption??
- Next by Date: Re: Does rtlinux always require MMU?
- Previous by thread: Re: help with huge memory consumption??
- Next by thread: Re: help with huge memory consumption??
- Index(es):
Relevant Pages
|
Loading