Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: heiby_u@falkor.chi.il.us (Ron Heiby)
Subject: Re: Lots of Threads = Death?
Date: 1998/05/07	[thread overview]
Message-ID: <35521d12.26355802@149.174.211.108> (raw)
In-Reply-To: Pine.LNX.3.91.980506092851.28146D-100000@mirkwood.dummy.home


Rik van Riel <riel@phys.uu.nl> wrote:
>The hardware has support for 8192 LDT entries on one
>page. Unless the OS supports soft switching (there was
>a softswitching patch for Linux) you can't have more
>threads.
>
>Each thread uses two entries and the other ones are used
>by the system...

Hey, WAIT A MINUTE! If each thread requires 2, and some are used by the
system, and there are only 8192 to start with, then how do I end up getting
4107, which is greater than 8192/2?

Also, this does appear to be a per-USER limit. If I try my test to create
3000 threads in each of two processes under my user id, then I get stopped
when the second one hits the 4107 limit. If I try my test to create 3000
threads in each of two processes under different user ids, then it proceeds
beyond the 4107 limit. (I ran out of swap space before reaching 6000, but
had over 5000 at that point.)

Still looking for the answer on this one....




  parent reply	other threads:[~1998-05-07  4:00 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-04-28  4:00 Lots of Threads = Death? Ron Heiby
1998-04-28  4:00 ` Dirk Grunwald
1998-04-29  4:00   ` Jeff Denham
1998-04-29  4:00     ` Charles M Richmond
1998-04-30  4:00     ` Ron Heiby
1998-04-30  4:00       ` Darron Shaffer
1998-05-01  4:00         ` Casper H.S. Dik - Network Security Engineer
1998-05-01  4:00       ` Jeff Denham
1998-05-05  4:00     ` Ron Heiby
1998-05-06  4:00       ` Rik van Riel
1998-05-06  4:00         ` Ron Heiby
1998-05-06  4:00           ` Rik van Riel
1998-05-07  4:00         ` Ron Heiby [this message]
1998-05-08  4:00       ` Lots of Threads = Digital Unix. Period Srikanth Throvagunta
1998-05-11  4:00         ` Ron Heiby
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox