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)
Jan 19 2024, 10:15 PM
Unknown Object (File)
Dec 28 2023, 4:58 PM
Unknown Object (File)
Dec 20 2023, 1:27 AM
Unknown Object (File)
Nov 29 2023, 5:39 PM
Unknown Object (File)
Nov 5 2023, 10:45 PM
Unknown Object (File)
Oct 6 2023, 12:16 PM
Unknown Object (File)
Sep 1 2023, 11:31 PM
Unknown Object (File)
Sep 1 2023, 11:29 PM
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