benchmark: Set port range properly on Linux
authorisaacs <i@izs.me>
Fri, 28 Dec 2012 05:12:43 +0000 (21:12 -0800)
committerisaacs <i@izs.me>
Sat, 29 Dec 2012 23:32:26 +0000 (15:32 -0800)
benchmark/http.sh

index c83d9e9..9a844a9 100755 (executable)
@@ -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