![]() ![]() It would be best to seek out assistance from a source knowledgeable with the specific distribution you are working with. These directories are only necessary if you wish to rebuild your kernel with new modules included, or old modules removed. The /usr/lib and /lib directory is where Linux stores object libraries and shared libraries that are necessary to run certain commands, including kernel code. The code necessary to create a new kernel with new module included, or old modules removed is usually: /lib/modules/$(uname -r)/kernel although on some distributions the code is found in /usr/lib/modules/$(uname -r)/kernel. Calling either one is simply a branch to the memory location where it resides. Modules are not slower, by the way, than base kernel modules.It is possible to try out different parameters or even change the code repeatedly in rapid succession, without waiting for a boot. What would require a full reboot to do with a filesystem driver built into the kernel can be done with a few quick commands using modules. Modules are much faster to maintain and debug.All parts of the base kernel stay loaded, in real storage, not just virtual storage. Using modules can save memory, because they are loaded only when the system is actually using them.If the system dies after the base kernel is up and running, it's an easy matter to track the problem down to the trouble-making device driver and just not load that device driver until the problem is fixed. If the same device driver is a module, though, the base kernel is up and running before the device driver even gets loaded. It can also be really hard to tell which part of the base kernel caused the trouble. A bug in a device driver which is bound into the kernel can stop the system from booting at all. It is easier to diagnose system problems.Once you have a working base kernel, it is good to leave it untouched as long as possible. ![]() This saves time and prevents the possibility of introducing an error in rebuilding and reinstalling the base kernel. The kernel does not have to rebuild your kernel as often.There are several advantages that come with using kernel modules: To dynamically load or remove a module, it has to be configured as a loadable module in the kernel configuration. A module can be configured as built-in or loadable. They extend the functionality of the kernel without the need to reboot the system. Kernel modules are pieces of code that can be loaded and unloaded into the kernel upon demand.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |