projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e11668b
)
benchmark: Set port range properly on Linux
author
isaacs
<i@izs.me>
Fri, 28 Dec 2012 05:12:43 +0000
(21:12 -0800)
committer
isaacs
<i@izs.me>
Sat, 29 Dec 2012 23:32:26 +0000
(15:32 -0800)
benchmark/http.sh
patch
|
blob
|
history
diff --git
a/benchmark/http.sh
b/benchmark/http.sh
index
c83d9e9
..
9a844a9
100755
(executable)
--- 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