[Click] @Question about the kernel click CPU allocation@

Aditya Dhananjay aditya at courant.nyu.edu
Thu Apr 7 10:24:54 EDT 2011


Thanks, this is very informative. I was looking for the same answer!

best,
aditya

On Thu, Apr 7, 2011 at 6:57 AM, sandeep <sandeep048 at gmail.com> wrote:

> Dear Shule,
>
> I am learning how to use SMP-Click and I hope you might find this
> information useful.
>
> First of all click should be configured to run in multithreaded mode. Give
> the maximum number of threads you want click to spawn.
>
> ./configure --enable-multithreaded=<max num of threads>
>
> Then follow the normal click installation procedure. make install
>
> To leverage click multi-threading we have to either
> statically<http://read.cs.ucla.edu/click/elements/staticthreadsched>or
> dynamically <http://read.cs.ucla.edu/click/elements/balancedthreadsched
> >schedule
> elements onto threads. To quickly check if SMP-click is working or
> not add balanced thread scheduling statement in the last line of your click
> script.
>
> BalancedThreadSched<
> http://read.cs.ucla.edu/click/elements/balancedthreadsched>
> ();
>
> Then the click script should be invoked using -t option
>
> click-install -t <num of threads> <click_script.click>
>
> Also we can use
> ThreadMonitor<http://read.cs.ucla.edu/click/elements/threadmonitor>();
> which will print cpu cycles consumed by threads.
>
> Another useful element is
> Print<http://read.cs.ucla.edu/click/elements/print>(CPU
> true). Inserting this element in forwarding path prints the cpu core used.
>
> Thanks & Regards,
> Sandeep,
> Student Researcher,
> CTVR <http://ctvr.ie/> - Trinity College Dublin
>
> On Thu, Apr 7, 2011 at 5:07 AM, shule ney <neyshule at gmail.com> wrote:
>
> > Hi all:
> > When I run kernel click in 2.6.24.7 kernel on dual core server, I found
> > that
> > only one core is used and the usage is 100% when we forward packet at
> full
> > speed, the other core is idle with usage 0%, how can I make use of this
> > idle
> > core? If it's single threaed, does it mean I can't use the other
> > core??Thanks very much to help me.
> > _______________________________________________
> > click mailing list
> > click at amsterdam.lcs.mit.edu
> > https://amsterdam.lcs.mit.edu/mailman/listinfo/click
> >
> _______________________________________________
> click mailing list
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click
>
>


More information about the click mailing list