ErrMemout Error inserting lockd: Cannot allocate memory
From Linux NFS
Error inserting lockd: Cannot allocate memory
When attempting to load modules relating to NFS into the kernel, an error may occur as follows:
Error inserting lockd (/lib/modules/22.214.171.124/kernel/fs/lockd/lockd.ko): Cannot allocate memory
The problem is caused by the lockd module failing to attach to the kernel.
This error was observed using a 126.96.36.199 modular vaninlla kernel built using Gentoo, and still exists in the 188.8.131.52 kernel. (Mark Hobley)
modinfo lockd produces the following output:
filename: /lib/modules/184.108.40.206/kernel/fs/lockd/lockd.ko license: GPL description: NFS file locking service version 0.5. author: Olaf Kirch <email@example.com> depends: sunrpc vermagic: 220.127.116.11 preempt mod_unload 586 parm: nsm_use_hostnames:bool
There is currently a bug in the kernel, which requires the sysctl system control interface to be installed into the kernel. Rebuild the kernel with CONFIG_PROC_SYSCTL enabled to enable loading of the lockd module.