There are a few things to keep in mind when tuning a server for performance. It is important to ensure that you can roll changes back to a known good state. For this, backups are important. Also you need create the modified configuration on a non-production VM or machine.
- [Instructor] There are a few things to take into consideration before making changes to kernel parameters for optimization. First, back up your installation before optimizing. The default Red Hat configuration is a good baseline for most services running under moderate load. But with configuration changes, it may be possible to get your system so far out of whack that a restore is necessary. You will also want to test your performance tuning on a cloned machine and not a production server. In our case we're using VirtualBox so we can just clone the VM quickly, makes changes, and test them.
If we're making changes on a physical machine, we'd want to have a test machine that is not our production server to test our changes on. Also, if your server is a virtual machine, be sure that you account for load on the host from other processes, including other virtual machines. It may be wise to shut down any other VMs on the host while you are performance testing to ensure reliable results.
- Performance monitoring
- Gathering statistics
- Tuning the kernel with tuned
- Tuning the kernel manually
- Managing kernel modules
- Installing kernel modules from disk
- Logging system messages remotely