kergen icon indicating copy to clipboard operation
kergen copied to clipboard

Automated Kernel Configuration with specific modules configured to be linked directly into kernel instead of as modules

Open wskinny opened this issue 2 years ago • 0 comments

Hello and many thanks for this tool!

I would like your help with how to use this tool to achieve the specific type of configuration generated (as this is something I manually done before and achieved major performance increases at the time):

1 - Get the current system full hardware list 2 - Set any driver that is not present on the system and is not crucial to be a module 3 - Configure every "platform/system" driver to be kernel linked instead of used as a module, this needs to cover mainboard chipset but not for example Audio codec drivers or GPU drivers (multimedia in general stuff must stay as modules), HDD controllers be it IDE/ATA, SATA, SCSI or SAS that are currently present on the system will be linked directly to the kernel instead of being set as a module (Yes I understand the implications system maintenance wise and how this can force the need for reboots in situations where a module reload would otherwise suffice, don't care) 4 - Any and every filesystem driver (except FUSE) that is in use at the time of the configuration generation will be directly linked to the kernel (so if you want to include funky things like for example Amiga FFS or OS/2 HPFS you could simply mount a device using that filesystem causing its config to become directly linked instead of loaded as a module) (ZFS in special I must have as extensively as possible directly linked and yes I do understand this will make any upgrades to ZFS require me to recompile the kernel, again don't care, the system will rarely be offline and the performance gains justify any sporadic need for reboots) 5 - Ensure that the compiler options will be set to optimize for speed/performance 6 - Product a listing of everything that was changed to be linked instead of loaded as a module 7 - Have a service to monitor for kernel upgrade releases that will attempt by itself to apply the same configuration to the new kernel version and notify the system admin of the results of the attempt (if no issues are found attempt compilation at a low system usage time and report the result, if successful the admin should be able to use the result directly instead of compiling again)

8 - Let me know what you thing of the stupid idea to share this with you this way as at this time am not really seeing another way, my apolgies.

wskinny avatar Nov 11 '22 21:11 wskinny