HomeFreeBSD

1.Add sysctls to control KSE resource allocation.
rS107006Unpublished

Unpublished Commit ยท Learn More

No further details are available.

Description

1.Add sysctls to control KSE resource allocation.

kern.threads.max_threads_per_proc
kern.threads.max_groups_per_proc

2.Temporary disable borrower thread stash itself as

owner thread's spare thread in thread_exit(). there
is a race between owner thread and borrow thread:
an owner thread may allocate a spare thread as this:

if (td->td_standin == NULL)

		td->standin = thread_alloc();
  but thread_alloc() can block the thread, then a borrower
  thread would possible stash it self as owner's spare
  thread in thread_exit(), after owner is resumed, result
  is a thread leak in kernel, double check in owner can
  avoid the race, but it may be ugly and not worth to do.

Details

Provenance
davidxuAuthored on
Parents
rS107005: MFC revision 1.109: Sync usage() with reality and sort it alphabetically.
Branches
Unknown
Tags
Unknown

Event Timeline