Re: help with huge memory consumption??
- From: "Bin Chen" <binary.chen@xxxxxxxxx>
- Date: 2 Mar 2007 04:42:23 -0800
On Mar 2, 8:20 pm, Robert Redelmeier <red...@xxxxxxxxxxxxxxx> wrote:
Bin Chen <binary.c...@xxxxxxxxx> wrote in part:
It is caused by pthread_create, I wrote a simple program and notice
the output the same of you, I don't know whether is it a bug:
[EXTRACT] for (i = 0;i < 1024;i ++)
if (pthread_create(&my_thread, NULL, &thread_proc, NULL) != 0)
The VmData increasing very fast, after a while:
VmData: 123108 kB
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.
.
- 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
- help with huge memory consumption??
- Prev by Date: Re: Porting linux 2.4 on a new arm platform
- Next by Date: Re: Porting linux 2.4 on a new arm platform
- Previous by thread: Re: help with huge memory consumption??
- Next by thread: Re: help with huge memory consumption??
- Index(es):
Relevant Pages
|