3.2. Optimizing Virtual Machines On Red Hat Gluster Storage Volumes
The readahead mechanism is essential for guest sequential read performance on virtual machines. The virtual machine-tuned profile provides insufficient readahead. You can optimize the virtual machine performance by changing the
multiply_disk_readahead 4 to multiply_disk_readahead 16. If you are running a Red Hat Enterprise Linux host, run the following commands to enable read-ahead.
Install the Tune daemon
Install the tuned daemon that tunes the system settings dynamically.yum install tuned
# yum install tunedCopy to Clipboard Copied! Toggle word wrap Toggle overflow Edit the virtual-guest profile
Edit the/etc/tune-profiles/virtual-guest/ktune.shfile.Identify the linemultiply_disk_readahead 4and replace it withmultiply_disk_readahead 16Apply the virtual-guest profile on the virtual machines
Activate the updated profile with the command:tuned-adm profile virtual-guest
# tuned-adm profile virtual-guestCopy to Clipboard Copied! Toggle word wrap Toggle overflow