Skip to content

Instantly share code, notes, and snippets.

@oxavelar
Last active April 24, 2025 14:04
Show Gist options
  • Save oxavelar/f3b2e6dc3930a0b90df3959803b4e742 to your computer and use it in GitHub Desktop.
Save oxavelar/f3b2e6dc3930a0b90df3959803b4e742 to your computer and use it in GitHub Desktop.
Linux AQL Adjustments
for phy in $(find /sys/kernel -name 'phy[0-9]'); do
(cd $phy
l=1500
h=5000
echo 0 $l $h > "$phy/aql_txq_limit"
echo 1 $l $h > "$phy/aql_txq_limit"
echo 2 $l $h > "$phy/aql_txq_limit"
echo 3 $l $h > "$phy/aql_txq_limit"
echo 8000 > "$phy/aql_threshold"
# Increase the FQ-CoDel buffer
echo "fq_limit 20480" > "$phy/aqm"
echo "fq_quantum 64" > "$phy/aqm"
echo "fq_memory_limit $((2**25))" > "$phy/aqm"
);
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment