readaheadinstellingen
Readaheadinstellingen, of read‑ahead parameters, determine how many kilobytes of data a block device driver pre‑loads into RAM when a read request is issued. When a program requests data from a disk, the kernel will efficiently fetch not only the requested blocks but also adjacent blocks that are likely to be accessed next. This reduces the number of physical reads, improving throughput for sequential workloads while potentially increasing memory usage.
The value is expressed in kilobytes and is stored in the sysfs entry queue/read_ahead_kb under each block
To adjust the read‑ahead size you can use blockdev or echo directly to sysfs:
echo 256 > /sys/block/sda/queue/read_ahead_kb
Changes made with caret commands persist only for the current boot; to make them permanent you should
For workloads with heavy random access patterns such as databases, a smaller read‑ahead can reduce unnecessary
---