Low Disk Performance with high IO stalls system
This document (7023297) is provided subject to the disclaimer at the end of this document.
Environment
SUSE Linux Enterprise Server 11
Situation
This could be an indication that there is
barrier
set on the Filesystem even so the underlying Device does not have a write cache.
Resolution
To alleviate this issue it is recommended to mount the relevant filesystems with
nobarrier
as mount option.
Extreme care should be taken to ensure that the device connected to this Filesystem really has a volatile cache or not.
If it does then setting
nobarrier
can result in data loss. Please never set nobarrier on a Filesystem on a device with cache enabled!
To identify whether the device has a cache or not, one can check
dmesg
and check for "cache" like
dmesg | grep cache
and the result might look like
[ 3.685928] sd 0:2:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[ 5.140281] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
as can be seen the device identified as
sda
reports the Write cache as disabled, so a Filesystem associated with this device can use
nobarrier
the opposite in this example is the device identified as
sdb
this device reports the Write cache enabled, so no Filesystem associated with this device should
have the barriers removed to prevent data loss.
This can also be checked in the running system with the tool
sdparm
On the same system as in the example above the output of sdparm reads
belphegore:~ # sdparm --get=WCE=1 /dev/sda
/dev/sda: DELL PERC H730 Mini 4.27
WCE 0
which means Write Cache disabled for sda, nobarrier possible
belphegore:~ # sdparm --get=WCE=1 /dev/sdb
/dev/sdb: IFT DS 1000 Series 555Q
WCE 1
which means Write Cache enabled for sdb, barrier necessary
Cause
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:7023297
- Creation Date: 23-Aug-2018
- Modified Date:03-Mar-2020
-
- SUSE Linux Enterprise Server
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com