How to hard set readahead in centos 7.4

Steven Lacerda
Oct 19, 2021

What I found out is that since the startup scripts no longer run serially, they now run in parallel, adding startup parameters to rc.local may not work properly.

In the case of readahead, I ended up having to set the following:

vi /usr/lib/tuned/throughput-performance/tuned.conf[disk]
type=disk
devices=*
readahead=8

Where the devices=* could be set to something like devices=vd* or whatever your prefix is for the device you want to set.

--

--

Steven Lacerda

Steve Lacerda is a software engineer specializing in web development. His favorite 80’s song is Let’s Put the X in Sex by Kiss.