Commit 3246fd7a authored by Jim Harris's avatar Jim Harris Committed by Darek Stojaczyk
Browse files

Revert "test/setup: check open files limit"



On multiple development systems (including mine), this results
in new error messages when running scripts/setup.sh.  This has
the potential of causing lots of questions when users upgrade
to SPDK 19.07.

I understand the desire for the error messages, but I think we have
to come up with a smarter check than just against "unlimited".

This reverts commit 0abee610.

Signed-off-by: default avatarJim Harris <james.r.harris@intel.com>
Change-Id: I2854af556b67a9a4e5f686c72c4407962808f964
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/463357


Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarShuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: default avatarDarek Stojaczyk <dariusz.stojaczyk@intel.com>
Reviewed-by: default avatarBen Walker <benjamin.walker@intel.com>
parent 9b639aa9
Loading
Loading
Loading
Loading
+0 −15
Original line number Diff line number Diff line
@@ -374,21 +374,6 @@ function configure_linux {
		exit 1
	fi

	CURENT_SOFT_ULIMIT=$(ulimit -n)
	if [ "$CURENT_SOFT_ULIMIT" != "unlimited" ]; then
		echo ""
		echo "WARNING: soft ulimit for max open files is set to $CURENT_SOFT_ULIMIT."
		echo "SPDK won't be able to use more than $CURENT_SOFT_ULIMIT hugepages if run as current user."
		echo ""
	fi
	CURENT_HARD_ULIMIT=$(ulimit -Hn)
	if [ "$CURENT_HARD_ULIMIT" != "unlimited" ]; then
		echo ""
		echo "WARNING: hard ulimit for max open files is set to $CURENT_HARD_ULIMIT."
		echo "SPDK won't be able to use more than $CURENT_HARD_ULIMIT hugepages even if run as root."
		echo ""
	fi

	if [ "$driver_name" = "vfio-pci" ]; then
		if [ -n "$TARGET_USER" ]; then
			for mount in $hugetlbfs_mounts; do