diff options
author | Enji Cooper <ngie@FreeBSD.org> | 2016-01-27 06:24:19 +0000 |
---|---|---|
committer | Enji Cooper <ngie@FreeBSD.org> | 2016-01-27 06:24:19 +0000 |
commit | 8e62f8414ea27f54669c6007db99dce4dcaf92ba (patch) | |
tree | f8cea168779df28212155dd78bf759055cec49b9 /etc/master.passwd | |
parent | b888adc78493115b32d09da614e61791cc780a47 (diff) | |
download | src-8e62f8414ea27f54669c6007db99dce4dcaf92ba.tar.gz src-8e62f8414ea27f54669c6007db99dce4dcaf92ba.zip |
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
Notes
Notes:
svn path=/head/; revision=294894
Diffstat (limited to 'etc/master.passwd')
0 files changed, 0 insertions, 0 deletions