Let’s save the stock kernel config file, not that I use the `linux` dir directly, as it’s a symlink to the latest linux-4.14.17 dir.

:~ # cp /usr/src/linux/.config /usr/src/linux/.config.stock

Get the running kernel config, (though I could have used the previous .config file ) . As a good habit, I always run `make oldconfig` to show if there is newer option . I doubt to find some new option here as I’m recompiling the running slackware kernel… but when compiling a new kernel version, new option can be added. You night want to check them out and set them as built-in/module/not set.

Processor type and features -> add as built-in Numa Memory Allocation and Scheduler Support

Processor type and features -> add as built-in NUMA emulation

Also as explained in the official doc, if you rebuilt an already installed kernel, in order to avoid messing up with kernel modules for that kernel, you need to change the LOCAL_VERSION under: General setup -> Local version ( I used a suffix -vpp )

:/usr/src/linux # /usr/share/mkinitrd/mkinitrd_command_generator.sh -k 4.14.17-vpp
#
# mkinitrd_command_generator.sh revision 1.45
#
# This script will now make a recommendation about the command to use
# in case you require an initrd image to boot a kernel that does not
# have support for your storage or root filesystem built in
# (such as the Slackware 'generic' kernels').
# A suitable 'mkinitrd' command will be:
mkinitrd -c -k 4.14.17-vpp -f ext4 -r /dev/sda1 -m xhci-pci:ohci-pci:ehci-pci:xhci-hcd:uhci-hcd:ehci-hcd:hid:usbhid:i2c-hid:hid_generic:hid-cherry:hid-logitech:hid-logitech-dj:hid-logitech-hidpp:hid-lenovo:hid-microsoft:hid_multitouch:jbd2:mbcache:ext4 -u -o /boot/initrd.gz

Please note that I’ve specified the -k option with kernel version set to 4.14.17-vpp instead of just 4.14.17. It’s because mkinitrd will look in the corresponding directory for kernel modules, ie in /lib/modules/$kernelVersion … here we want mkinitrd to look in /lib/modules/4.14.17-vpp/