File: prep

package info (click to toggle)
gatling 0.13-6
  • links: PTS
  • area: main
  • in suites: sid, stretch
  • size: 1,196 kB
  • ctags: 1,115
  • sloc: ansic: 23,805; makefile: 143; sh: 71; perl: 30
file content (38 lines) | stat: -rw-r--r-- 1,102 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
case `uname -s` in
  Linux)
    sysctl -w kernel.threads-max=6000
    sysctl -w net.ipv4.ip_local_port_range="1024 61000"
    sysctl -w net.ipv4.tcp_tw_recycle=1
    sysctl -w net.ipv4.tcp_tw_reuse=1
    sysctl -w net.ipv4.tcp_fin_timeout=10
    ;;
  FreeBSD)
    sysctl -w kern.maxfiles=11000
    sysctl -w kern.maxfilesperproc=11000
    sysctl -w kern.maxproc=6000
    sysctl -w kern.maxprocperuid=6000
    sysctl -w net.inet6.ip6.v6only=0
    sysctl -w net.inet.ip.portrange.first=2000
    sysctl -w net.inet.ip.portrange.hifirst=2000
    sysctl -w net.inet.ip.portrange.randomized=0
    ;;
  OpenBSD)
    sysctl -w kern.maxfiles=11000
    sysctl -w kern.maxproc=6000
    sysctl -w net.inet6.ip6.v6only=0
    ;;
  NetBSD)
    sysctl -w kern.maxfiles=11000
    sysctl -w kern.maxproc=6000
    sysctl -w net.inet6.ip6.v6only=0
    sysctl -w net.inet.ip.anonportmin=1024
    sysctl -w net.inet.ip.anonportmax=65535
    sysctl -w net.inet6.ip6.anonportmin=1024
    sysctl -w net.inet6.ip6.anonportmax=65535
    ;;
  AIX)
    chdev -l sys0 -a maxuproc=11000
    no -o tcp_ephemeral_low=1024
    ;;
esac