Skip to content

Instantly share code, notes, and snippets.

@oxavelar
Last active June 8, 2025 04:59
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=2500
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 2048" > "$phy/aqm"
echo "fq_quantum 128" > "$phy/aqm"
echo "fq_memory_limit $((2**27))" > "$phy/aqm"
);
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment