]> err.no Git - systemd/commit
readhead: temporarily lower the kernel's read_ahead_kb setting while collecting
authorLennart Poettering <lennart@poettering.net>
Thu, 3 May 2012 22:13:20 +0000 (00:13 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 3 May 2012 22:13:20 +0000 (00:13 +0200)
commit6de338a2d9904ef5a67552b024491700523074a3
tree5d8807c0bedbd8a7feee1c5bb344bfb20745caaa
parent37099707e26ef2c6d215f6e7f17dd46bf6aad586
readhead: temporarily lower the kernel's read_ahead_kb setting while collecting

While collecting readahead data we want to know exactly what userspace
accesses unblurred by the kernel's read_ahead_kb. Hence lower this
during collection, and raise it afterwards.

This is mostly based on ideas and code by Auke Kok.
src/readahead/readahead-collect.c
src/readahead/readahead-common.c
src/readahead/readahead-common.h
src/readahead/readahead-replay.c