Re: Tons of free RAM. Can't make it go away. - Mailing list pgsql-performance

From Claudio Freire
Subject Re: Tons of free RAM. Can't make it go away.
Date
Msg-id CAGTBQpZ-+zxkZfkyKr7ZZdfGC6D2FunrZBx3yo4kOwAiD1fzdg@mail.gmail.com
Whole thread Raw
In response to Re: Tons of free RAM. Can't make it go away.  (Shaun Thomas <sthomas@optionshouse.com>)
Responses Re: Tons of free RAM. Can't make it go away.
Re: Tons of free RAM. Can't make it go away.
List pgsql-performance
On Mon, Oct 22, 2012 at 3:01 PM, Shaun Thomas <sthomas@optionshouse.com> wrote:
>
>> Did you check the kernel's zone_reclaim_mode ?
>
>
> It's currently set to 0, which as I'm led to believe, is the setting I want
> there.

Yep

> But here's something interesting:
>
> numactl --hardware
>
> available: 2 nodes (0-1)
> node 0 cpus: 0 2 4 6 8 10 12 14 16 18 20 22
> node 0 size: 36853 MB
> node 0 free: 13816 MB
> node 1 cpus: 1 3 5 7 9 11 13 15 17 19 21 23
> node 1 size: 36863 MB
> node 1 free: 751 MB
> node distances:
> node   0   1
>   0:  10  20
>   1:  20  10
>
>
> Looks like CPU 0 is hoarding memory. :(

You may want to try setting the numa policy before launching postgres:

numactl --interleave=all pg_ctl start

or

numactl --preferred=+0 pg_ctl start


pgsql-performance by date:

Previous
From: Shaun Thomas
Date:
Subject: Re: Tons of free RAM. Can't make it go away.
Next
From: "Franklin, Dan (FEN)"
Date:
Subject: Re: Tons of free RAM. Can't make it go away.