diff options
author | ngie <ngie@FreeBSD.org> | 2016-01-27 06:24:19 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2016-01-27 06:24:19 +0000 |
commit | a1b53b920d16bc7b413aea094827f963b1bb84b0 (patch) | |
tree | f8cea168779df28212155dd78bf759055cec49b9 /contrib/llvm/lib/CodeGen/MachineLoopInfo.cpp | |
parent | 9e39febd77269eef9d0d16682859af23e9cc83ac (diff) | |
download | FreeBSD-src-a1b53b920d16bc7b413aea094827f963b1bb84b0.zip FreeBSD-src-a1b53b920d16bc7b413aea094827f963b1bb84b0.tar.gz |
Adjust vm.max_wired in order to avoid hitting EAGAIN artificially
Set vm.max_wired to INT_MAX in :mlock_err, :mlock_mmap, and :mlock_nested to
avoid hitting EAGAIN artificially on the system when running the tests
Require root privileges in order to set the sysctl
Add allow_sysctl_side_effects to require.config as this test is now adjusting
sysctls that can affect the global system state
Unlike the version submitted by cem in OneFS, this version uses a scratch file
to save/restore the previous value of the sysctl. I _really_, _really_ wish
there were better hooks in atf/kyua for per test suite setup/teardown -- using
a file is kludgy, but it's the best I can do to avoid situations where (for
instance), sysctl(3) may fail and drop a core outside the kyua sandbox.
Based on a patch submitted by cem, but modified to take business logic out of
ATF_TP_ADD_TCS(3).
Differential Revision: https://reviews.freebsd.org/D4779
MFC after: 1 month
Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'contrib/llvm/lib/CodeGen/MachineLoopInfo.cpp')
0 files changed, 0 insertions, 0 deletions