[Pkg-postgresql-public] Bug#694454: Bug#694454: pg_ctlcluster should probably have support for numactl and similar wrappers

Martin Pitt mpitt at debian.org
Sat Feb 16 18:41:48 UTC 2013


hello Christoph,

Christoph Berg [2012-11-26 15:37 +0100]:
> -    @options = ($pg_ctl, 'start', '-D', $info{'pgdata'});
> +    @options = ('/usr/bin/numactl', '--interleave=all', $pg_ctl, 'start', '-D', $info{'pgdata'});

I don't know what numactl does, so I cannot comment on whether it's a
good idea to do this, and whether it's always safe to do.

However, if you want to apply this, you need to check whether numactl
is actually available. Preferably, call `which numactl` and use that
path, and if that fails don't use it at all. It's in the "numactl"
package which isn't installed by default.

A more generic approach which would also allow strace, gdb, etc. is to
add a new option --pg-ctl-prefix or environment variable
$PG_CTL_PREFIX?

Thanks,

Martin
-- 
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-postgresql-public/attachments/20130216/9ad65456/attachment.pgp>


More information about the Pkg-postgresql-public mailing list