Storage Performance Appears To Degrade After Upgrading To Later Service Packs
This document (7023896) is provided subject to the disclaimer at the end of this document.
Environment
SUSE Linux Enterprise Server 15 Service Pack 1 (SLES 15 SP2)
Situation
Resolution
Cause
Additional Information
SUSE Linux Enterprise Server 12-SP2: 2017-12-21 - The Linux Kernel 2141 - kernel-default-4.4.103-92.53.1
SUSE Linux Enterprise Server 12-SP3: 2017-08-29 - The Linux Kernel 1404 - kernel-default-4.4.82-6.3.1
Regardless of if a patched kernel is used, if the below suggested udev rule is used, this will prevent any max_sectors_kb reset from being permanent (it will be automatically be reverted to the 'manually set' value).
cat >/etc/udev/rules.d/50-max-sectors.rules <<EOF # Limit IO size for storage attached to fibre controller ACTION!="add", GOTO="max_sectors_end" SUBSYSTEM!="block", GOTO="max_sectors_end" KERNEL!="sd*[!0-9]", GOTO="max_sectors_end" # This is necessary because "vendor" attribute is present on multiple levels # ATTRS{vendor} returns the PCI vendor attribute, not SCSI SUBSYSTEMS=="scsi", ENV{.vnd}="$attr{vendor}", ENV{.mdl}="$attr{model}" DRIVERS=="<fibre_card_driver>", ENV{.vnd}=="DGC*", ENV{.mdl}=="RAID*", ATTR{queue/max_sectors_kb}="<optimal_max_IO_value>" LABEL="max_sectors_end" EOF
udevadm trigger -c add /dev/sd$X
cat /sys/block/sd$X/queue/max_sectors_kb
If block devices are used as child devices for multipath dm-X devices the value change can be synced to dm devices with following command:
multipathd -k'reconfigure all'
These rules for setting up stacking devices should make sure that the dm-multipath devices also have the 'manually' set max_sectors_kb value.
The line that would need to be changed (depending on the fibre card driver and what the optimal IO size should be according to performance testing) is the line:
DRIVERS=="<fibre_card_driver>", ENV{.vnd}=="DGC*", ENV{.mdl}=="RAID*", ATTR{queue/max_sectors_kb}="<optimal_IO_value>" e.g. DRIVERS=="fnic", ENV{.vnd}=="DGC*", ENV{.mdl}=="RAID*", ATTR{queue/max_sectors_kb}="1280"
Disclaimer
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:7023896
- Creation Date: 24-May-2019
- Modified Date:07-Jun-2023
-
- SUSE Linux Enterprise Server
- SUSE Linux Enterprise Server for SAP Applications
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com