pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Fabricio <fabrixio1@hotmail.com>
To: markokr@gmail.com
Cc: pgsql-admin@postgresql.org
Subject: Re: NUMA architecture and PostgreSQL
Date: Thu, 27 Nov 2008 12:59:17 -0700
Message-ID: <BLU103-W30716C44F6E7F8E12A984CFE050@phx.gbl> (raw)
In-Reply-To: <e51f66da0811270204h50e6bb82l6f87a782bb685fb3@mail.gmail.com>
References: <3a0028490811260543x74d02719w775a457999cfc74@mail.gmail.com>
	<492D5C87.5090505@usit.uio.no>
	<3a0028490811260700w6e8d9d86o24effbe0bea2bddb@mail.gmail.com>
	<dcc563d10811260740m69f8969bt36be6ae675620dcb@mail.gmail.com>
	<3a0028490811260921l5d6aac06v54dca32aae672b97@mail.gmail.com>
	<492DA95D.3010303@zeut.net>
	<dcc563d10811261304g617b9806yf1208c4d5279ebee@mail.gmail.com>
	<BLU103-W22B9E9B2C9B9640E88A100FE050@phx.gbl>
	<e51f66da0811270204h50e6bb82l6f87a782bb685fb3@mail.gmail.com>



Hi Marko, thanks for your help...
 
> There is a bit higher level concept of cpusets too:
> 
>   http://www.kernel.org/doc/man-pages/online/pages/man7/cpuset.7.html
>

> In both cases, you can either patch Postgres or write a launcher
> that configures CPUs before executing postgres.

This paragraph is the liks of cpuset:
       On systems with kernels compiled with built in support for cpusets, all
       processes are attached to a cpuset, and cpusets are always present.  If a
       system supports cpusets, then it will have the entry nodev cpuset in the file
       /proc/filesystems.  By mounting the cpuset file system (see the EXAMPLE
       section below), the administrator can configure the cpusets on a system to
       control the processor and memory placement of processes on that system.  By
       default, if the cpuset configuration on a system is not modified or if the
       cpuset file system is not even mounted, then the cpuset mechanism, though
       present, has no affect on the system's behavior.

Do I need to mount the cpuset file system for use numactl?


Example:
numactl --membind=1 su - postgres -c "/usr/local/pgsql/bin/pg_ctl start -D 
/usr/local/pgsql/data/"

The two liks are about programing, but can I use only numactl with postgres? 

thanks  marko...


_________________________________________________________________
P.D. Live Search tiene una sorpresa buenísima, chécala aquí.
http://www.ganabuscando.com/Default.aspx=

view thread (6+ messages)  latest in thread

Message-ID: <BLU103-W30716C44F6E7F8E12A984CFE050@phx.gbl>
Permalink:  ../BLU103-W30716C44F6E7F8E12A984CFE050@phx.gbl/
Also on:    postgresql.org/message-id/BLU103-W30716C44F6E7F8E12A984CFE050@phx.gbl

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: fabrixio1@hotmail.com, markokr@gmail.com
  Subject: Re: NUMA architecture and PostgreSQL
  In-Reply-To: <BLU103-W30716C44F6E7F8E12A984CFE050@phx.gbl>
  References: <3a0028490811260543x74d02719w775a457999cfc74@mail.gmail.com> <492D5C87.5090505@usit.uio.no> <3a0028490811260700w6e8d9d86o24effbe0bea2bddb@mail.gmail.com> <dcc563d10811260740m69f8969bt36be6ae675620dcb@mail.gmail.com> <3a0028490811260921l5d6aac06v54dca32aae672b97@mail.gmail.com> <492DA95D.3010303@zeut.net> <dcc563d10811261304g617b9806yf1208c4d5279ebee@mail.gmail.com> <BLU103-W22B9E9B2C9B9640E88A100FE050@phx.gbl> <e51f66da0811270204h50e6bb82l6f87a782bb685fb3@mail.gmail.com> <BLU103-W30716C44F6E7F8E12A984CFE050@phx.gbl>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox