Re: Setting oom_adj on linux?

Andrew Dunstan <andrew@dunslane.net>

From: Andrew Dunstan <andrew@dunslane.net>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Magnus Hagander <magnus@hagander.net>, Alex Hunsaker <badalex@gmail.com>, Alvaro Herrera <alvherre@commandprompt.com>, PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2010-01-08T17:34:29Z
Lists: pgsql-hackers

Tom Lane wrote:
> I don't want to go to the trouble of creating (and documenting) a
> configure option for this.  Much less a GUC ;-)
>
> What I suggest is that we do something like
>
> 	#ifdef LINUX_OOM_ADJ
> 	...
> 	fprintf(oom, "%d\n", LINUX_OOM_ADJ);
> 	...
> 	#endif
>
> Then, somebody who wants the feature would build with, say,
> 	-DLINUX_OOM_ADJ=0
> or another value if they want that.
> 			
>   

+1 for this. Looks like a sound approach.

cheers

andrew