HomeFreeBSD

eliminate locking surrounding ui_vmsize and swap reserve by using atomics

Description

eliminate locking surrounding ui_vmsize and swap reserve by using atomics

Change swap_reserve and swap_total to be in units of pages so that
swap reservations can be done using only atomics instead of using a single
global mutex for swap_reserve and a single mutex for all processes running
under the same uid for uid accounting.

Results in mmap speed up and a 70% increase in brk calls / second.

Reviewed by: alc@, markj@, kib@
Approved by: re (delphij@)
Differential Revision: https://reviews.freebsd.org/D16273

Details

Provenance
mmacyAuthored on Oct 5 2018, 5:50 AM
Parents
rG9bc603bd20e6: Revert r339174: Move 32-bit compat support for FIODGNAME to the right place.
Branches
Unknown
Tags
Unknown

Event Timeline