Re: Linux memory zone reclaim - Mailing list pgsql-performance

From Claudio Freire
Subject Re: Linux memory zone reclaim
Date
Msg-id CAGTBQpZWiKkCfv9xmv8sdDiXzy+5TCGTS1t-UtAu8AfMmeViHw@mail.gmail.com
Whole thread Raw
In response to Re: Linux memory zone reclaim  (Claudio Freire <klaussfreire@gmail.com>)
Responses Re: Linux memory zone reclaim  (Claudio Freire <klaussfreire@gmail.com>)
Re: Linux memory zone reclaim  (John Lister <john.lister@kickstone.com>)
List pgsql-performance
On Tue, Jul 24, 2012 at 3:41 PM, Claudio Freire <klaussfreire@gmail.com> wrote:
> On Tue, Jul 24, 2012 at 3:36 PM, John Lister <john.lister@kickstone.com> wrote:
>> Do you have a suggestion about how to do that? I'm running Ubuntu 12.04 and
>> PG 9.1, I've modified pg_ctlcluster to cause pg_ctl to use a wrapper script
>> which starts the postmaster using a numactl wrapper, but all subsequent
>> client processes are started with interleaving enabled as well. Any ideas
>> how to make just the postmaster process start with interleaving?
>
> postmaster should call numactl right after forking:
> http://linux.die.net/man/2/set_mempolicy

Something like the attached patch (untested)

Attachment

pgsql-performance by date:

Previous
From: Craig James
Date:
Subject: Re: ZFS vs. UFS
Next
From: Claudio Freire
Date:
Subject: Re: Linux memory zone reclaim