scheduling

Leigh Stoller stoller at fast.cs.utah.edu
Fri Jun 2 13:30:09 EDT 2000


Hi. So I notice a couple of examples of the following. Note that when using
the RR scheduler, reschedule() is not called. Is this just because RR is
deprecated past the point of no return? Or, am I missing something in how
scheduling works?

FromDevice::run_scheduled()
{
  [snip]

#ifndef RR_SCHED
#ifdef ADJ_TICKETS
  int adj = tickets() / 8;
  if (adj < 4) adj = 4;
  
  if (i == INPUT_MAX_PKTS_PER_RUN) adj *= 2;
  if (i < INPUT_MAX_PKTS_PER_RUN/4) adj = 0 - adj;

  adj_tickets(adj);
#endif /* ADJ_TICKETS */
  reschedule();
#endif /* RR_SCHED */
}

Thanks
Lbs

---------------------------------------------------------------------------
Leigh B. Stoller                     Computer Science - Flux Research Group
stoller at cs.utah.edu                  University of Utah
http://www.cs.utah.edu/~stoller      Salt Lake City, Utah 84112
Voice: (541) 929-2666                FAX: (801) 585-3743
---------------------------------------------------------------------------



More information about the click mailing list