[Click] SimpleQueue Performance issue

remi.clavier at orange-ftgroup.com remi.clavier at orange-ftgroup.com
Wed Dec 9 03:46:21 EST 2009


 
I have not anderstant exactly how Simple Queue works.
For a specific use, I patch SimpleQueue to add an annotation when the
length is greather tha a given value using the packet->uniqueify()
function to have a new packet to annotate .When the ModifiedQueue is
empty, nothing special happends.

But when the Queue contains Packets, the CPU usage grows very quickly
and go to 100% when the numbre of packets in the queue becomes higher;
When the Queue becomes empty, the CPU usage decrease slowly to a normal
value

I's a normal behavior for a Simple Queue or is this problem related to
my patch?


I use click 1.7 with multithread option.

Help will be welcome



More information about the click mailing list