Running out of pipe map KVA is a rare case, so reorder checks
accordingly, presuming that calling priv_check() is more expensive than
the calculation. We might further consider precomputing
maxpipekva / 100 at boot time to avoid the division here.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Skipped - Unit
Tests Skipped - Build Status
Buildable 70785 Build 67668: arc lint + arc unit
Event Timeline
Comment Actions
You could divide by 128 if this is so important.
Could you please explain the motivation for the changes?
Comment Actions
I was looking at sources of frequent priv_check() calls from unprivileged processes, trying to see if any are avoidable. These calls might do some non-trivial work if MAC hooks are installed.