@@ -107,7 +107,7 @@ _check_perf_gso:
107107 $(QUIET ) echo " Adjusting GSO (DISABLE_GSO=$( DISABLE_GSO) )..."
108108 $(QUIET ) $(MAKE ) _adjust_gso
109109 $(QUIET ) echo " Launching $( CMD) tests..."
110- $(QUIET ) DISABLE_GSO=$(DISABLE_GSO ) DEBUG=1 NETNS=client python3 perf/check_perf.py $(CMD )
110+ $(QUIET ) DISABLE_GSO=$(DISABLE_GSO ) DEBUG=1 NETNS=client sudo -E python3 perf/check_perf.py $(CMD )
111111
112112_gen_perf_reports :
113113 $(QUIET ) python3 perf/gen_report.py .$(REPORT ) _report_nogso.json " $( REPORT) tests (TSO/GSO=off)"
@@ -140,13 +140,19 @@ check_perf_iperf: _wait_up _wait_running
140140 $(QUIET ) $(MAKE ) _deploy
141141 $(QUIET ) $(MAKE ) _gen_perf_reports REPORT=iperf
142142
143- _check_perf_mtu :
144- $(QUIET ) echo " Adjusting GSO (DISABLE_GSO=$( DISABLE_GSO) )..."
145- $(QUIET ) $(MAKE ) _adjust_gso
146- $(QUIET ) echo " Launching iperf tests..."
147- $(QUIET ) sudo ip netns exec client wget DISABLE_GSO=$(DISABLE_GSO ) DEBUG=1 NETNS=client python3 perf/check_perf.py
148-
149143check_perf_requests : _wait_up _wait_running
144+ $(QUIET ) echo " Checking perf with GSO..."
145+ $(QUIET ) DISABLE_GSO=0 $(MAKE ) _check_perf_gso CMD=requests
146+ $(QUIET ) echo " Checking perf without GSO..."
147+ $(QUIET ) DISABLE_GSO=1 $(MAKE ) _check_perf_gso CMD=requests
148+ $(QUIET ) echo " Unloading NDEBUG sfunnel in NS..."
149+ $(QUIET ) $(MAKE ) _unload
150+ $(QUIET ) echo " Loading DEBUG sfunnel in NS..."
151+ $(QUIET ) $(MAKE ) _load
152+ $(QUIET ) echo " Restoring nginx..."
153+ $(QUIET ) $(MAKE ) _deploy
154+ $(QUIET ) $(MAKE ) _gen_perf_reports REPORT=requests
155+ exit 11
150156 $(QUIET ) echo " Unloading DEBUG sfunnel in NS..."
151157 $(QUIET ) $(MAKE ) _unload
152158 $(QUIET ) echo " Loading NDEBUG sfunnel in NS..."
@@ -167,14 +173,3 @@ check_perf_requests: _wait_up _wait_running
167173 done ;
168174 $(QUIET ) echo " Workaround lingering old conntrack (metallb/kubeproxy bug?)..."
169175 $(QUIET ) for NODE in $$ (minikube node list | awk ' {print $$1}' ); do minikube ssh -n $$ {NODE} " sudo conntrack -F" ; done ;
170- $(QUIET ) echo " Checking perf with GSO..."
171- $(QUIET ) DISABLE_GSO=0 $(MAKE ) _check_perf_gso CMD=wget
172- $(QUIET ) echo " Checking perf without GSO..."
173- $(QUIET ) DISABLE_GSO=1 $(MAKE ) _check_perf_gso CMD=wget
174- $(QUIET ) echo " Unloading NDEBUG sfunnel in NS..."
175- $(QUIET ) $(MAKE ) _unload
176- $(QUIET ) echo " Loading DEBUG sfunnel in NS..."
177- $(QUIET ) $(MAKE ) _load
178- $(QUIET ) echo " Restoring nginx..."
179- $(QUIET ) $(MAKE ) _deploy
180- $(QUIET ) $(MAKE ) _gen_perf_reports REPORT=wget
0 commit comments