LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* Softlockup and Hardlockup sample test module
@ 2018-04-15  5:41 Ivid Suvarna
  0 siblings, 0 replies; 4+ messages in thread
From: Ivid Suvarna @ 2018-04-15  5:41 UTC (permalink / raw)
  To: Kernel development list, kernelnewbies


[-- Attachment #1.1: Type: text/plain, Size: 625 bytes --]

Hi All,

Could you please provide some sample test module for causing a Softlockup
and Hardlockup in latest kernel for SMP for only testing purposes. I assume
there are some Kconfigs to be enabled as well for this.

I had tried with the module where I put a busy loop inside spinlock but was
not able to cause any lockups. Maybe this is because of SMP which schedule
the job to other CPU. "How do I make a task to run on single CPU only?"

I only get RCU stalls sometimes instead of softlockup when I use busy loop
inside a spinlock. Is there any explanation for difference between these
stalls and softlockup.

Thanks,
IVID

[-- Attachment #1.2: Type: text/html, Size: 863 bytes --]

[-- Attachment #2: Type: text/plain, Size: 170 bytes --]

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] 4+ messages in thread
* Softlockup and Hardlockup sample test module
@ 2018-04-15  7:47 Ivid Suvarna
  2018-04-15 19:12 ` valdis.kletnieks
  2018-04-15 22:19 ` Cong Wang
  0 siblings, 2 replies; 4+ messages in thread
From: Ivid Suvarna @ 2018-04-15  7:47 UTC (permalink / raw)
  To: Kernel development list, kernelnewbies

Hi All,

Could you please provide some sample test module for causing a
Softlockup and Hardlockup in latest kernel for SMP for testing
purposes. I assume there are some Kconfigs to be enabled as well for
this.

I had tried with the module where I put a busy loop inside spinlock
but was not able to cause any lockups. Maybe this is because of SMP
which schedule the job to other CPU. "How do I make a task to run on
single CPU only?"

I only get RCU stalls sometimes instead of softlockup when I use busy
loop inside a spinlock. Is there any explanation for difference
between these stalls and softlockup.

Thanks,
IVID

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-04-15 22:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-15  5:41 Softlockup and Hardlockup sample test module Ivid Suvarna
2018-04-15  7:47 Ivid Suvarna
2018-04-15 19:12 ` valdis.kletnieks
2018-04-15 22:19 ` Cong Wang

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).