Page MenuHomeFreeBSD

vm: stop taking proc lock in mmap to satisfy racct if it is disabled
ClosedPublic

Authored by mjg on Sep 17 2018, 10:24 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Dec 21, 9:28 AM
Unknown Object (File)
Mon, Nov 25, 1:52 PM
Unknown Object (File)
Nov 21 2024, 6:58 AM
Unknown Object (File)
Nov 20 2024, 7:29 PM
Unknown Object (File)
Nov 20 2024, 6:38 PM
Unknown Object (File)
Nov 17 2024, 11:29 AM
Unknown Object (File)
Nov 11 2024, 12:43 AM
Unknown Object (File)
Nov 7 2024, 10:39 AM
Subscribers

Details

Summary

Limits can be safely obtained with lim_cur from the thread. racct is compiled in but disabled by default. Note that racct enablement is a boot-only tunable.

This eliminates second most common place of taking the lock while pkg building.

Don't take the lock in mlockall either. This can be a separate commit.

There is one remaining lim_cur_proc place, but unfortunately it is being called from aio with the proc pointer. Can be fixed after 12 splits from head.

Test Plan

Booted debug kernel with and without racct compiled in/disabled.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 19634