chiark / gitweb /
readahead: make candidate for early OOM kill
[elogind.git] / src / readahead-replay.c
index c01f73e6a99d011f0232ac77fc43a63244237041..2fa5c182c021ba2171f7ecf256e652283f33c8b4 100644 (file)
@@ -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;