Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UHf5U-0005Iq-6j for pgsql-performance@arkaria.postgresql.org; Mon, 18 Mar 2013 18:47:12 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UHf5T-0008Ft-IV for pgsql-performance@arkaria.postgresql.org; Mon, 18 Mar 2013 18:47:11 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UHf5S-0008Fn-98 for pgsql-performance@postgresql.org; Mon, 18 Mar 2013 18:47:10 +0000 Received: from nm35-vm0.bullet.mail.bf1.yahoo.com ([72.30.238.72]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UHf5P-0002x6-3i for pgsql-performance@postgresql.org; Mon, 18 Mar 2013 18:47:09 +0000 Received: from [98.139.212.148] by nm35.bullet.mail.bf1.yahoo.com with NNFMP; 18 Mar 2013 18:47:06 -0000 Received: from [98.139.212.210] by tm5.bullet.mail.bf1.yahoo.com with NNFMP; 18 Mar 2013 18:47:05 -0000 Received: from [127.0.0.1] by omp1019.mail.bf1.yahoo.com with NNFMP; 18 Mar 2013 18:47:05 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 664501.62632.bm@omp1019.mail.bf1.yahoo.com Received: (qmail 36970 invoked by uid 60001); 18 Mar 2013 18:47:05 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ymail.com; s=s1024; t=1363632425; bh=MaFtBeAMbEpk9GwsZhCGvt5/gnjA/MbmA4TRD85OkJM=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=nIGRfXQcrohanYjuTiXLjN/uf2xMJHkU7jB/s/MnS9sJG632DPlwcVxHYojqHDoVjbAURTwGnEn/jQBx0H3XwZWVww5YGqDlPRg3ppkUEVZoyUq83eNE4vsoa2494yDtXf92lBLtx5pE7nzFpsVJF7uSpDzVZ1tclZImleNOl/A= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=ymail.com; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=KWBojDgr5aT1Xs1cvBOWfYm5qY5F7xfOhzpfeJPiliVrKM8svdSH5TzHGDj+A89OTPzXLg6tlHCPRJFZiMw+s4IIedlrlTMWnMuS0xPItmilgqk+ll/CdLmHR+WfOTTM7gTS5NnilFtfbnGeRJOjtJRcDBv5FmIYQNhIn8Q1v0I=; X-YMail-OSG: nce_j6cVM1n20YsglJ9xwbjyHG9SxbRMQQgRZcIVcMpGzI9 O5M40ddO52E1dl0qAFKt9M37nfMzdWyaRFWpcUG3M6Oaoe3s9aXfQu6c5_wB DOgfo_BlGGkZnjwmYfvYiEUFcoKv7XPyGekmGFyjLPjJ7V3pHgM43x6aG4dj 2QbREZsxG_6csXbzyGR6s40PRSm_XB3SyT2XqdNaqLrECXgiBFLps0NVMJyy p3.qIzTO3.kjfxbJht9HkUL8S.S214mm.iwx8higYBVNXxvww8mjj_hOZxoG TMAAfKwp14zjRr2t.pE0lHL1YKNifSimh_EtFj9peSICDN5PFu9XF.FOlrwL FCe.7ojZ9gv8nW06FH6SDszZJKJ5Pii136EMg558afQFtgwbXlqJAb9bmL9p OBw_zpwkM4U3zDEpcVM0bgAwNUot0AOxWC_6uQDYPM7IucH6dN143pPpb2zJ ENv.LE0XFtY2cK09X99o6wmWPObSpceqLkP_YEbP22pyTOdIUYwJqLTsGiGd gUtrhm8tp2EYgbNxDeXKg2x22kXkIX80soExx7ZY- Received: from [76.255.18.237] by web162906.mail.bf1.yahoo.com via HTTP; Mon, 18 Mar 2013 11:47:05 PDT X-Rocket-MIMEInfo: 002.001, Um9kcmlnbyBCYXJib3phIDxyb2RyaWdvbWJ1ZnJqQGdtYWlsLmNvbT4gd3JvdGU6Cgo.IFNvIHNldHRpbmcgdGhpcyBhcyBoYWxmIG9mIHJhbSwgYXMgc3VnZ2VzdGVkIGluIHBvc3RncmVzIHR1bmluZwo.IHdlYnBhZ2Ugc2hvdWxkIGJlIHNhZmU_CgpIYWxmIG9mIFJBTSBpcyBsaWtlbHkgdG8gYmUgYSB2ZXJ5IGJhZCBzZXR0aW5nIGZvciBhbnkgd29yayBsb2FkLiAKSXQgd2lsbCB0ZW5kIHRvIHJlc3VsdCBpbiB0aGUgaGlnaGVzdCBwb3NzaWJsZSBudW1iZXIgb2YgcGFnZXMKZHVwbGljYXRlZCBpbiBQb3MBMAEBAQE- X-Mailer: YahooMailWebService/0.8.138.524 References: Message-ID: <1363632425.31395.YahooMailNeo@web162906.mail.bf1.yahoo.com> Date: Mon, 18 Mar 2013 11:47:05 -0700 (PDT) From: Kevin Grittner Reply-To: Kevin Grittner Subject: Re: effective_cache_size on 32-bits postgres To: Rodrigo Barboza , Pavel Stehule Cc: "pgsql-performance@postgresql.org" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Pg-Spam-Score: -2.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 Rodrigo Barboza wrote: > So setting this as half of ram, as suggested in postgres tuning > webpage should be safe? Half of RAM is likely to be a very bad setting for any work load.=20 It will tend to result in the highest possible number of pages duplicated in PostgreSQL and OS caches, reducing the cache hit ratio.=A0 More commonly given advice is to start at 25% of RAM, limited to 2GB on Windows or 32-bit systems or 8GB otherwise.=A0 Try incremental adjustments from that point using your actual workload on you actual hardware to find the "sweet spot".=A0 Some DW environments report better performance assigning over 50% of RAM to shared_buffers; OLTP loads often need to reduce this to prevent periodic episodes of high latency. --=20 Kevin Grittner EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company --=20 Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance