Advertisement
Guest User

Untitled

a guest
Dec 12th, 2014
271
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.38 KB | None | 0 0
  1. You can change the bandwidth dynamically in the prototype cake scheduler,
  2. but you can't change it to be bandwidth unlimited.And it is not clear how
  3. much damage it does a live system to change it.
  4.  
  5. root@ranger:~/git# tc -s qdisc show dev eth0
  6. qdisc cake2 803c: root refcnt 9 bandwidth 20Mbit precedence flows
  7. Sent 2384 bytes 9 pkt (dropped 0, overlimits 1 requeues 0)
  8. backlog 0b 0p requeues 0
  9. Class 0 Class 1 Class 2 Class 3 Class 4 Class 5 Class 6 Class 7
  10. rate 20Mbit 17500Kbit 15312Kbit 13398Kbit 11723Kbit 10258Kbit 8975Kbit 7853Kbit
  11. target 6.2ms 6.2ms 6.2ms 6.2ms 6.2ms 6.2ms 6.2ms 6.2ms
  12. delay 0us 0us 0us 0us 0us 0us 0us 0us
  13. maxpkt 0 0 0 0 0 0 0 0
  14. pkts 3 0 0 0 0 0 6 0
  15. bytes 482 0 0 0 0 0 1902 0
  16. drops 0 0 0 0 0 0 0 0
  17. marks 0 0 0 0 0 0 0 0
  18. root@ranger:~/git# tc qdisc change dev eth0 root cake2 bandwidth 5mbit
  19. root@ranger:~/git# tc -s qdisc show dev eth0
  20. qdisc cake2 803c: root refcnt 9 bandwidth 5Mbit precedence flows
  21. Sent 6604 bytes 22 pkt (dropped 0, overlimits 2 requeues 0)
  22. backlog 0b 0p requeues 0
  23. Class 0 Class 1 Class 2 Class 3 Class 4 Class 5 Class 6 Class 7
  24. rate 5Mbit 4375Kbit 3828Kbit 3349Kbit 2930Kbit 2564Kbit 2243Kbit 1963Kbit
  25. target 6.2ms 6.2ms 6.2ms 6.2ms 6.2ms 6.2ms 6.2ms 6.2ms
  26. delay 0us 0us 0us 0us 0us 0us 0us 0us
  27. maxpkt 0 0 0 0 0 0 0 0
  28. pkts 3 0 0 0 0 0 19 0
  29. bytes 482 0 0 0 0 0 6122 0
  30. drops 0 0 0 0 0 0 0 0
  31. marks 0 0 0 0 0 0 0 0
  32.  
  33. root@ranger:~/git# tc qdisc change dev eth0 root cake2 bandwidth 100mbit
  34. root@ranger:~/git# tc qdisc change dev eth0 root cake2
  35. root@ranger:~/git# tc -s qdisc show dev eth0
  36. qdisc cake2 803c: root refcnt 9 bandwidth 100Mbit precedence flows
  37. Sent 23830 bytes 83 pkt (dropped 0, overlimits 4 requeues 0)
  38. backlog 0b 0p requeues 0
  39. Class 0 Class 1 Class 2 Class 3 Class 4 Class 5 Class 6 Class 7
  40. rate 100Mbit 87500Kbit 76562Kbit 66992Kbit 58618Kbit 51290Kbit 44879Kbit 39269Kbit
  41. target 6.2ms 6.2ms 6.2ms 6.2ms 6.2ms 6.2ms 6.2ms 6.2ms
  42. delay 0us 0us 0us 0us 0us 0us 0us 0us
  43. maxpkt 0 0 0 0 0 0 0 0
  44. pkts 3 0 0 0 0 0 80 0
  45. bytes 482 0 0 0 0 0 23348 0
  46. drops 0 0 0 0 0 0 0 0
  47. marks 0 0 0 0 0 0 0 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement