Skip to contentSkip to conversation

Latency in SFQ --> Done

LARTC Adi Nugroho 2 participants 3 messages Dec 20, 2001 – Jan 10, 2002

lore
Share & tools
lore
#0 lore raw
Quoted 5 lines · bert hubert
Quoted 2 lines

If we are using TBF, we can reduce "buffer" and "limit" to minimize latency. What should we do in SFQ?

You can't really. SFQ has a fixed queue length of 128.

Dear Sirs,
It worked now.
Thank you for all help, from this mailing list and from IRC. Special Thanks for Mr. Hubert

I have reduce the buffer (queue length) from 128 to 15, and it works very nice, very well, and very fair.

What I did was:
1. Open the sfq source (/usr/src/linux/net/sched/sch_sfq.c)
2. In about line 91, there is "#define SFQ_DEPTH 128"
3. Change it to "#define SFQ_DEPTH 15"
4. Recompile kernel (modules)
5. Restart (I'm not sure it is needed. modprobe should be enough)
6. Run it again
7. Nice...nice....nice.....

For Mr. Kuznetsov, if you don't mind, I would like to suggest to give a chance to the user to change it manually in run time, like we can change quantum and perturb. (in the next release, of course)

In developed countries, queue depth 128 is fair, since we are talking about high speed network.
In my case, I just use 64 kbit bandwidth for every 4 Internet caffee, which used by about 15 computers each. Very slow speed.... need very small queue length.

Regards,
Adi Nugroho
Who are very happy now :-)

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

#1 lore raw

Hello!

Quoted 3 lines

For Mr. Kuznetsov, if you don't mind, I would like to suggest to give a chance to the user to change it manually in run time, like we can change quantum and perturb. (in the next release, of course)

Yes, of course.

Actually, I do not remember why I did not make it tunable. :-) Seems, I was stuck on expenses of _increasing_ it and somewhat missed that people may want to decrease it as well.

Alexey

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

#2 lore raw
In reply to Adi Nugroho
Quoted 7 lines · Alexey Kuznetsov
Quoted 3 lines

For Mr. Kuznetsov, if you don't mind, I would like to suggest to give a chance to the user to change it manually in run time, like we can change quantum and perturb. (in the next release, of course)

Yes, of course.

Alexey

Hurray......
Thank you for your help and your hardwork.

Once the new sch_sfq.c has been updated, please don't forget me.... I'm appliying to be a user tester :-)

Once again.... thanks....

Adi Nugroho

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