Re: Not understand some in htb_do_events function

2008-01-15 Thread Patrick McHardy
Martin Devera wrote: So this was meant to protect against endless loops? We want way to smooth big burst of events over more dequeue invocations in order to not slow dequeue too much. Constant 500 is max. allowed "slowdown" of dequeue. Any bright idea how to do it more elegant, Patrick ? Un

Re: Not understand some in htb_do_events function

2008-01-15 Thread David Miller
From: Patrick McHardy <[EMAIL PROTECTED]> Date: Tue, 15 Jan 2008 16:54:41 +0100 > Martin Devera wrote: > > to drain extra events asap. It the time of writing I was not able to > > come with better solution and there were more bugs related to this > > part of code than now. > > So this was meant t

Re: Not understand some in htb_do_events function

2008-01-15 Thread Martin Devera
So this was meant to protect against endless loops? We want way to smooth big burst of events over more dequeue invocations in order to not slow dequeue too much. Constant 500 is max. allowed "slowdown" of dequeue. Any bright idea how to do it more elegant, Patrick ? Unfortunately not, but I

Re: Not understand some in htb_do_events function

2008-01-15 Thread Patrick McHardy
Martin Devera wrote: Patrick McHardy wrote: Badalian Vyacheslav wrote: Hello all. I have many messages like "htb: too many events !" in dmesg. Try to see code and find that function try do 500 events at call. Hm... may anyone ask why 500? Why its not dynamic value based on performance of PC?

Re: Not understand some in htb_do_events function

2008-01-15 Thread Martin Devera
Badalian Vyacheslav wrote: Martin Devera пишет: Patrick McHardy wrote: Badalian Vyacheslav wrote: Hello all. I have many messages like "htb: too many events !" in dmesg. Try to see code and find that function try do 500 events at call. Hm... may anyone ask why 500? Why its not dynamic value b

Re: Not understand some in htb_do_events function

2008-01-15 Thread Badalian Vyacheslav
Martin Devera пишет: Patrick McHardy wrote: Badalian Vyacheslav wrote: Hello all. I have many messages like "htb: too many events !" in dmesg. Try to see code and find that function try do 500 events at call. Hm... may anyone ask why 500? Why its not dynamic value based on performance of PC?

Re: Not understand some in htb_do_events function

2008-01-15 Thread Martin Devera
Patrick McHardy wrote: Badalian Vyacheslav wrote: Hello all. I have many messages like "htb: too many events !" in dmesg. Try to see code and find that function try do 500 events at call. Hm... may anyone ask why 500? Why its not dynamic value based on performance of PC? Thats a good questi

Re: Not understand some in htb_do_events function

2008-01-15 Thread Patrick McHardy
Badalian Vyacheslav wrote: Hello all. I have many messages like "htb: too many events !" in dmesg. Try to see code and find that function try do 500 events at call. Hm... may anyone ask why 500? Why its not dynamic value based on performance of PC? Thats a good question, I wonder why it is l

Not understand some in htb_do_events function

2008-01-15 Thread Badalian Vyacheslav
Hello all. I have many messages like "htb: too many events !" in dmesg. Try to see code and find that function try do 500 events at call. Hm... may anyone ask why 500? Why its not dynamic value based on performance of PC? Thanks for answers. -- To unsubscribe from this list: send the line "un