* Diff. between CPU Hard-lockup and Soft-lockup
@ 2012-01-31 9:28 devendra rawat
2012-01-31 12:12 ` naveen yadav
2012-01-31 16:20 ` Dave Hylands
0 siblings, 2 replies; 3+ messages in thread
From: devendra rawat @ 2012-01-31 9:28 UTC (permalink / raw)
To: kernelnewbies
Hi,
What are the Differences between CPU Hard-lockup and Soft-lockup.
Regards,
Devendra
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20120131/2e0baf7d/attachment.html
^ permalink raw reply [flat|nested] 3+ messages in thread
* Diff. between CPU Hard-lockup and Soft-lockup
2012-01-31 9:28 Diff. between CPU Hard-lockup and Soft-lockup devendra rawat
@ 2012-01-31 12:12 ` naveen yadav
2012-01-31 16:20 ` Dave Hylands
1 sibling, 0 replies; 3+ messages in thread
From: naveen yadav @ 2012-01-31 12:12 UTC (permalink / raw)
To: kernelnewbies
soft lockups", which are bugs that cause the kernel to loop in kernel
mode for more than 10 seconds, without giving other tasks a chance to
run
Hard lock up:-> kernel got hang and you can get details with feature
like watch dog.
Thanks
On Tue, Jan 31, 2012 at 2:58 PM, devendra rawat
<devendra.rawat.singh@gmail.com> wrote:
>
> Hi,
>
> What are the Differences between CPU Hard-lockup and Soft-lockup.
>
> Regards,
> Devendra
>
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Diff. between CPU Hard-lockup and Soft-lockup
2012-01-31 9:28 Diff. between CPU Hard-lockup and Soft-lockup devendra rawat
2012-01-31 12:12 ` naveen yadav
@ 2012-01-31 16:20 ` Dave Hylands
1 sibling, 0 replies; 3+ messages in thread
From: Dave Hylands @ 2012-01-31 16:20 UTC (permalink / raw)
To: kernelnewbies
Hi Devendra,
On Tue, Jan 31, 2012 at 1:28 AM, devendra rawat
<devendra.rawat.singh@gmail.com> wrote:
>
> Hi,
>
> What are the Differences between CPU Hard-lockup and Soft-lockup.
When the watchdog is enabled, there is a HW timer that counts down. If
the HW timer reaches 0, then it asserts (triggers an NMI or processor
RESET). Normally, the watchdog has something like a 30 second timeout,
and there is a watchdog thread which runs with a low real-time
priority. So that places it at a higher priority than all of the
normal threads.
The watchdog normally kicks (resets) the timer once per second. When
the timer reaches zero, then the hardlockup has considered to occur.
On some architectures, this will cause an NMI (non-maskable interrupt)
to fire. On architectures which don't support NMI, a reset will occur
(in the reset case you get no reporting of hard lockup - the processor
just reboots).
If the watchdog timer interrupt is running, but the watchdog thread is
not running for some period of time, then this is considered a soft
lockup. Because the watchdog timer interrupt is running, we know that
interrupts are enabled. The fact that the watchdog thread is not
running means either that context switching has been disabled, or some
interrupt or higher priority real-time thread is consuming 100% of the
CPU.
One common reason for hard-lockup is to disable interrupts and not
reenable them.
One common reason for soft lockup is when interrupts fire continuously
(typically happens when writing a new drive and you forgot to deal
with a particular interrupt source).
--
Dave Hylands
Shuswap, BC, Canada
http://www.davehylands.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-01-31 16:20 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-31 9:28 Diff. between CPU Hard-lockup and Soft-lockup devendra rawat
2012-01-31 12:12 ` naveen yadav
2012-01-31 16:20 ` Dave Hylands
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).