RE: sys/i386/i386/machdep.c:cpu_idle() changes causes this Was:

2000-10-23 Thread John Baldwin


On 22-Oct-00 [EMAIL PROTECTED] wrote:
>> 
>> On 20-Oct-00 Valentin Chopov wrote:
>> > I found that if I remove  #ifndef SMP /#endif  in:
>> 
>> Errr, this doesn't really make sense, and if anything is probably
>> hiding the problem.  Also, this change will potentially increase
>> interrupt latency even further on SMP machines.
> 
> Interrupts are disabled if Giant is busy in vm_page_zero_idle, thus
> the idle proc calls mi_switch with interrupts disabled and the process
> being scheduled starts running with interrupts disabled.
> 
> I suggest removing the asm statement from vm_page_zero_idle as a first
> stage in rewriting vm_page_zero_idle.

A..  Thanks for the tip.  I didn't know that vm_page_zero_idle
was this evil.  Yuck.  In fact, vm_page_zero_idle() is no longer called
with interrupts disabled, so all the interrupt foolishness can go away.

-- 

John Baldwin <[EMAIL PROTECTED]> -- http://www.FreeBSD.org/~jhb/
PGP Key: http://www.baldwin.cx/~john/pgpkey.asc
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



RE: sys/i386/i386/machdep.c:cpu_idle() changes causes this Was:

2000-10-22 Thread Tor . Egge

> 
> On 20-Oct-00 Valentin Chopov wrote:
> > I found that if I remove  #ifndef SMP /#endif  in:
> 
> Errr, this doesn't really make sense, and if anything is probably
> hiding the problem.  Also, this change will potentially increase
> interrupt latency even further on SMP machines.

Interrupts are disabled if Giant is busy in vm_page_zero_idle, thus
the idle proc calls mi_switch with interrupts disabled and the process
being scheduled starts running with interrupts disabled.

I suggest removing the asm statement from vm_page_zero_idle as a first
stage in rewriting vm_page_zero_idle.

- Tor Egge


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



RE: sys/i386/i386/machdep.c:cpu_idle() changes causes this Was:

2000-10-20 Thread Manfred Antar

At 01:21 PM 10/20/2000 -0700, John Baldwin wrote:

>On 20-Oct-00 Valentin Chopov wrote:
>> I found that if I remove  #ifndef SMP /#endif  in:
>
>Errr, this doesn't really make sense, and if anything is probably
>hiding the problem.  Also, this change will potentially increase
>interrupt latency even further on SMP machines.
>
>-- 

John 
Do you have any idea what's causing this ?
Oct 20 21:20:36 pozo last message repeated 17 times
Oct 20 21:30:00 pozo last message repeated 4 times
Oct 20 21:30:00 pozo last message repeated 4 times
Oct 20 21:41:26 pozo last message repeated 9 times
Oct 20 21:41:26 pozo last message repeated 9 times
Oct 20 21:50:01 pozo last message repeated 13 times
Oct 20 21:50:01 pozo last message repeated 13 times
#dmesg 
kernel trap 12 with interrupts disabled
kernel trap 12 with interrupts disabled
kernel trap 12 with interrupts disabled
kernel trap 12 with interrupts disabled
kernel trap 12 with interrupts disabled
kernel trap 12 with interrupts disabled
kernel trap 12 with interrupts disabled
kernel trap 12 with interrupts disabled
kernel trap 12 with interrupts disabled
kernel trap 12 with interrupts disabled
kernel trap 12 with interrupts disabled
kernel trap 12 with interrupts disabled
kernel trap 12 with interrupts disabled
kernel trap 12 with interrupts disabled
kernel trap 12 with interrupts disabled
kernel trap 12 with interrupts disabled
this is a very truncated version
there are probably 301 messages like this
in a SMP machine that has only been up about 4 hours with
very little activity , just a few cvsups and mail. If I build a kernel
then the messages really increase. If there is any thing I can do

Thanks
Manfred
==
||  [EMAIL PROTECTED]   ||
||  Ph. (415) 681-6235  ||
==



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



RE: sys/i386/i386/machdep.c:cpu_idle() changes causes this Was:

2000-10-20 Thread John Baldwin


On 20-Oct-00 Valentin Chopov wrote:
> I found that if I remove  #ifndef SMP /#endif  in:

Errr, this doesn't really make sense, and if anything is probably
hiding the problem.  Also, this change will potentially increase
interrupt latency even further on SMP machines.

-- 

John Baldwin <[EMAIL PROTECTED]> -- http://www.FreeBSD.org/~jhb/
PGP Key: http://www.baldwin.cx/~john/pgpkey.asc
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message