-
Notifications
You must be signed in to change notification settings - Fork 247
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update v5e perf results and fix rto_setup for GCE
- Loading branch information
1 parent
2637bba
commit ebb226d
Showing
2 changed files
with
25 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,15 @@ | ||
echo "Running rto_setup.sh..." | ||
echo "Running rto_setup.sh for GCE..." | ||
|
||
# Stop execution if any command exits with error | ||
set -e | ||
|
||
echo "Adjust RTO and apply non cache copy" | ||
first_line_res=$(ip route show | head -n 1) | ||
sudo ip route change ${first_line_res} rto_min 5ms | ||
sudo ethtool -K ens9 tx-nocache-copy on | ||
echo "rto_setup finished" | ||
if [[ "$(echo "$first_line_res" | grep "rto_min lock 5ms" | wc -l)" -eq 0 ]]; then | ||
sudo ip route change "${first_line_res}" rto_min 5ms | ||
fi | ||
dev_name=$(echo "$first_line_res" | awk -F'[[:space:]]' '{ print $5 }') | ||
echo "dev_name=${dev_name}" | ||
sudo ethtool -K "${dev_name}" tx-nocache-copy on | ||
|
||
echo "rto_setup.sh finished" |