Compiling a Custom Kernel For MX GNU/Xorg/Linux For a Surprising Increase in Performance

In this video I am building a custom kernel for MX GNU/Xorg/Linux so that I cam compare its speed with the standard distro kernel that is installed by default. The reason why I am going to all of this trouble, is because the kernel configuration help options will actually tell you, if a certain option can slow down the operation of the kernel, so I am doing this in order to see what happens, when those potentially slow options are turned off.

The end result from this custom kernel test was actually very surprising and this shows how much the distro organisations have become like Microsoft, where they care more about debugging the users crashes, rather than caring about the performance of the kernel for the people who are not having any problems. If people decided to use their brains more, then they would have been able to work out what is going by just spending a bit of time looking into the programs and systems that run their computers. What I was doing with the kernel menuconfig might look a bit complicated, but this is something that can be learned by being willing to do a bit of research. Windows and Mac OS obviously do not allow you to configure their kernels, so this users obviously have to just make do with whatever configuration the kernel developers have used, so if a lot of debugging has been compiled in, so that the developers can use the end users as guinea pigs, then the end users are just going to have to put up with it, like the lemmings that they are.

sudo apt-get install build-essential fakeroot libncurses5-dev module-assistant pkg-config bison flex

Uncomment the deb-src and Buster backports deb lines:
sudo nano /etc/apt/sources.list.d/debian.list

sudo apt-get update
sudo apt-get build-dep linux

Not as root since will get an error:
apt-get source linux
cd linux-?.??.???

fakeroot make -f debian/rules.gen setup_amd64_none_amd64
make -C debian/build/build_amd64_none_amd64 menuconfig

arch/x86/Kconfig.debug:17
arch/x86/Kconfig.debug:352

fakeroot debian/rules source
fakeroot make -j5 -f debian/rules.gen binary-arch_amd64_none_amd64

cd ..

sudo dpkg -i linux-image-????-amd64-unsigned_????_amd64.deb
sudo dpkg -i linux-headers-????-amd64_????_amd64.deb

sudo apt-get install sysbench
(sudo apt --fix-broken install)?

sysbench cpu --threads=4 --time=30 run
sysbench memory --threads=4 --time=30 run
sysbench fileio --threads=4 --time=30 --file-test-mode=seqwr run
sysbench threads --threads=4 --time=30 run