Red Hat Linux 7 Unleashed

Red Hat Linux 7 Unleashed

By William Ball

Introduction to the Linux Kernel

You may think kernel tuning is no place for the average user. This is both true and false. Like other features of Linux, the possibilities are endless and deep, but you don't need to understand all the gory details of PCI chipsets to tailor a better Linux for your computer. Armed with nothing more than your computer manuals, you can easily zero in on features you need and leave the very technical tuning for some day down the road. If you know your techie details, Linux will not stand in your way, but if you only know how to run a shell command, you can still build a better Linux.

The first checklist question to ask yourself is, "Do I really need to rebuild the kernel?" The answer is almost always "No." Back in good old UNIX days, this step was so common that most commercial UNIX systems performed an automatic kernel config and install whenever the hardware configuration changed. As recently as 1999, most Linux distributions still required manual recompilation to support some components.

Those were the good old days. Today, your default Red Hat kernel stands an excellent chance of running optimally on your hardware, without any source configuration changes. At most, you might fine-tune /etc/modules.conf or set /proc control files. Even if your needs require upgrading to the latest Linux 2.4, you may find it more convenient and just as reliable to fetch the updated binary RPM file.

Do You Really Need to Recompile?

There are many ways to modify Linux. Only one of these is to reconfigure and recompile the kernel. Many runtime parameters, such as sound card ports, hard disk geometries, and IRQ assignments, can be set using bootparams, the command-line options to the LILO. Many runtime characteristics, even delicate issues such as virtual memory and filesystem behaviors, can be queried and set by shell scripts using the /proc filesystem.

The kernel installed by your Red Hat RPM file is very flexible and very complete, but one kernel cannot be all things to all people. You may need to trim the size for a small-memory machine, or boost it to handle 16GB, or even just to recompile to take advantage of your particular brand of CPU. At some point, you will want to harness the real power of UNIX: the power of choice. Kernel tweaking can be as simple as adding a few boot parameters to set a sound card IRQ, or it can involve picking and choosing from the huge list of modules and kernel options in search of an optimal match. Through the kernel configuration, Linux can be adapted for low memory or huge memory, optimized as a router or firewall, extended to support new hardware and alien filesystems, and can include the largest array of network protocols in the industry.

Share ThisShare This

Informit Network