Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update SimpleHFSCgamerscript.sh #9

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions SimpleHFSCgamerscript.sh
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,9 @@ case $useqdisc in
"fq_codel")
tc qdisc add dev "$DEV" parent "1:11" fq_codel memory_limit $((RATE*200/8)) interval "${INTVL}ms" target "${TARG}ms" quantum $((MTU * 2))
;;
"cake")
tc qdisc add dev "$DEV" parent "1:11" cake besteffort rtt "${INTVL}ms" #memlimit can be used but cake has higher requirements than fq_codel
;;
"netem")
tc qdisc add dev "$DEV" parent 1:11 handle 10: netem limit $((4+9*RATE/8/500)) delay "${netemdelayms}ms" "${netemjitterms}ms" distribution "$netemdist"
;;
Expand All @@ -351,9 +354,9 @@ case $useqdisc in
esac


echo "adding fq_codel qdisc for non-game traffic"
echo "adding cake qdisc for non-game traffic"
for i in 12 13 14 15; do
tc qdisc add dev "$DEV" parent "1:$i" fq_codel memory_limit $((RATE*200/8)) interval "${INTVL}ms" target "${TARG}ms" quantum $((MTU * 2))
tc qdisc add dev "$DEV" parent "1:$i" cake besteffort interval "${INTVL}ms" #memlimit can be used but cake has higher requirements than fq_codel, cake also offers ack-filter-aggressive to drop extra acks.
done


Expand Down