[Click] Click userlevel multithread high CPU usage doing nothing!?
R H
rajamhayek at yahoo.com
Wed Jun 17 17:02:25 EDT 2009
Eddie,
I can't thank you enough, you just made my day:-) I will retest.
Raja
--- On Wed, 6/17/09, Eddie Kohler <kohler at cs.ucla.edu> wrote:
From: Eddie Kohler <kohler at cs.ucla.edu>
Subject: Re: [Click] Click userlevel multithread high CPU usage doing nothing!?
To: "R H" <rajamhayek at yahoo.com>
Cc: click at amsterdam.lcs.mit.edu
Date: Wednesday, June 17, 2009, 11:48 AM
Hi Raja,
Thanks for the report. You did find a bug in userlevel multithreading; thanks for reporting it! The fix is currently checked in to the repository:
http://www.read.cs.ucla.edu/gitweb?p=click;a=commit;h=c0c49a09dc8cd78bb8e6e8f9117a18bdb42f54ab
Eddie
R H wrote:
> Hi Eddie,
>
> In single threaded, there is no CPU usage. The configuration is simple and shown below, adding the threads at the end will show the high CPU usage. I have also included 2 screen shots to show the problem:
>
> c :: ControlSocket(TCP, 7777);
> s :: Socket(UDP, 127.0.0.1, 5001, VERBOSE true);
> q :: ThreadSafeQueue(10000);
> d :: Discard;
>
> s->q->d;
>
> //StaticThreadSched(c 0);
> //StaticThreadSched(s 1);
> //StaticThreadSched(q 1);
> //StaticThreadSched(d 2);
> //BalancedThreadSched();
>
>
> Thanks,
> Raja
>
> --- On *Sun, 6/14/09, Eddie Kohler /<kohler at cs.ucla.edu>/* wrote:
>
>
> From: Eddie Kohler <kohler at cs.ucla.edu>
> Subject: Re: [Click] Click userlevel multithread high CPU usage
> doing nothing!?
> To: "R H" <rajamhayek at yahoo.com>
> Cc: click at amsterdam.lcs.mit.edu
> Date: Sunday, June 14, 2009, 10:24 PM
>
> Raja,
>
> Does it use 100% CPU time in single-threaded userlevel mode?
>
> Without your configuration it's impossible to know more.
>
> E
>
>
> R H wrote:
> > Hi,
> > When running click in multithreaded/userlevel mode, it always
> uses a lot of CPU time even if it is not processing packets! Why? Can this be fixed?
> > Thank you,Raja
> >
> >
> > _______________________________________________
> > click mailing list
> > click at amsterdam.lcs.mit.edu
> </mc/compose?to=click at amsterdam.lcs.mit.edu>
> > https://amsterdam.lcs.mit.edu/mailman/listinfo/click
>
>
>
> ------------------------------------------------------------------------
>
>
> ------------------------------------------------------------------------
>
More information about the click
mailing list