Re: OOM-killer not being involked under memory pressure
On Fri 25 Sep 2020 at 07:41:10 (-0600), Charles Curley wrote:
> On Thu, 24 Sep 2020 23:37:52 +0000 Pariksheet Nanda <pariksheet.nanda@protonmail.com> wrote:
>
> > I don't know how to empirically test that swap works
>
> Try free. E.g.:
>
> root@jhegaala:~# free
> total used free shared buff/cache available
> Mem: 7860 5095 780 597 1985 1958
> Swap: 15623 2426 13197
> Total: 23484 7521 13977
> root@jhegaala:~#
>
> If swap is not enabled, the Swap line won't be there.
>
> Or try htop.
$ /sbin/swapon --noheadings --show=name,type,size
/dev/dm-0 partition 499M
Cheers,
David.
Reply to: