+1 vote
in Linux by
How can we reduce the size of the kernel?

1 Answer

0 votes
by

There are codes which are unnecessary and are not executed, we can find and disable them to make the processing faster in the project. The kernel comes with an editor known as “kernel’s configuration editor” by which we can remove and disable chunks of code that are not required.

There may be the codes for which the hardware is not present in the system and you have to make your system understand about what are your system’s requirements. Below are some guiding principles by which you can find the codes to be removed.

Hardware Networking Drivers:Several of system-on-chips have Wi-Fi drivers, serial and other hardware that are not used, you can remove those drivers that are built on the kernel.

File Systems:The system has the only requirement of few file systems but in the kernel you will find many file systems drivers that are not in use e.g. Devices which make use of flash file systems do not require ext2 or ext3 file system so they can be removed. Be cautious that do not remove the file systems that are essential or you may have the use of the systems in the future.

Debugging and Profiling:All the systems which come under kernel hacking entry could be disabled if not in use.

Related questions

0 votes
asked Dec 21, 2022 in HDFS by Robin
...