Re: SMP and setrunnable()- scheduler 4bsd

2003-07-21 Thread Julian Elischer
On Tue, 22 Jul 2003, Andy Farkas wrote: > > Mr Wolf, > > Heh, you noticed :) > > > > Currently (cpu_idle_hlt=1) the load is fluctuating between 2.20 and 3.60 > > > every few minutes! (xload looks like a graph of a sinewave) > > > > > > If I set cpu_idle_hlt back to 0 the load goes back to a st

Re: SMP and setrunnable()- scheduler 4bsd

2003-07-21 Thread Andy Farkas
> Mr Wolf, Heh, you noticed :) > > Currently (cpu_idle_hlt=1) the load is fluctuating between 2.20 and 3.60 > > every few minutes! (xload looks like a graph of a sinewave) > > > > If I set cpu_idle_hlt back to 0 the load goes back to a steady 3.80 where > > it should be. > > define "should". Whe

Re: SMP and setrunnable()- scheduler 4bsd

2003-07-21 Thread Julian Elischer
On Tue, 22 Jul 2003, Andy Farkas wrote: > On Wed, 9 Jul 2003, Terry Lambert wrote: > > Andy Farkas wrote: > > > On Tue, 8 Jul 2003, Julian Elischer wrote: > > > > It looks tp me that if we make a thread runnable > > > > and there is a processor in the idle loop, the idle processor should be > >

Re: SMP and setrunnable()- scheduler 4bsd

2003-07-21 Thread Andy Farkas
On Wed, 9 Jul 2003, Terry Lambert wrote: > Andy Farkas wrote: > > On Tue, 8 Jul 2003, Julian Elischer wrote: > > > It looks tp me that if we make a thread runnable > > > and there is a processor in the idle loop, the idle processor should be > > > kicked in some way to make it go get the newly runn

RE: SMP and setrunnable()- scheduler 4bsd

2003-07-11 Thread Matthew Dillon
Certain operational sequences fair really badly when cpu_idle_hlt is turned off, and its definitely due to contention. I've seen this quite a lot. I have some numbers below. Generally speaking I think its a good idea to wake up a HLTed cpu, but it has to be done intelligently

RE: SMP and setrunnable()- scheduler 4bsd

2003-07-10 Thread John Baldwin
On 10-Jul-2003 Julian Elischer wrote: > BTW in cpu_idle() > >#ifdef SMP > if (mp_grab_cpu_hlt()) > return; >#endif > > > whta gain is there in this returning.. it will anyhow if there is work > to do, and sched_runnable is called either way.. > > couldn't it just be >

RE: SMP and setrunnable()- scheduler 4bsd

2003-07-10 Thread Julian Elischer
On Thu, 10 Jul 2003, John Baldwin wrote: > > 307.504u 93.581s 4:23.22 152.3% 3047+5913k 29+1055io 8pf+0w > > > > What is so stunning is the massive increase in user time > > for the case where the cpu is not being idled. > > I'm hoping this is a statistical artifact of some sort.. > > I don't

RE: SMP and setrunnable()- scheduler 4bsd

2003-07-10 Thread John Baldwin
On 10-Jul-2003 Julian Elischer wrote: > OK so I return with some numbers > > > On Tue, 8 Jul 2003, John Baldwin wrote: > >> >> On 08-Jul-2003 Julian Elischer wrote: >> > It looks tp me that if we make a thread runnable >> > and there is a processor in the idle loop, the idle processor shou

Re: SMP and setrunnable()- scheduler 4bsd

2003-07-10 Thread Terry Lambert
John Baldwin wrote: > On 09-Jul-2003 Terry Lambert wrote: > > I thought that there was either a SPARC or Alpha box where Poul > > had to mess with the divider because they were delivered round > > robin, instead? > > No. The only anomaly I know of is that on Alpha 2100's, the clock > interrupt se

RE: SMP and setrunnable()- scheduler 4bsd

2003-07-09 Thread Julian Elischer
On Wed, 9 Jul 2003, Julian Elischer wrote: > OK so I return with some numbers > > > On Tue, 8 Jul 2003, John Baldwin wrote: > > > > > On 08-Jul-2003 Julian Elischer wrote: > > > It looks tp me that if we make a thread runnable > > > and there is a processor in the idle loop, the idle pro

RE: SMP and setrunnable()- scheduler 4bsd

2003-07-09 Thread Julian Elischer
OK so I return with some numbers On Tue, 8 Jul 2003, John Baldwin wrote: > > On 08-Jul-2003 Julian Elischer wrote: > > It looks tp me that if we make a thread runnable > > and there is a processor in the idle loop, the idle processor should be > > kicked in some way to make it go get the ne

Re: SMP and setrunnable()- scheduler 4bsd

2003-07-09 Thread John Baldwin
On 09-Jul-2003 Terry Lambert wrote: > John Baldwin wrote: >> This is why HLT is not enabled in SMP by default (or at least was, >> it may be turned on now). Given that the clock interrupts are >> effectively broadcast to all CPU's one way or another for all >> arch's (that I know of), you will ne

Re: SMP and setrunnable()- scheduler 4bsd

2003-07-09 Thread Terry Lambert
Andy Farkas wrote: > On Tue, 8 Jul 2003, Julian Elischer wrote: > > It looks tp me that if we make a thread runnable > > and there is a processor in the idle loop, the idle processor should be > > kicked in some way to make it go get the newly runnable thread. > > Is this what's happenning to me a

Re: SMP and setrunnable()- scheduler 4bsd

2003-07-09 Thread Terry Lambert
Julian Elischer wrote: > It looks tp me that if we make a thread runnable > and there is a processor in the idle loop, the idle processor should be > kicked in some way to make it go get the newly runnable thread. > > If the processors are halting in the idle loop however, it may take > quite a wh

Re: SMP and setrunnable()- scheduler 4bsd

2003-07-08 Thread Terry Lambert
John Baldwin wrote: > This is why HLT is not enabled in SMP by default (or at least was, > it may be turned on now). Given that the clock interrupts are > effectively broadcast to all CPU's one way or another for all > arch's (that I know of), you will never halt more than the interval > between c

RE: SMP and setrunnable()- scheduler 4bsd

2003-07-08 Thread Julian Elischer
On Tue, 8 Jul 2003, John Baldwin wrote: > > On 08-Jul-2003 Julian Elischer wrote: > > It looks tp me that if we make a thread runnable > > and there is a processor in the idle loop, the idle processor should be > > kicked in some way to make it go get the newly runnable thread. > > > > If the

Re: SMP and setrunnable()- scheduler 4bsd

2003-07-08 Thread Andy Farkas
On Tue, 8 Jul 2003, Julian Elischer wrote: > It looks tp me that if we make a thread runnable > and there is a processor in the idle loop, the idle processor should be > kicked in some way to make it go get the newly runnable thread. Is this what's happenning to me an my setiathomes? -- :{ [EM

RE: SMP and setrunnable()- scheduler 4bsd

2003-07-08 Thread John Baldwin
On 08-Jul-2003 Julian Elischer wrote: > It looks tp me that if we make a thread runnable > and there is a processor in the idle loop, the idle processor should be > kicked in some way to make it go get the newly runnable thread. > > If the processors are halting in the idle loop however, it may t