Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
shaping : need help with "tc qdisc tbf"- command
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
ubald
n00b
n00b


Joined: 14 Jan 2005
Posts: 48

PostPosted: Thu Aug 18, 2005 2:57 pm    Post subject: shaping : need help with "tc qdisc tbf"- command Reply with quote

Hello!

My shaping problem is very simple, without any priorizing or similar:

I just want to hard-limit the outgoing bandwidth on my server to 180 kbit because it shares DSL (2000/192) with my Desktop-PC.
The server takes as much upstream as it gets but not much downstream. There are no possibillities to limit bandwidth inside applications.
My first try:
Code:
tc qdisc add dev eth0 root tbf rate 180kbit latency 500ms burst 1540


The problem is that I don't get any good internet-performance on the other PC, and I tried also to use the peakrate-option, and finally got there with a reasonnable performance:

Code:
tc qdisc add dev eth0 root tbf rate 130kbit latency 50ms burst 1550 peakrate 161kbit mtu 1600


But then, the server uses only the 130kbit all the time, and I would like it to use just as much as possible while having a fast internet on the other PC.
I also noticed that when "burst" is below 1540, I can't use ssh properly, e.g. nano fails. I also tried out different latencies but got nowhere, and peakrate doesn't seem to have much influence at all.

Do you have any suggestions for fine-tuning or could at least explain what latency and burst are there for? (I already have read several good pages about that, but I don't know what consequences they have on rate limiting!)

Thanks
Back to top
View user's profile Send private message
tmf
Tux's lil' helper
Tux's lil' helper


Joined: 10 May 2005
Posts: 76
Location: Warsaw, Poland

PostPosted: Thu Aug 18, 2005 4:50 pm    Post subject: Reply with quote

could you share those pages?

tmf
Back to top
View user's profile Send private message
ubald
n00b
n00b


Joined: 14 Jan 2005
Posts: 48

PostPosted: Fri Aug 19, 2005 8:23 am    Post subject: Reply with quote

It was mainly this site: http://www.die.net/doc/linux/man/man8/tc-tbf.8.html , but I still don't understand what effect the options "latency" and "burst" have, because they seem to be only important for the data-flow inside the server?

But when I change those values, I get an effect on internet-usage on my other machine, so I really would like someone to explain how to use those options properly, please:D

Thanks!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum