How can I investigate the cause of "watchdog: BUG: soft lockup"?
Valdis Kl=?utf-8?Q?=c4=93?=tnieks
valdis.kletnieks at vt.edu
Sat Jul 4 04:09:41 EDT 2020
> Can I draw the conclusion that continually acquiring the spinlock causes the soft
> lockup and the CPU has been stuck for 22s?
> Can I think in this way?
No. It's been stuck for 22s *TRYING* and *FAILING* to get the spinlock.
For comparison - spinlocks are usually used when you need a lock, but the
code protected by the lock is short (things like adding to a linked list, etc),
so it should again become available in milliseconds - things where it would take
longer to put this thread to sleep and wake another one up than we expect
to be waiting for this lock.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20200704/33a8188b/attachment.sig>
More information about the Kernelnewbies
mailing list