I've played around with the ipfw command on a Mac and tried to limit the bandwidth to 1MBit/s.
sudo ipfw add pipe 1 ip from any to me
sudo ipfw pipe 1 config bw 1MBit/s
These are the statements I'm using. ipfw indeed limits the bandwidth drastically but according to speedtest.net only to ~7.7 Mbps on a 100 Mbps line. With a restriction to 3MBit/s the effective download is ~23.13 Mbps. Apparently the ipfw always uses a factor ~7.7 of the given limit. With a limit of 4 Mbps the effective speed is ~30,84 Mbps, with 8 Mbps it's ~61.6 Mbps and so on...
Anyone knows why this is the reason? Is it a bug or do I use the statement wrong?
Thank you
sudo ipfw show
here?radi:~ Phil$ sudo ipfw show
00100 2046813 1042400871 pipe 1 ip from any to me
00200 2223777 296348885 pipe 2 ip from me to any
65535 7182907 2143167607 allow ip from any to any
aargh.. didn't manage to properly use the code tags