Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 May 2002 18:41:08 -0700 (PDT)
From:      David Xu <bsddiy@yahoo.com>
To:        Terry Lambert <tlambert2@mindspring.com>, Andrew Gallatin <gallatin@cs.duke.edu>
Cc:        freebsd-smp@freebsd.org
Subject:   Re: hlt when idle?
Message-ID:  <20020502014108.24342.qmail@web20908.mail.yahoo.com>

next in thread | raw e-mail | index | archive | help
>Andrew Gallatin wrote:
> Can somebody remind me why we do not hlt in the idle loop on MP x86s?
>
>Halting with "giant" and/or "the scheduler lock" held is bad.
>
>> Is this because a HLTed CPU is not going to notice a new runnable job
>> (possibly migrating from another CPU) until it gets an interrupt to
>> wake it up?
>
>Partly.  It's worse than that, if the system is relatively
>quiescent.  Interrupts are routed with entry to the kernel,
>the system doesn't run in "virtual wire" mode, and it doesn't
>support seperately routing interrupts.

You can not set "virtual wire" mode when SMP is enabled otherwise every CPU
will send interrupt ACK to PIC and make mess the PIC and lost other interrupts.

--
David Xu


__________________________________________________
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-smp" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020502014108.24342.qmail>