Re: freebsd & postgresql 7.1.3 - Mailing list pgsql-general

From Vivek Khera
Subject Re: freebsd & postgresql 7.1.3
Date
Msg-id x7vgfxs3kw.fsf@onceler.kciLink.com
Whole thread Raw
In response to freebsd & postgresql 7.1.3  ("Yuri A. Kabaenkov" <sec@artofit.com>)
List pgsql-general
>>>>> "YAK" == Yuri A Kabaenkov <sec@artofit.com> writes:

YAK>       May be i need to recompile my kernel, if yes what options should
YAK>       i add?

YAK>       And how my RAM depends on this values ?

Postgres tuning is basically all about shared memory segments.  In
FreeBSD, you don't need to recompile your kernel.  Just set the
appropriate sysctl variables.  I do this in my /etc/sysctl.conf file:

# tuning for PostgreSQL
kern.ipc.shmall=65535
kern.ipc.shmmax=268435456
kern.ipc.shm_use_phys=1

on a machine with 512MB RAM doing nothing but PostgreSQL serving.
Adjust the numbers as you see fit, and as described in the tuning
sections of the documentation.  The SEM values seem to be ok with
their defaults in the FreeBSD kernel.

Once you tune the kernel, then you need to tune Postgres to use the
added capacity.

--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Vivek Khera, Ph.D.                Khera Communications, Inc.
Internet: khera@kciLink.com       Rockville, MD       +1-240-453-8497
AIM: vivekkhera Y!: vivek_khera   http://www.khera.org/~vivek/

pgsql-general by date:

Previous
From: "Command Prompt, Inc."
Date:
Subject: Pratical PostgreSQL now at production
Next
From: Rich Shepard
Date:
Subject: Re: Postgres 7.1.3 RPMs for RedHat 6.2 ?