Hi Harald, Have a look at the ScheduleInfo element - http://read.cs.ucla.edu/click/elements/scheduleinfo . You should be able to prioritize FromDevice over ToDevice. Although I have never tested ScheduleInfo in userlevel Click I believe it should work.
Alternative you can also give Click's userlevel multithreading a go. Using the StaticThreadSched element you can schedule FromDevice and ToDevice on separate dedicated threads. Beyers On Tue, Jun 1, 2010 at 11:53 AM, Harald Schiƶberg < [email protected]> wrote: > Hi, > > following problem with userlevel: > > If click is CPU-bound and we always have packets to send, > then the ToDevice::run_task will call _task.fast_reschedule() all the > time, giving no cpu at all to the ingress processing. > > This is good behaviour for IP forwarding ( deliver before spending cpu > on receiving), > but I need to prioritize input processing over output. > ( I need to process control-frames to stop sending ) > > > I tried to replace _task.fast_reschedule() with _task.reschedule() but > that does solve it. Any suggestions ? > > Harald > > _______________________________________________ > click mailing list > [email protected] > https://amsterdam.lcs.mit.edu/mailman/listinfo/click > > _______________________________________________ click mailing list [email protected] https://amsterdam.lcs.mit.edu/mailman/listinfo/click
