summaryrefslogtreecommitdiffstats
path: root/lib/libthr/thread/thr_affinity.c
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2016-03-12 19:05:49 +0000
committerngie <ngie@FreeBSD.org>2016-03-12 19:05:49 +0000
commitc677bff3bc0b0ee4a63ab8fca32643e0eb945358 (patch)
treede2ccd54c701fedac36c377bc125f7c4ca06d37e /lib/libthr/thread/thr_affinity.c
parent34083fb8795edc78bf12cbc0720eefe3c78f4f50 (diff)
downloadFreeBSD-src-c677bff3bc0b0ee4a63ab8fca32643e0eb945358.zip
FreeBSD-src-c677bff3bc0b0ee4a63ab8fca32643e0eb945358.tar.gz
MFC r294894:
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).
Diffstat (limited to 'lib/libthr/thread/thr_affinity.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud