Skip site navigation (1) Skip section navigation (2)

Re: Linux memory zone reclaim

From: Claudio Freire <klaussfreire(at)gmail(dot)com>
To: John Lister <john(dot)lister(at)kickstone(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Linux memory zone reclaim
Date: 2012-07-24 20:12:20
Message-ID: CAGTBQpZWiKkCfv9xmv8sdDiXzy+5TCGTS1t-UtAu8AfMmeViHw@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-performance
On Tue, Jul 24, 2012 at 3:41 PM, Claudio Freire <klaussfreire(at)gmail(dot)com> wrote:
> On Tue, Jul 24, 2012 at 3:36 PM, John Lister <john(dot)lister(at)kickstone(dot)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: numa.patch
Description: application/octet-stream (2.5 KB)

In response to

Responses

pgsql-performance by date

Next:From: Claudio FreireDate: 2012-07-24 21:00:01
Subject: Re: Linux memory zone reclaim
Previous:From: Craig JamesDate: 2012-07-24 19:14:33
Subject: Re: ZFS vs. UFS

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group