12–NVMe-oF Configuration with RDMA
Optimizing Performance
195
AH0054601-00 B
Optimizing Performance
To optimize performance on both initiator and target servers:
1.
Configure the following system BIOS settings:
Power Profiles = 'Max Performance' or equivalent
ALL C-States = disabled
Hyperthreading = disabled
2.
Configure the Linux kernel parameters by editing the
grub
file
(
/etc/default/grub
).
a.
Add parameters to end of line
GRUB_CMDLINE_LINUX
:
GRUB_CMDLINE_LINUX="
nosoftlockup intel_idle.max_cstate=0
processor.max_cstate=1 mce=ignore_ce idle=poll
"
b.
Save the grub file.
c.
Rebuild the
grub
file. To rebuild the
grub
file for a legacy BIOS boot,
issue the following command:
#
grub2-mkconfig -o /boot/grub2/grub.cfg
(Legacy BIOS boot)
To rebuild the
grub
file for an EFI boot, issue the following command:
#
grub2-mkconfig -o /boot/efi/EFI/
<os>
/grub.cfg
(EFI boot)
d.
Reboot the server to implement the changes.
3.
Set the IRQ affinity for all 41000 Series Adapters. The
multi_rss-affin.sh
file is a script file that is listed in
(multi_rss-affin.sh)” on page 196
.
#
systemctl stop irqbalance
#
./multi_rss-affin.sh eth1
4.
Set the CPU frequency. The
cpufreq.sh
file is a script that is listed in
“CPU Frequency (cpufreq.sh)” on page 197
.
#
./cpufreq.sh
The following sections list the scripts that are used in
and