HPE Storage Users Group
https://3parug.com/

performance issue : read_ahead_kb being changed
https://3parug.com/viewtopic.php?f=18&t=3918
Page 1 of 1

Author:  saad0805 [ Fri Sep 15, 2023 8:15 am ]
Post subject:  performance issue : read_ahead_kb being changed

Hello,

We are having a performance issue on 3par

After an upgrade of openshift from 4.10 to 4.12 (k8s 1.23 to 1.24) (rhel 8.4 to 8.6)
we are having high service time and latency on volumes.

After investigating we see that read_ahead_kb has changed from 128kb to 32mb.
Default value on the OS should be 4096kb

But we are having this :
cat /sys/class/block/dm-*/queue/read_ahead_kb
32768
32768
32768
32768
32768
32768

Anyone know how the 3par can change this value ?

- Red Hat Engineering confirmed that the value of read_ahead_kb is determined in the kernel by the underlying storage and the drivers used ; each storage/driver will be specific.

we have CSI driver in the middle : https://scod.hpedev.io/csi_driver/

Author:  Richard Siemers [ Tue Nov 07, 2023 12:22 am ]
Post subject:  Re: performance issue : read_ahead_kb being changed

3PAR does not set those values, Redhat does.

https://access.redhat.com/documentation ... de/main-fs

Quote:
Increased read-ahead support
Read-ahead speeds up file access by pre-fetching data and loading it into the page cache so that it can be available earlier in memory instead of from disk. Some workloads, such as those involving heavy streaming of sequential I/O, benefit from high read-ahead values.

The tuned tool and the use of LVM striping elevate the read-ahead value, but this is not always sufficient for some workloads. Additionally, Red Hat Enterprise Linux is not always able to set an appropriate read-ahead value based on what it can detect of your file system. For example, if a powerful storage array presents itself to Red Hat Enterprise Linux as a single powerful LUN, the operating system will not treat it as a powerful LUN array, and therefore will not by default make full use of the read-ahead advantages potentially available to the storage.
Use the blockdev command to view and edit the read-ahead value. To view the current read-ahead value for a particular block device

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/