I've a server (CentOS) hosting apache and I'd like to simulate user experience on different line speeds, so I thought about putting a cap on upstream from the server. To do this I'm performing simple steps
tc qdisc del dev $DEVICE root tc qdisc add dev $DEVICE root tbf rate 500kbit latency 50ms buffer 100kb mpu 64
this gets applied without any errors, but when I perform speedtest it heavily affects downstream as well (falling from 60 Mbit to 15 Mbit), and upstream is capped at about 0.44 Mbit instead of 0.5 Mbit.
Anyone has any ideas on what's wrong and how to improve?