Re: Kdump not working with rt patch, tested under 4.4.32/4.4.79/4.9.40

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Aug 09, 2017 at 05:05:42PM +0800, Journey Journey wrote:
> Test case: https://github.com/saiyamd/softlockup_test/blob/master/softlockup_test.c
>

Please in the future provide more information as to what you are trying
to do, what it is you are trying, what you are seeing, and why you think
it's wrong.

Because otherwise, we're forced to reverse engineer your intent. :(

I'm _guessing_ that what you meant to say was:

   I have a testcase module that I use that attempts to trigger the
   kernels softlockup detection.  Here is a link:

      https://github.com/saiyamd/softlockup_test/blob/master/softlockup_test.c

   I'm expecting it to fire the softlockup detector and panic the system
   (I use CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC in my test rig), however,
   when I load this module on an RT system, it doesn't appear to trigger
   the softlockup detector![1]

   What could be wrong?

If that's what you meant, then the answer is:

The way that you are "hogging" the CPU, on PREEMPT_RT, doesn't prevent
the kernel from scheduling other tasks in and out (including the
watchdog thread which pets the watchdog!).

Your test case, effectively is:

    spin_lock(&lock)
    while (1)
       printk("...");
    spin_unlock(&lock)

On RT, spin-lock protected regions are preemptible.  When the watchdog
hrtimer fires and wakes up the softlockup thread, that thread preempts
the thread stuck in this region and touches the watchdog.  This prevents
the watchdog threshold from being reached.

The good news for you is that it should be entirely possible for you to
trigger the softlockup detector on RT entirely in usermode.  All you'd
need to do is disable RT throttling, and set a thread SCHED_FIFO w/ prio
99 spinning.

   Julia

1: Note: this has nothing to do with Kdump whatsoever.
--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [RT Stable]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux