From: "Earle R. Nietzel" <nietzel@rhinobox.org>
To: "Vladimir G. Ivanovic" <vladimir@acm.org>
Cc: da_alchemist@yahoo.com, linux-smp <linux-smp@vger.kernel.org>
Subject: Re: How do I increase threads per user?
Date: 17 Apr 2003 17:48:14 +0200 [thread overview]
Message-ID: <1050594494.27761.4.camel@home> (raw)
In-Reply-To: <200304171514.h3HFEc1j015621@bach.leonora.org>
On Thu, 2003-04-17 at 17:14, Vladimir G. Ivanovic wrote:
> I compiled and ran the code you submitted below. All it does is count up
> the number of threads that it has created:
>
> [160000+ lines of output deleted for brevity's sake]
> Time's up!
> Thread #85321 scheduled.
> Time's up!
> Thread #85322 scheduled.
> Time's up!
> Thread #85323 scheduled.
> Time's up!
> Thread #85324 scheduled.
> Time's up!
> Thread #85325 scheduled.
> ^C <-- I got bored here
>
> Perhaps you intended to have something other than 0 as the argument to
> the constructor of Reminder. Using 30, I can create ~1400 threads before
> the VM crashes (Red Hat 8.0, 2.4.18-27smp, glibc 2.2.93cw, Sun Java
> 1.4.1_02).
Using 30 I created ~3660 threads before the VM crashed with an
OutOfMemory exception (RedHat 9, 2.4.20-9smp, Sun Java 1.4.1_02).
Remember you also have to think about how the kernel splits up memory
for user space and kernel space, I don't know how java implements its
thread environment so I can't speak intelligently on the subject.
--
Earle R. Nietzel <nietzel@rhinobox.org>
prev parent reply other threads:[~2003-04-17 15:48 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-08 23:33 How do I increase threads per user? da_alchemist
2003-04-16 22:11 ` Vladimir G. Ivanovic
2003-04-17 15:14 ` Vladimir G. Ivanovic
2003-04-17 15:48 ` Earle R. Nietzel [this message]
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=1050594494.27761.4.camel@home \
--to=nietzel@rhinobox.org \
--cc=da_alchemist@yahoo.com \
--cc=linux-smp@vger.kernel.org \
--cc=vladimir@acm.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