diff options
author | Lennart Poettering <lennart@poettering.net> | 2012-05-04 00:13:20 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-05-04 00:13:20 +0200 |
commit | 6de338a2d9904ef5a67552b024491700523074a3 (patch) | |
tree | 5d8807c0bedbd8a7feee1c5bb344bfb20745caaa /src/readahead/readahead-replay.c | |
parent | cgroup: fix alloca() misuse in cg_shorten_controllers() (diff) | |
download | systemd-6de338a2d9904ef5a67552b024491700523074a3.tar.xz systemd-6de338a2d9904ef5a67552b024491700523074a3.zip |
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.
Diffstat (limited to 'src/readahead/readahead-replay.c')
-rw-r--r-- | src/readahead/readahead-replay.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/readahead/readahead-replay.c b/src/readahead/readahead-replay.c index f91020e805..0b7e6df946 100644 --- a/src/readahead/readahead-replay.c +++ b/src/readahead/readahead-replay.c @@ -133,7 +133,7 @@ static int replay(const char *root) { assert(root); write_one_line_file("/proc/self/oom_score_adj", "1000"); - bump_request_nr(root); + block_bump_request_nr(root); if (asprintf(&pack_fn, "%s/.readahead", root) < 0) { log_error("Out of memory"); |