source: benchmark/io/setup.sh @ 41882628

Last change on this file since 41882628 was cf535f4, checked in by Thierry Delisle <tdelisle@…>, 4 years ago

Added script to run before experiments.

  • Property mode set to 100755
File size: 979 bytes
Line 
1#!/bin/bash
2[ $(id -u) -ne 0 ] && exec sudo $0 $*
3
4#========================================
5echo "Sysctl Calls"
6sysctl -w net.core.somaxconn=1048576
7sysctl -w net.ipv4.tcp_max_syn_backlog=262144
8sysctl -w net.ipv4.tcp_tw_reuse=1
9sysctl -w net.ipv4.ip_local_port_range="1024 65535"
10sysctl -w vm.max_map_count=2097152
11cpupower frequency-set -g performance
12
13# sysctl net.core.somaxconn
14# sysctl net.ipv4.tcp_max_syn_backlog
15# sysctl net.ipv4.tcp_tw_reuse
16# sysctl net.ipv4.ip_local_port_range
17# sysctl vm.max_map_count
18
19#========================================
20echo "Check what we can debug/trace"
21
22echo "/proc/sys/kernel/yama/ptrace_scope"
23cat /proc/sys/kernel/yama/ptrace_scope
24echo "/proc/sys/kernel/kptr_restrict"
25cat /proc/sys/kernel/kptr_restrict
26echo "/proc/sys/kernel/nmi_watchdog"
27cat /proc/sys/kernel/nmi_watchdog
28echo "/proc/sys/kernel/perf_event_paranoid"
29cat /proc/sys/kernel/perf_event_paranoid
30
31#========================================
32echo "User Limits"
33ulimit -a
Note: See TracBrowser for help on using the repository browser.