0

When I am trying to set kernel.softlockup_panic value to 30 instead of 0. I am getting Invalid argument error

# sysctl -w kernel.softlockup_panic=30

Error message

# sysctl: setting key "kernel.softlockup_panic": Invalid argument

kernel.softlockup_panic = 30

Can anyone please guide? I am using SLES12 64bit OS

# uname -a
Linux linux-r1qg 3.12.28-4-default #1 SMP Thu Sep 25 17:02:34 UTC 2014 (9879bd4) x86_64 x86_64 x86_64 GNU/Linux
Sam Protsenko
  • 14,045
  • 4
  • 59
  • 75
Kanishka Dutta
  • 35
  • 1
  • 2
  • 9
  • This sysctl can be set to either 1 or 0, which should not be surprising. What is the deal with the number 30? –  Apr 23 '16 at 02:05
  • This is softlockup_panic timer value being set to 30 seconds instead of 0 seconds. It is not necessary all sysctl values are either 0 or 1. – Kanishka Dutta Apr 24 '16 at 15:15
  • 1
    This is not a timer. This only tells the kernel whether to panic on softlockup. http://lxr.free-electrons.com/source/kernel/sysctl.c#L882 –  Apr 25 '16 at 04:30
  • OK Thank you for the info! – Kanishka Dutta Apr 26 '16 at 03:41

1 Answers1

0

I Have used syctl for other purposes. Guess this params is not supported by kernel . you can check this thru either of the commands

sudo sysctl -a  | grep softlockup
 cat /proc/sys /etc/sysctl.conf
ecsrid
  • 29
  • 4
  • Yes, I have already used this commands, softlockup panic is available. first command output: linux-r1qg:~ # sudo sysctl -a | grep softlockup *kernel.softlockup_panic = 0* – Kanishka Dutta Apr 22 '16 at 10:49
  • 1
    Taking a long shot. Check out (this is for ubuntu) http://ubuntuforums.org/showthread.php?t=1789826 as per https://www.kernel.org/doc/Documentation/lockup-watchdogs.txt watchdog timer is required for this feature. Can you check if watchdog process is running or /dev/watchdog is created ? – ecsrid Apr 22 '16 at 11:42
  • Thank you for the response! Yes, I do have /dev/watchdog created. – Kanishka Dutta Apr 22 '16 at 12:33