cluster: STABLE31 - cmannotifyd: remove oom_adj

Fabio M. Di Nitto fabbione at fedoraproject.org
Wed Jan 5 08:02:06 UTC 2011


Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=4b14989b663d064a81bbb1b2a3eb6a1552a1ca61
Commit:        4b14989b663d064a81bbb1b2a3eb6a1552a1ca61
Parent:        1be8e09df7c95523f018298fc2e977e37a1dd278
Author:        Fabio M. Di Nitto <fdinitto at redhat.com>
AuthorDate:    Wed Jan 5 09:00:00 2011 +0100
Committer:     Fabio M. Di Nitto <fdinitto at redhat.com>
CommitterDate: Wed Jan 5 09:00:00 2011 +0100

cmannotifyd: remove oom_adj

kernel ABI will change and I agree with David that, if necessary, something
else should set it.

Signed-off-by: Fabio M. Di Nitto <fdinitto at redhat.com>
---
 cman/notifyd/main.c |   13 -------------
 1 files changed, 0 insertions(+), 13 deletions(-)

diff --git a/cman/notifyd/main.c b/cman/notifyd/main.c
index d5c90c5..133706f 100644
--- a/cman/notifyd/main.c
+++ b/cman/notifyd/main.c
@@ -152,18 +152,6 @@ static void sigterm_handler(int sig)
 	daemon_quit = 1;
 }
 
-static void set_oom_adj(int val)
-{
-	FILE *fp;
-
-	fp = fopen("/proc/self/oom_adj", "w");
-	if (!fp)
-		return;
-
-	fprintf(fp, "%i", val);
-	fclose(fp);
-}
-
 static void set_scheduler(void)
 {
 	struct sched_param sched_param;
@@ -415,7 +403,6 @@ int main(int argc, char **argv)
 	lockfile();
 	init_logging(0);
 	signal(SIGTERM, sigterm_handler);
-	set_oom_adj(-16);
 	if (rr)
 		set_scheduler();
 


More information about the cluster-commits mailing list