Problems creating many hundreds of threads in a single program

Per-thread stack size can be limited setting at the session level to 1MB like this:

  • bash: ulimit -s 1024
  • tcsh/zsh: limit stacksize 1024

Default on my system this size is set to ~10MB.

Setting it to 1MB all the 1000 threads was successfully created.

In python the default value is read at the compile time (THREAD_STACK_MIN is set ~8MB in 2.4.3 for example) and there is no possibility to adjust it at run-time https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1454481&group_id=5470

-- JakubMoscicki - 21 Jun 2006

Edit | Attach | Watch | Print version | History: r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r1 - 2006-06-21 - JakubMoscicki
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    ArdaGrid All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2022 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback