Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Feb 2004 09:11:15 +0200
From:      Alexandr Kovalenko <never@nevermind.kiev.ua>
To:        davidxu@viatech.com.cn
Cc:        freebsd-threads@freebsd.org
Subject:   Re: Question about threads [beaver challenge]
Message-ID:  <20040214071115.GA77411@nevermind.kiev.ua>

next in thread | raw e-mail | index | archive | help
Dung Patrick wrote:

> >Would you please explain this parameter:
> >
> >kern.threads.max_groups_per_proc
> >
> It is used by system scope thread in libpthread, whenever you
> create a system scope thread, kernel creates a dedicated thread
> for the user thread, it also eats a kernel thread group, for programs
> heavily use system scope thread, the sysctl value should be increased.
> current kern.threads.max_threads_per_proc not only accounts process
> scope thread which are being blocked in kernel, but also accounts
> system scope thread, so you should increase the sysctl value at same
> time, otherwise too much system scope threads can block process scope
> thread because the thread limit is hit and no upcall will be scheduled,
> so UTS does not have chance to run, if UTS can not run, then process
> scope thread can not be scheduled in userland, result is process
> is suddenly stopped. The default values are too low for some
> applications.
> we might increase it before 5.3 release.

What ratio between groups and threads should be?

P.S. I'm not subsctibed to -threads, so, please Cc: me.

-- 
NEVE-RIPE, will build world for food
Ukrainian FreeBSD User Group
http://uafug.org.ua/


Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040214071115.GA77411>