silent_mode and LINUX_OOM_ADJ

From: Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>
To: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Cc: Peter Geoghegan <peter(at)2ndquadrant(dot)com>
Subject: silent_mode and LINUX_OOM_ADJ
Date: 2011-06-24 11:01:57
Message-ID: 4E046EA5.8070101@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

While reviewing Peter Geoghegan's postmaster death patch, I noticed that
if you turn on silent_mode, the LINUX_OOM_ADJ code in fork_process()
runs when postmaster forks itself into background. That re-enables the
OOM killer in postmaster, if you've disabled it in the startup script by
adjusting /proc/self/oom_adj. That seems like a bug, albeit a pretty
minor one.

This may be a dumb question, but what is the purpose of silent_mode?
Can't you just use nohup?

--
Heikki Linnakangas
EnterpriseDB http://www.enterprisedb.com

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Noah Misch 2011-06-24 11:24:33 Re: Another issue with invalid XML values
Previous Message HuangQi 2011-06-24 10:14:52 Re: debugging tools inside postgres