File tree 9 files changed +15
-23
lines changed
9 files changed +15
-23
lines changed Original file line number Diff line number Diff line change @@ -18,13 +18,17 @@ requiring netns cookie support are skipped automatically.
18
18
Install packages used to facilitate testing:
19
19
20
20
```
21
- $ sudo dnf install iperf3 qperf kernel-uek-modules-extra clang llvm bpftool libbpf-devel libcap-devel
21
+ $ sudo dnf install iperf3 qperf proxyt kernel-uek-modules-extra clang llvm bpftool libbpf-devel libcap-devel
22
22
$ sudo dnf module install container-tools:ol8
23
23
```
24
24
25
25
iperf3, qperf are needed for perf testing; kernel-uek-modules-extra is
26
- needed for sch-netem; the latter 5 packages are needed to build the sample
27
- tuner.
26
+ needed for sch-netem; proxyt is used by podman to connect to the container
27
+ registry; may not be needed depending on the network connectivity/podman
28
+ config used. If podman is not installed or registry reachable, tests
29
+ will be skipped.
30
+
31
+ The latter 5 packages are needed to build the sample tuner.
28
32
29
33
podman is optional and is used to verify container support in bpftune.
30
34
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ for TUNER in neigh_table ; do
24
24
25
25
test_setup " true"
26
26
27
- test_run_cmd_local " $BPFTUNE -dsL &" true
27
+ test_run_cmd_local " $BPFTUNE -sL &" true
28
28
29
29
sleep $SETUPTIME
30
30
@@ -49,10 +49,6 @@ for TUNER in neigh_table ; do
49
49
$PREFIX_CMD ip neigh replace $ip6addr lladdr $macaddr dev $INTF
50
50
fi
51
51
done
52
- echo " Following changes were made:"
53
- set +e
54
- grep bpftune $LOGFILE
55
- set -e
56
52
grep " table nearly full" $LOGFILE
57
53
test_pass
58
54
done
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ for TUNER in neigh_table ; do
24
24
25
25
test_setup " true"
26
26
27
- test_run_cmd_local " $BPFTUNE -ds &" true
27
+ test_run_cmd_local " $BPFTUNE -s &" true
28
28
29
29
sleep $SETUPTIME
30
30
@@ -49,10 +49,6 @@ for TUNER in neigh_table ; do
49
49
$PREFIX_CMD ip neigh replace $ip6addr lladdr $macaddr dev $INTF
50
50
fi
51
51
done
52
- echo " Following changes were made:"
53
- set +e
54
- grep bpftune $LOGFILE
55
- set -e
56
52
grep " table nearly full" $LOGFILE
57
53
test_pass
58
54
done
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ for FAMILY in ipv4 ipv6 ; do
43
43
echo " Running ${MODE} ..."
44
44
test_run_cmd_local " ip netns exec $NETNS $IPERF3 -s -p $PORT -1 &"
45
45
if [[ $MODE != " baseline" ]]; then
46
- test_run_cmd_local " $BPFTUNE -dL &"
46
+ test_run_cmd_local " $BPFTUNE -L &"
47
47
sleep $SETUPTIME
48
48
else
49
49
LOGSZ=$( wc -l $LOGFILE | awk ' {print $1}' )
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ for FAMILY in ipv4 ipv6 ; do
43
43
echo " Running ${MODE} ..."
44
44
test_run_cmd_local " ip netns exec $NETNS $IPERF3 -s -p $PORT -1 &"
45
45
if [[ $MODE != " baseline" ]]; then
46
- test_run_cmd_local " $BPFTUNE -d &"
46
+ test_run_cmd_local " $BPFTUNE &"
47
47
sleep $SETUPTIME
48
48
else
49
49
LOGSZ=$( wc -l $LOGFILE | awk ' {print $1}' )
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ for TUNER in route_table ; do
36
36
$PREFIX_CMD sysctl -w net.ipv6.route.gc_thresh=16
37
37
$PREFIX_CMD sysctl -w net.ipv6.route.max_size=32
38
38
39
- test_run_cmd_local " $BPFTUNE -ds &" true
39
+ test_run_cmd_local " $BPFTUNE -s &" true
40
40
41
41
sleep $SETUPTIME
42
42
@@ -54,10 +54,6 @@ for TUNER in route_table ; do
54
54
sleep $SLEEPTIME
55
55
sleep $SLEEPTIME
56
56
sleep $SLEEPTIME
57
- echo " Following changes were made:"
58
- set +e
59
- grep bpftune $LOGFILE
60
- set -e
61
57
max_size_post=($( $PREFIX_CMD sysctl -n net.ipv6.route.max_size) )
62
58
$PREFIX_CMD sysctl -w net.ipv6.route.max_size=" $max_size_orig "
63
59
$PREFIX_CMD sysctl -w net.ipv6.route.gc_thresh=" $thresh_orig "
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ for TUNER in neigh_table ; do
17
17
18
18
test_setup " true"
19
19
20
- test_run_cmd_local " $BPFTUNE -dsL &" true
20
+ test_run_cmd_local " $BPFTUNE -sL &" true
21
21
22
22
sleep $SETUPTIME
23
23
for SYSCTL in net.ipv4.neigh.default.gc_thresh1 kernel.core_pattern ; do
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ for TUNER in neigh_table ; do
21
21
22
22
sysctl -qw net.ipv4.tcp_rmem=" ${rmem_orig[0]} ${rmem_orig[1]} ${rmem_orig[1]} "
23
23
24
- test_run_cmd_local " $BPFTUNE -ds &" true
24
+ test_run_cmd_local " $BPFTUNE -s &" true
25
25
26
26
sleep $SETUPTIME
27
27
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ for TUNER in neigh_table ; do
17
17
18
18
test_setup " true"
19
19
20
- test_run_cmd_local " $BPFTUNE -ds &" true
20
+ test_run_cmd_local " $BPFTUNE -s &" true
21
21
22
22
sleep $SETUPTIME
23
23
for SYSCTL in net.ipv4.neigh.default.gc_thresh1 kernel.core_pattern ; do
You can’t perform that action at this time.
0 commit comments