Re: Stripping kernel FreeBSD - postgres - Mailing list pgsql-general

From Walter Vaughan
Subject Re: Stripping kernel FreeBSD - postgres
Date
Msg-id 456EE628.6080002@steelerubber.com
Whole thread Raw
In response to Stripping kernel FreeBSD - postgres  (Enrico <scotty@linuxtime.it>)
Responses Re: Stripping kernel FreeBSD - postgres  (Enrico <scotty@linuxtime.it>)
List pgsql-general
Enrico wrote:

> HI,
> I wish I optimize a kernel FreeBSD 6.1 on a server with only postgres
> installed.
> Where can I have any info about?

Opimizing the FreeBSD kernel?

Obviouly you want to start with a machine with a much memory as you can afford,
as fast a disk subsystem you can afford, and as powerful a CPU you can afford.
Then rip a boot only CD, and do a minimal install with the ports collection.

FreeBSD 6.1 is pretty optimized already, and it will adapt. Have you followed
the directions for building a custom kernel?
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-building.html
Don't include hardware you don't have is obvious to strip from the GENERIC
kernel configuration file, and make build for SMP if you have real dual cores or
processors if you have them (a single CPU with hyperthreading most likely will
not run as fast under an SMP kernel).

As far as any other tweeking, follow the directions here and don't do anything
http://www.freebsd.org/doc/en_US.ISO8859-1/books/arch-handbook/vm-tuning.html

Then as root user
cd /usr/ports/databases/postgresql81-server/ && make install clean
and enjoy your posgreSQL/freeBSD server.

--
Walter

pgsql-general by date:

Previous
From: Alban Hertroys
Date:
Subject: Re: Stripping kernel FreeBSD - postgres
Next
From: Shane Ambler
Date:
Subject: Re: Stripping kernel FreeBSD - postgres