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: fee84,bf2ea6865e8fab59 X-Google-Attributes: gidfee84,public X-Google-Thread: 10650a,bf2ea6865e8fab59 X-Google-Attributes: gid10650a,public From: Rik van Riel Subject: Re: Lots of Threads = Death? Date: 1998/05/06 Message-ID: #1/1 X-Deja-AN: 350752035 Sender: usenet@fys.ruu.nl (News system Tijgertje) References: <35464b25.29547822@149.174.211.108> <35472D6A.145BBC1A@brighttiger.com> <355120c7.4143478@149.174.211.108> Mime-Version: 1.0 Reply-To: Rik van Riel X-Nntp-Posting-Host: anx1p1.fys.ruu.nl X-Sender: riel@mirkwood.dummy.home Content-Type: TEXT/PLAIN; charset=US-ASCII Organization: Linux memory management wishlist. Newsgroups: comp.unix.osf.osf1,comp.unix.internals,comp.unix.programmer On Tue, 5 May 1998, Ron Heiby wrote: > After receiving the advice here on the other tunables to increase, I decided > that I wanted to push things a bit, and try up to 6000 threads. So, I > re-configured max-proc-per-user to 8000. When I again did a "/sbin/sysconfig > -q proc", I expected to see 8000 for max-proc-per-user and > max-threads-per-user, but I did not. Instead, each was set to 4107. > > Now, I think that 4107 is an interesting number for two reasons. > > 1) It isn't what I asked for. > 2) It isn't a power of 2 (loved by us computer types). > > Instead, it's (37 * 37 * 3). I don't get it. > > 1) Why isn't my system getting tuned for the values I'm setting? > 2) How do I tune my system for more than 4107 threads? 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... Rik. +-------------------------------------------+--------------------------+ | Linux: - LinuxHQ MM-patches page | Scouting webmaster | | - kswapd ask-him & complain-to guy | Vries cubscout leader | | http://www.phys.uu.nl/~riel/ | | +-------------------------------------------+--------------------------+