Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Zheng Li <li@pps.jussieu.fr>
To: caml-list@inria.fr
Subject: Re: Problems spawning threads
Date: Tue, 18 Dec 2007 18:05:08 +0100	[thread overview]
Message-ID: <878x3s3pdn.fsf@pps.jussieu.fr> (raw)
In-Reply-To: <4767EDDA.2030302@gmail.com>


Hi

Edgar Friendly <thelema314@gmail.com> writes:
> My laptop does a just fine job making and using 503 native threads with
> 512M ram (and lots of big programs already filling that up).  I don't
> believe that their (likely beefier) benchmarking system hits a VM limit
> mine doesn't.
Just made a test, the upper bound of my machine is 381 threads (without
event sync, just start threads and hold). You probably have to wrap some
C function to set pthread's stack size to ~ PTHREAD_STACK_MIN.

> The code should create 503 threads and 503 channels hooked together in a
> ring, and *then* it starts a message (a simple counter) going around the
> ring until it's counted high enough (normal test goes to 20,000,000
> iirc), and then the last task to get the message prints its position.
> None of the threads finish while thread creation continues.
My mistake.

-- 
Zheng Li
http://www.pps.jussieu.fr/~li


  reply	other threads:[~2007-12-18 17:19 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-18  5:18 Edgar Friendly
2007-12-18  5:23 ` Edgar Friendly
2007-12-18  8:03 ` [Caml-list] " Michael Wohlwend
2007-12-18 10:59 ` Zheng Li
2007-12-18 15:57   ` [Caml-list] " Edgar Friendly
2007-12-18 17:05     ` Zheng Li [this message]
2007-12-18 17:40       ` Edgar Friendly
2007-12-18 16:22 ` [Caml-list] " Xavier Leroy
2007-12-18 17:04 ` Jon Harrop

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878x3s3pdn.fsf@pps.jussieu.fr \
    --to=li@pps.jussieu.fr \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox