diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-09-25 14:35:34 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-09-25 14:35:34 +0200 |
commit | 75a010e0b790a2cf3c26408f99927bdb37011a32 (patch) | |
tree | e39226973b3433603db3eda7a6154c2eb2f92ef3 /src/readahead-replay.c | |
parent | 408b85df83ad5711eeb959dd657b967447892c56 (diff) |
readahead: make candidate for early OOM kill
Diffstat (limited to 'src/readahead-replay.c')
-rw-r--r-- | src/readahead-replay.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/readahead-replay.c b/src/readahead-replay.c index c01f73e6a9..2fa5c182c0 100644 --- a/src/readahead-replay.c +++ b/src/readahead-replay.c @@ -119,6 +119,8 @@ static int replay(const char *root) { assert(root); + write_one_line_file("/proc/self/oom_score_adj", "1000"); + if (asprintf(&pack_fn, "%s/.readahead", root) < 0) { log_error("Out of memory"); r = -ENOMEM; |