1

I'm on a Yocto Linux distribution and I need to set the sysctl tunable kernel.panic_on_rcu_stall to 1. The problem is when I list the elements inside /proc/sys/kernel I have no panic_on_rcu_stall and if I try to set the option anyway I get the folowing error:

# sysctl -w kernel.panic_on_rcu_stall=1
sysctl: error: 'kernel.panic_on_rcu_stall' is an unknown key

I know that the key exist, we can see it on the Linux Kernel documentation, but it also specify that

Currently, these files might (depending on your configuration) show up in /proc/sys/kernel:

And this is all about, what the documentation means by your configuration and how to change it.

I'm using the 4.4.38+linaro Linux kernel.

Thanks in advance.

Johann
  • 11
  • 1
  • 4
  • 1
    You should configure and build a new kernel. For "your configuration" you should read "the configuration of kernel you used to build it". – Giacomo Catenazzi Apr 07 '21 at 12:30
  • 2
    In kernel 4.4. there is no `panic_on_rcu_stall` option. The option appears only in 4.8: https://elixir.bootlin.com/linux/v4.8/C/ident/sysctl_panic_on_rcu_stall. – Tsyvarev Apr 07 '21 at 13:31
  • Thanks a lot. I will update the kernel and retry. – Johann Apr 08 '21 at 12:09

1 Answers1

0

Thanks for your comments, Tsyvarev was right, after applying this patch to my kernel recipe in my Yocto project, the option kernel.panic_on_rcu_stall appeared in /proc/sys/kernel.

Johann
  • 11
  • 1
  • 4