Skip to contentSkip to conversation

TBF to limit bandwidth, Should I change #define HZ?

LARTC Fernando Lemos de Mello 2 participants 2 messages Aug 30, 2002 – Aug 31, 2002

lore
Share & tools
lore
#0 lore raw

Dear friends,

thanks for the last advices about TBF.

After reading the tbf.pdf document I got a better insight of the problems I had trying to limit the bandwith on my testbed with a high resolution.

The question I have now is:
Would I get an immediatly better resolution result if I change the #define HZ to 1000 for my Linux box? I have a Pentium Celeron 700 MHz, and I would like to see the tbf working like:

send a 1000 bytes packet -> wait 10ms -> send a 1000 bytes packet -> wait 10ms ....

So if I change the file /usr/src/linux/include/asm-i386/param.h: #define HZ 100 to #define HZ 1000 and simply recompile the kernel, would tc work with better resolution?

Thanks again,

Fernando.

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#1 lore raw
Quoted 11 lines · Fernando Lemos de Mello

Dear friends,

thanks for the last advices about TBF.

After reading the tbf.pdf document I got a better insight of the problems I had trying to limit the bandwith on my testbed with a high resolution.

The question I have now is:
Would I get an immediatly better resolution result if I change the #define HZ to 1000 for my Linux box? I have a Pentium Celeron 700 MHz, and I would like to see the tbf working like:

You don't need to change HZ, for most purposes, it suffices to just raise the burst size, which means 'send some packets' 'wait 10 ms' 'send some more packets'. This will even out just fine.

Quoted 3 lines

So if I change the file /usr/src/linux/include/asm-i386/param.h: #define HZ 100 to #define HZ 1000 and simply recompile the kernel, would tc work with better resolution?

Yes.

Kind regards,

bert hubert

Signature · 6 lines
http://www.PowerDNS.com          Versatile DNS Software & Services
http://www.tk                              the dot in .tk
http://lartc.org           Linux Advanced Routing & Traffic Control HOWTO
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/