Spdk/scripts
Jim Harris 8021da8ba6 setup.sh: do not unload/reload contigmem.ko on FreeBSD
When running "setup.sh config" (or setup.sh without
specify a mode - which defaults to config), do not
unload the contigmem driver and then reload it.  Over
time, memory can get fragmented and contigmem will fail,
crashing the system.

But still check if the requested HUGEMEM matches what was
previously specified.  If a different amount was requested,
unload contigmem as before and then reload with the new
amount.

This patch brings FreeBSD behavior in line with Linux.  On
Linux, we do not release all of the hugepages and then
reallocate them.

Signed-off-by: Jim Harris <james.r.harris@intel.com>
Change-Id: I18cb6fd4bdc1e1da0382423455ebce58c13bee7a

Reviewed-on: https://review.gerrithub.io/412238
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
2018-05-23 18:24:22 +00:00
..
ceph test/rbd: add configurable monitoring IP address for ceph 2018-04-17 13:55:44 -04:00
perf/nvme pep8: re-enable E302 (2 blank lines between functions) 2018-02-15 11:10:41 -05:00
rpc lvol: add lvol inflate RPC call 2018-05-23 18:12:52 +00:00
spdkcli spdkcli: initial version with bdev management 2018-04-20 13:25:21 -04:00
vagrant scripts/vagrant: add gdisk and sysstat packages 2018-03-05 10:50:32 -05:00
check_format.sh scripts/check_format.sh: ban use of strcat() 2018-05-11 17:24:43 +00:00
common.sh scripts: factor out iter_pci helper functions 2018-01-03 14:09:22 -05:00
detect_cc.sh build: use conditional CC/CXX assignment for generated mk/cc.mk 2018-02-12 12:10:49 -05:00
eofnl scripts/check_format: check trailing whitespace 2017-10-24 17:35:23 -04:00
fio.py scripts: amend scheduler option in fio.py 2018-05-17 17:10:42 +00:00
gen_nvme.sh scripts: factor out iter_pci helper functions 2018-01-03 14:09:22 -05:00
gen_rbd.sh test/bdev: add Ceph RBD bdev to bdev tests 2018-02-26 11:12:35 -05:00
genconfig.py build: sort dictionary in genconfig.py before printing 2018-02-08 12:05:54 -05:00
pkgdep.sh scripts/pkgdep.sh: fix astyle package name on RH 2018-05-22 21:06:37 +00:00
posix.txt build: Automatically detect use of POSIX includes 2017-05-08 13:20:37 -07:00
prep_benchmarks.sh scripts: Add reset option to prep_benchmarks.sh 2018-01-09 13:40:59 -05:00
rpc.py lvol: add lvol inflate RPC call 2018-05-23 18:12:52 +00:00
setup.sh setup.sh: do not unload/reload contigmem.ko on FreeBSD 2018-05-23 18:24:22 +00:00
spdkcli.py spdkcli: initial version with bdev management 2018-04-20 13:25:21 -04:00