Re: Invoke OOM killer

From: Ron <ronljohnsonjr(at)gmail(dot)com>
To: pgsql-admin(at)lists(dot)postgresql(dot)org
Subject: Re: Invoke OOM killer
Date: 2023-07-06 16:40:04
Message-ID: c20e92f0-07c7-6ad0-f802-61158526bb51@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

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.

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Joe Conway 2023-07-06 17:12:35 Re: Invoke OOM killer
Previous Message kaido vaikla 2023-07-06 16:27:38 Invoke OOM killer