raspberrypi / linux

Kernel source tree for Raspberry Pi-provided kernel builds. Issues unrelated to the linux kernel should be posted on the community forum at https://forums.raspberrypi.com/
Other
11.14k stars 4.99k forks source link

Please turn on CONFIG_SUNRPC_DEBUG #4698

Closed DurvalMenezes closed 2 years ago

DurvalMenezes commented 2 years ago

Describe the bug

CONFIG_SUNRPC_DEBUG is turned off, which makes it very hard to troubleshoot NFS server or client issues on the machine as rpcdebug just fails (see below).

To fix this, it would be necessary to set CONFIG_SUNRPC_DEBUG=y in the kernel config (it can't be set to =m).

To reproduce

#  rpcdebug -m nfsd all
    /proc/sys/sunrpc/nfsd_debug: No such file or directory

Expected behaviour The above command should complete with no errors.

Actual behaviour The above command shows the depicted error.

System

Logs N/A

*Full raspinfo output can be found here: https://0x0.st/-RBJ.txt

Additional context

pelwell commented 2 years ago

Believe it or not, this option adds about 90kB of code and data to the core kernel for a Pi 4. That's a lot for a feature that is likely to be only occasionally used and by very few people (you are the first person to ask). The Arch Linux link config request is for X86 systems, which are likely to have more RAM.

Building a custom kernel is not difficult for those occasions when you have an NFS problem - see https://www.raspberrypi.com/documentation/computers/linux_kernel.html#building.