Skip to content

Instantly share code, notes, and snippets.

@kyledrake
Created July 14, 2013 18:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kyledrake/5995326 to your computer and use it in GitHub Desktop.
Save kyledrake/5995326 to your computer and use it in GitHub Desktop.
Current sysctl tweaks for NeoCities
net.ipv4.tcp_max_syn_backlog = 3240000
net.core.somaxconn = 3240000
net.ipv4.tcp_max_tw_buckets = 1440000
net.core.rmem_default = 8388608
net.core.rmem_max = 16777216
net.core.wmem_max = 16777216
net.ipv4.tcp_rmem = 4096 87380 16777216
net.ipv4.tcp_wmem = 4096 65536 16777216
net.ipv4.tcp_congestion_control = cubic
net.core.netdev_max_backlog = 30000
net.ipv4.ip_local_port_range = 18000 65535
net.ipv4.tcp_slow_start_after_idle=0
net.netfilter.nf_conntrack_tcp_timeout_established=600
@kyledrake
Copy link
Author

Lifting the server siege...      done.
Transactions:               3867 hits
Availability:             100.00 %
Elapsed time:              23.39 secs
Data transferred:           9.49 MB
Response time:              0.52 secs
Transaction rate:         165.33 trans/sec
Throughput:             0.41 MB/sec
Concurrency:               86.57
Successful transactions:        3867
Failed transactions:               0
Longest transaction:            8.19
Shortest transaction:           0.00

Check this out, it stalls randomly:

HTTP/1.1 200   0.00 secs:    2572 bytes ==> /
HTTP/1.1 200   0.00 secs:    2572 bytes ==> /
HTTP/1.1 200   0.00 secs:    2572 bytes ==> /
HTTP/1.1 200   0.00 secs:    2572 bytes ==> /
HTTP/1.1 200   0.01 secs:    2572 bytes ==> /
HTTP/1.1 200   5.00 secs:    2572 bytes ==> /
HTTP/1.1 200   5.00 secs:    2572 bytes ==> /
HTTP/1.1 200   5.00 secs:    2572 bytes ==> /
HTTP/1.1 200   5.00 secs:    2572 bytes ==> /
HTTP/1.1 200   5.00 secs:    2572 bytes ==> /
HTTP/1.1 200   5.00 secs:    2572 bytes ==> /
HTTP/1.1 200   5.00 secs:    2572 bytes ==> /
HTTP/1.1 200   5.00 secs:    2572 bytes ==> /
HTTP/1.1 200   5.00 secs:    2572 bytes ==> /

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment