[Click] Click tasks scheduling time
Eddie Kohler
kohler at cs.ucla.edu
Mon Nov 10 02:19:19 EST 2008
Hi Lorenzo,
I'm going through older mail.
You might be seeing Click go to sleep when it has nothing to do. The Click
thread is not scheduled at all in such a case. Instead Linux wakes up Click
when there is something to do, and Click takes it from there. The wake-up can
be a slow process. If you want Click to be active constantly, try scheduling
something like "Idle->SimpleQueue->Discard", which will make Click take 100%
of the available CPU; or something like "Script(wait 1us, loop)", which will
wake up Click every 1us or so.
Eddie
Lorenzo Bianconi wrote:
> Hi all
>
> I am using Click in kernel module to implement a system where a given node
> manages the transmission of N other nodes. In particular, the master node
> has not to transmit its own traffic, but it has only to transmit a control
> packet to grant the access to the medium to the slave nodes. In this kind of
> configuration (where the master is not heavily loaded) I obtain that the
> time between the master receiption and the subsequent transmission of the
> control packet is quite big, in the order of 200-300 ms. On the contrary, if
> also the master node actively generates traffic (in the order of 10 Kb/s)
> this commutation time is reduced to 10-20 ms. My idea is that Click, when
> the node is not heavely loaded, schedule the tasks not so fast as when it
> has to manage more traffic.
> Do you think I am right or somethig is not correct?
> Have you got any idea to address this issue?
>
> Thanks in advance
>
> Kind regards
>
> Lorenzo
> _______________________________________________
> click mailing list
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click
More information about the click
mailing list