From: "j.random.programmer" <javadesigner@yahoo.com>
To: linux-kernel@vger.kernel.org
Subject: Re: Threading behavior in 2.6.5 may be broken ?
Date: Wed, 9 Jun 2004 22:31:07 -0700 (PDT) [thread overview]
Message-ID: <20040610053107.4952.qmail@web14201.mail.yahoo.com> (raw)
Hi all:
This is a followup to my earlier post about
threading in 2.6.5
After more experimenting, I have found the following
behavior:
Specifying the per-thread maximum stack size to
the java JVM allows one to create more threads.
For example, specifying 128k of stack per thread
(max), allows me to create 6000 threads. By
default, I think 2 MB per thread is assigned for
that thread's stack space. I don't know if the 2MB
is the default in the JVM, glibc, or the kernel.
However, even if I am using 2 MB * 10,000 threads
(=20 GB of RAM), the machine _should_ give an
out of memory error but should _not_ get totally
wedged (so that ctrl-c doesn't work in that shell
to break out of the program or ssh is inoperative
so I cannot ssh into another shell and kill the jvm).
Best regards,
--j
__________________________________
Do you Yahoo!?
Friends. Fun. Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/
next reply other threads:[~2004-06-10 5:31 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-10 5:31 j.random.programmer [this message]
-- strict thread matches above, loose matches on Subject: below --
2004-06-10 18:31 j.random.programmer
2004-06-10 4:16 j.random.programmer
2004-06-15 20:40 ` Joe Korty
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=20040610053107.4952.qmail@web14201.mail.yahoo.com \
--to=javadesigner@yahoo.com \
--cc=linux-kernel@vger.kernel.org \
/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
all inboxes | Powered by JetHome®