Re: 4bsd fuzzy runq

2008-05-12 Thread Julian Elischer
Elijah Buck wrote: Hi, I'm looking at the code for 4bsd fuzzy run queues in kern_switch.c The relevant bit: if (fuzz 1) { int count = fuzz; int cpu = PCPU_GET(cpuid); struct thread *td2; td2 = td = TAILQ_FIRST(rqh); while (count-- td2) { if (td-td_lastcpu == cpu)

4bsd fuzzy runq

2008-05-11 Thread Elijah Buck
Hi, I'm looking at the code for 4bsd fuzzy run queues in kern_switch.c The relevant bit: if (fuzz 1) { int count = fuzz; int cpu = PCPU_GET(cpuid); struct thread *td2; td2 = td = TAILQ_FIRST(rqh); while (count-- td2) { if (td-td_lastcpu == cpu) { td =