Skip to contentSkip to conversation

correct oom_adj value

multipathd Applied Hannes Reinecke 2 participants 2 messages Dec 7, 2005 Device mapper

lore
Share & tools
lore
#0 lore raw

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

Signature · 4 lines
Dr. Hannes Reinecke			[email protected]
SuSE Linux Products GmbH		S390 & zSeries
Maxfeldstraße 5				+49 911 74053 688
90409 Nürnberg				http://www.suse.de

[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.

multipathd/main.c +1 -1
@@ -1554,7 +1554,7 @@ child (void * param)
 	}
 	signal_init();
 	setscheduler();
-	set_oom_adj(-17);
+	set_oom_adj(-16);
 	vecs = gvecs = init_vecs();
 
 	if (!vecs)
#1 lore raw
Quoted 6 lines · Hannes Reinecke

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.

Applied, thanks.