Re: help with huge memory consumption??



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.


.



Relevant Pages

  • Re: push pop ebp
    ... and that not using the stack seems ... suggests "Windows bug" of some kind... ... SEH is typically generated automatically by a compiler when, ... And, as this is Microsoft, then the prospect of a "oops, didn't ...
    (alt.lang.asm)
  • Re: [RosAsm example]
    ... a silly bug (didn't adjust the stack on EXIT). ... KESYS avoids useless copying by parameter pushing at all, ... parameters are passed by registers either by value or by pointer, ...
    (alt.lang.asm)
  • Re: ESP corruption bug - what CPUs are affected?
    ... You don't 'return' to protected mode from a virtual-8086 mode, ... The so-called bug is that when in real mode or in virtual-8086 ... the stack is restored to the condition ... > The patch is attached. ...
    (Linux-Kernel)
  • RE: Unhandled Exception (no pattern i can find)
    ... > the top of the stack is a Windows Process calling function. ... that you are not chasing more than one bug. ... Sysinternals.com has some freeware tool that ...
    (microsoft.public.dotnet.framework)
  • Re: weird problem with a filter
    ... I'm not new in the filter developments, I developed many filters and nobody ... anywhere) and it also crashes. ... > stack" comment by the original poster often implies that the stack itself ... > has been trashed -- that the original poster does have a bug somewhere ...
    (microsoft.public.win32.programmer.directx.video)

Quantcast