From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-admin@lists.postgresql.org
Subject: Re: Invoke OOM killer
Date: Thu, 6 Jul 2023 11:40:04 -0500
Message-ID: <c20e92f0-07c7-6ad0-f802-61158526bb51@gmail.com> (raw)
In-Reply-To: <CA+427g8Cg1HVzWVBWPHAgeVNOLdghL1ovrDL_+55KJRG_xERCg@mail.gmail.com>
References: <CA+427g8Cg1HVzWVBWPHAgeVNOLdghL1ovrDL_+55KJRG_xERCg@mail.gmail.com>
On 7/6/23 11:27, kaido vaikla wrote:
> Hi,
>
> How to invoke OOM killer for pg process?
> Some easy "hack" for test purpose.
>
> OS
> Rocky Linux release 9.2 (Blue Onyx)
> pg
> 15.2
https://www.percona.com/blog/out-of-memory-killer-or-savior/
I'd run "wapoff -a", set vm.overcommit_memory=2, and then run a simple C
program that mallocs a /lot/ of memory, mlocks it and then fills it with FF
bits.
--
Born in Arizona, moved to Babylonia.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: ronljohnsonjr@gmail.com, pgsql-admin@lists.postgresql.org
Subject: Re: Invoke OOM killer
In-Reply-To: <c20e92f0-07c7-6ad0-f802-61158526bb51@gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox