From: Hannes Reinecke <hare@suse.de>
To: christophe varoqui <christophe.varoqui@free.fr>
Cc: device-mapper development <dm-devel@redhat.com>
Subject: [multipathd] correct oom_adj value
Date: Wed, 07 Dec 2005 15:57:57 +0100 [thread overview]
Message-ID: <4396F875.1050907@suse.de> (raw)
[-- Attachment #1: Type: text/plain, Size: 372 bytes --]
Hi Christophe,
any recent kernel will only accept values > -17 for oom_adj.
So writing '-17' into oom_adj will only lead to an error, not to the
desired behaviour.
Patch is attached.
Cheers,
Hannes
--
Dr. Hannes Reinecke hare@suse.de
SuSE Linux Products GmbH S390 & zSeries
Maxfeldstraße 5 +49 911 74053 688
90409 Nürnberg http://www.suse.de
[-- Attachment #2: multipath-tools-oom-adj.patch --]
[-- Type: text/x-patch, Size: 503 bytes --]
[multipathd] set oom_adj to a valid value
As of 2.6.14, the kernel will only accept oom_adj values of > -17.
Writing '-17' into oom_adj will be ignored. This patch fixes the
value to -16.
Signed-off-by: Hannes Reinecke <hare@suse.de>
diff --git a/multipathd/main.c b/multipathd/main.c
--- a/multipathd/main.c
+++ b/multipathd/main.c
@@ -1554,7 +1554,7 @@ child (void * param)
}
signal_init();
setscheduler();
- set_oom_adj(-17);
+ set_oom_adj(-16);
vecs = gvecs = init_vecs();
if (!vecs)
[-- Attachment #3: Type: text/plain, Size: 0 bytes --]
next reply other threads:[~2005-12-07 14:57 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-07 14:57 Hannes Reinecke [this message]
2005-12-07 22:29 ` [multipathd] correct oom_adj value Christophe Varoqui
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4396F875.1050907@suse.de \
--to=hare@suse.de \
--cc=christophe.varoqui@free.fr \
--cc=dm-devel@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.