From: Ivid Suvarna <ivid.suvarna@gmail.com> To: Kernel development list <linux-kernel@vger.kernel.org>, kernelnewbies@kernelnewbies.org Subject: Softlockup and Hardlockup sample test module Date: Sun, 15 Apr 2018 05:41:35 +0000 [thread overview] Message-ID: <CABXF_ADbsQUFa4u0iG=nUYgWUtYa_pnwQghsU49zk+xVag3_vQ@mail.gmail.com> (raw) [-- 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
WARNING: multiple messages have this Message-ID (diff)
From: ivid.suvarna@gmail.com (Ivid Suvarna) To: kernelnewbies@lists.kernelnewbies.org Subject: Softlockup and Hardlockup sample test module Date: Sun, 15 Apr 2018 05:41:35 +0000 [thread overview] Message-ID: <CABXF_ADbsQUFa4u0iG=nUYgWUtYa_pnwQghsU49zk+xVag3_vQ@mail.gmail.com> (raw) 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20180415/13768eaa/attachment.html>
next reply other threads:[~2018-04-15 5:41 UTC|newest] Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top 2018-04-15 5:41 Ivid Suvarna [this message] 2018-04-15 5:41 ` Softlockup and Hardlockup sample test module Ivid Suvarna 2018-04-15 6:31 Ivid Suvarna 2018-04-15 7:47 Ivid Suvarna 2018-04-15 7:47 ` Ivid Suvarna 2018-04-15 19:12 ` valdis.kletnieks 2018-04-15 19:12 ` valdis.kletnieks at vt.edu 2018-04-15 22:19 ` Cong Wang 2018-04-15 22:19 ` Cong Wang 2018-05-06 18:13 ` NiftyLinKern Mitchell 2018-05-06 18:36 ` NiftyLinKern Mitchell
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to='CABXF_ADbsQUFa4u0iG=nUYgWUtYa_pnwQghsU49zk+xVag3_vQ@mail.gmail.com' \ --to=ivid.suvarna@gmail.com \ --cc=kernelnewbies@kernelnewbies.org \ --cc=linux-kernel@vger.kernel.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.