HomeFreeBSD

Postpone sx_sunlock(&proctree_lock) on fork until after allproc is dropped.

Description

Postpone sx_sunlock(&proctree_lock) on fork until after allproc is dropped.

There is a significant contention on the lock during -j 128 package build.
This change drops total wait time on this lock by 60%.

Details

Provenance
mjgAuthored on
Parents
rS329419: Tidy up kern_wait6
Branches
Unknown
Tags
Unknown