[Click] SimpleQueue and 100% CPU-load

Davy De Winter davy.dewinter at intec.ugent.be
Sat Jul 24 01:10:28 EDT 2004


Hi,

when I loaded the following trivial click-configuration: 
FromDevice(eth1) -> SimpleQueue(100) -> ToDevice(eth2); 
the CPU-load is 99,x%. 
But when I load the following configuration:
FromDevice(eth1) -> Queue(100) -> ToDevice(eth2)
there's almost no CPU-load when no packets are sent. 
I first thought it was due to my implementation because I derived a new 
Queue-class from SimpleQueue and not from NotifierQueue. 
I also wrote another queue and there I also get this strange situation:
when I commented the rule: ActiveNotifier::initialize(router) (from the 
initialize()-method from the NotifierQueue) there was a load of 0%, but when 
I loaded the queue with this rule uncommented, the load was again 99,x%.
So I think it must be due to the Notifier-extensions on the queue. 
Can somebody explain this "strange" situation, because as far as I can see, 
the notifier has nothing to do with the real operation of the queue, but only 
notifies changes in the empty-state to interested elements. 

With kind regards,

Davy De Winter. 


More information about the click mailing list