From ecdde7df15f534094b749c8febbf56972fd13795 Mon Sep 17 00:00:00 2001 From: isaacs Date: Thu, 27 Dec 2012 21:12:43 -0800 Subject: [PATCH] benchmark: Set port range properly on Linux --- benchmark/http.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/benchmark/http.sh b/benchmark/http.sh index c83d9e99c2..9a844a9004 100755 --- a/benchmark/http.sh +++ b/benchmark/http.sh @@ -3,6 +3,7 @@ cd "$(dirname "$(dirname $0)")" if type sysctl &>/dev/null; then # darwin and linux + sudo sysctl -w net.ipv4.ip_local_port_range="12000 65535" sudo sysctl -w net.inet.ip.portrange.first=12000 sudo sysctl -w net.inet.tcp.msl=1000 sudo sysctl -w kern.maxfiles=1000000 kern.maxfilesperproc=1000000