B
B
borodka_lenina2017-08-17 13:45:23
linux
borodka_lenina, 2017-08-17 13:45:23

Does readahead change after reboot?

Hello.
I'm trying to change the readhead for disks, but after reboot it is still set to the default 8192.

blockdev --report /dev/mapper/data_group-data_vol
RO    RA   SSZ   BSZ   StartSec            Size   Device
rw  8192   512  4096          0     53682896896   /dev/mapper/data_group-data_vol

lvchange -r 0 /dev/mapper/data_group-data_vol
  Logical volume data_group/data_vol changed.

blockdev --report /dev/mapper/data_group-data_vol
RO    RA   SSZ   BSZ   StartSec            Size   Device
rw     0   512  4096          0     53682896896   /dev/mapper/data_group-data_vol

REBOOT
blockdev --report /dev/mapper/data_group-data_vol
RO    RA   SSZ   BSZ   StartSec            Size   Device
rw  8192   512  4096          0     53682896896   /dev/mapper/data_group-data_vol

But as soon as I set 0 again:
lvchange -r 0 /dev/mapper/data_group-data_vol
  Read ahead is already 0 for data_group/data_vol.

Although blockdev above shows 8192
UPD:
--- Logical volume ---
LV Path /dev/data_group/data_vol
Read ahead sectors 0
- currently set to 8192

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question