From: Josh Berkus <josh@agliodbs.com>
To: Nick Barr <nicky@chuckie.co.uk>
Cc: pgsql-performance@postgresql.org
Subject: Re: go for a script! / ex: PostgreSQL vs. MySQL
Date: Fri, 10 Oct 2003 13:38:18 -0700
Message-ID: <200310101338.18167.josh@agliodbs.com> (raw)
In-Reply-To: <3F86F5BB.90605@chuckie.co.uk>
References: <007901c38f2b$0b585590$2802a8c0@webbased10>
<200310101034.52073.josh@agliodbs.com>
<3F86F5BB.90605@chuckie.co.uk>
Nick,
> Sounds good to me. I will carry on working on it but I would definitely
> need some help, or at least a list of parameters to tweak, and some
> recomended values based on data about the puter in question.
> shared_buffers = 1/16th of total memory
> effective_cache_size = 80% of the supposed kernel cache.
But only if it's a dedicated DB machine. If it's not, all memory values
should be cut in half.
> I guess we also may be able to offer a simple and advanced mode. Simple
> mode would work on these recomended values, but kick it into advanced
> mode and the user can tweak things more finely. This would only be
> recomended for the Guru's out there of course. This may take a bit more
> time to do though.
What I would prefer would be an interactive script which would, by asking the
user simple questions and system scanning, collect all the information
necessary to set:
max_connections
shared_buffers
sort_mem
vacuum_mem
effective_cache_size
random_page_cost
max_fsm_pages
checkpoint_segments & checkpoint_timeout
tcp_ip
and on the OS, it should set:
shmmax & shmmall
and should offer to create a chron job which does appropriate frequency VACUUM
ANALYZE.
> As I said in the previous email I have only got access to Linux, so
> cross-platform help would be good too. I will try to make it as easy to
> do cross platform stuff as possible of course.
Let's get it working on Linux; then we can rely on the community to port it to
other platforms. I myself can work on the ports to Solaris and OS X.
--
Josh Berkus
Aglio Database Solutions
San Francisco
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 using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: josh@agliodbs.com, nicky@chuckie.co.uk
Subject: Re: go for a script! / ex: PostgreSQL vs. MySQL
In-Reply-To: <200310101338.18167.josh@agliodbs.com>
* 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