summaryrefslogtreecommitdiff
path: root/src/readahead
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-05-04 00:15:21 +0200
committerLennart Poettering <lennart@poettering.net>2012-05-04 00:15:21 +0200
commit4019a16d5b65633e5f6d671c16d3215d7f7f29fc (patch)
tree6712c961d71eadfc1c009f217e1acc1b6916a42c /src/readahead
parent6de338a2d9904ef5a67552b024491700523074a3 (diff)
units: use OOMScoreAdjust= in the unit files to set OOM score adjust
Diffstat (limited to 'src/readahead')
-rw-r--r--src/readahead/readahead-collect.c2
-rw-r--r--src/readahead/readahead-replay.c1
2 files changed, 0 insertions, 3 deletions
diff --git a/src/readahead/readahead-collect.c b/src/readahead/readahead-collect.c
index 70e0f66eda..a88e7f2d70 100644
--- a/src/readahead/readahead-collect.c
+++ b/src/readahead/readahead-collect.c
@@ -253,8 +253,6 @@ static int collect(const char *root) {
block_get_readahead(root, &previous_block_readahead) >= 0 &&
block_set_readahead(root, 8*1024) >= 0;
- write_one_line_file("/proc/self/oom_score_adj", "1000");
-
if (ioprio_set(IOPRIO_WHO_PROCESS, getpid(), IOPRIO_PRIO_VALUE(IOPRIO_CLASS_IDLE, 0)) < 0)
log_warning("Failed to set IDLE IO priority class: %m");
diff --git a/src/readahead/readahead-replay.c b/src/readahead/readahead-replay.c
index 0b7e6df946..a6529f8bac 100644
--- a/src/readahead/readahead-replay.c
+++ b/src/readahead/readahead-replay.c
@@ -132,7 +132,6 @@ static int replay(const char *root) {
assert(root);
- write_one_line_file("/proc/self/oom_score_adj", "1000");
block_bump_request_nr(root);
if (asprintf(&pack_fn, "%s/.readahead", root) < 0) {