Re: Setting oom_adj on linux? - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: Setting oom_adj on linux?
Date
Msg-id 4B476CA5.5080007@dunslane.net
Whole thread Raw
In response to Re: Setting oom_adj on linux?  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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


pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: Add .gitignore files to CVS?
Next
From: Greg Stark
Date:
Subject: Re: RFC: PostgreSQL Add-On Network