From: | Josh Berkus <josh(at)agliodbs(dot)com> |
---|---|
To: | Nick Barr <nicky(at)chuckie(dot)co(dot)uk> |
Cc: | pgsql-performance(at)postgresql(dot)org |
Subject: | Re: go for a script! / ex: PostgreSQL vs. MySQL |
Date: | 2003-10-10 20:38:18 |
Message-ID: | 200310101338.18167.josh@agliodbs.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-performance |
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
From | Date | Subject | |
---|---|---|---|
Next Message | Josh Berkus | 2003-10-10 20:39:48 | Re: go for a script! / ex: PostgreSQL vs. MySQL |
Previous Message | Mike Leahy | 2003-10-10 20:37:54 | Re: Unable to identify an operator '*=' for types 'character varying[]' and '"unknown"' |
From | Date | Subject | |
---|---|---|---|
Next Message | Josh Berkus | 2003-10-10 20:39:48 | Re: go for a script! / ex: PostgreSQL vs. MySQL |
Previous Message | Vivek Khera | 2003-10-10 20:26:58 | Re: go for a script! / ex: PostgreSQL vs. MySQL |