Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W9EYv-0006Sd-Dh for pgsql-performance@arkaria.postgresql.org; Fri, 31 Jan 2014 13:55:17 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1W9EYu-0003rF-Qc for pgsql-performance@arkaria.postgresql.org; Fri, 31 Jan 2014 13:55:16 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W9EYt-0003qh-JV for pgsql-performance@postgresql.org; Fri, 31 Jan 2014 13:55:15 +0000 Received: from relaygateway01.edpnet.net ([212.71.1.210]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W9EYq-0006To-3e for pgsql-performance@postgresql.org; Fri, 31 Jan 2014 13:55:14 +0000 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AlkGAPGq61LV04zG/2dsb2JhbABZgwyEELo3gQYXdIIlAQEEASMzIwULCxgCAgUTDgICDwUlJIgQDKsbmFCIVheBKY1ZB4JvNYEUBJgpAZIhgy47 X-IPAS-Result: AlkGAPGq61LV04zG/2dsb2JhbABZgwyEELo3gQYXdIIlAQEEASMzIwULCxgCAgUTDgICDwUlJIgQDKsbmFCIVheBKY1ZB4JvNYEUBJgpAZIhgy47 X-IronPort-AV: E=Sophos;i="4.95,758,1384297200"; d="scan'208";a="233616053" Received: from 213.211.140.198.dyn.edpnet.net (HELO mordor.lan) ([213.211.140.198]) by relaygateway01.edpnet.net with ESMTP/TLS/DHE-RSA-AES256-SHA; 31 Jan 2014 14:36:45 +0100 Date: Fri, 31 Jan 2014 14:55:04 +0100 From: Julien Cigar To: RAMAKRISHNAN KANDASAMY Cc: pgsql-performance@postgresql.org Subject: Re: PostgreSQL 9.3.2 Performance tuning for 32 GB server Message-ID: <20140131135504.GC23311@mordor.lan> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.22 (2013-10-16) X-Pg-Spam-Score: -0.0 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-performance Precedence: bulk Sender: pgsql-performance-owner@postgresql.org On Sat, Jan 25, 2014 at 12:02:59PM +0530, RAMAKRISHNAN KANDASAMY wrote: > Hi All, > > I have configured the blow parameters for a 32 GB server . I this correct ? > > shared_buffers = 6GB going over 2GB probably doesn't help > work_mem = 24MB maintenance_work_mem = 250MB work_mem depends a lot of your queries and the number of clients, but with 32GB RAM setting a default work_mem of 128MB would probably not hurt. Your maintenance_work_mem is too low, raise it to 2GB. > effective_cache_size = 16GB if it's a dedicated server you can raise it to 24GB > shared_preload_libraries = 'pg_stat_statements' pg_stat_statements.max = > 10000 pg_stat_statements.track = all > wal_buffers = 8MB > checkpoint_segments = 32 depends of your load, 10's reasonable for light loads. 50 or 100 isn't uncommon for heavier ones. Keep in mind that every increase of 30 will cost you 1 gigabyte of disk space in pg_xlog and an extra ~2-5 minutes (depends of your i/o) of recovery time after a crash. > checkpoint_completion_target = 0.9 > > It's considered as a bad habit to change the cost settings, but I often raise the default cpu_tuple_cost to 0.08 (instead of 0.01) too. > -- > --Regards > RAMAKRISHNAN KANDASAMY -- No trees were killed in the creation of this message. However, many electrons were terribly inconvenienced. -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance