From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fc89c,bf2ea6865e8fab59 X-Google-Attributes: gidfc89c,public X-Google-Thread: 10650a,bf2ea6865e8fab59 X-Google-Attributes: gid10650a,public X-Google-Thread: fee84,bf2ea6865e8fab59 X-Google-Attributes: gidfee84,public From: heiby_u@falkor.chi.il.us (Ron Heiby) Subject: Re: Lots of Threads = Death? Date: 1998/05/07 Message-ID: <35521d12.26355802@149.174.211.108>#1/1 X-Deja-AN: 351223479 Content-Transfer-Encoding: 7bit References: <35464b25.29547822@149.174.211.108> <35472D6A.145BBC1A@brighttiger.com> <355120c7.4143478@149.174.211.108> Content-Type: text/plain; charset=us-ascii Organization: Strategis Consulting Inc. MIME-Version: 1.0 Newsgroups: comp.unix.osf.osf1,comp.unix.internals,comp.unix.programmer Rik van Riel 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....