Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TGsQU-0003V6-Ur for pgsql-performance@postgresql.org; Wed, 26 Sep 2012 14:17:23 +0000 Received: from mxin.ulb.ac.be ([164.15.128.112]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TGsQT-0003zU-EQ for pgsql-performance@postgresql.org; Wed, 26 Sep 2012 14:17:22 +0000 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApoBANgMY1CkD30E/2dsb2JhbAANOIYLhV+2FwEBAQQjSwoRCxgJFgsCAgkDAgECAUUTCAEBBYdqAxqlfm6JLhdCiQiLGBqCT4IOgRIDjm6BIIZwhDqNRYFh Received: from bebif01.ulb.ac.be (HELO [10.0.0.194]) ([164.15.125.4]) by smtp.ulb.ac.be with ESMTP; 26 Sep 2012 16:17:19 +0200 Message-ID: <50630E6F.5040605@ulb.ac.be> Date: Wed, 26 Sep 2012 16:17:19 +0200 From: Julien Cigar Organization: Belgian Biodiversity Platform User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:12.0) Gecko/20120503 Thunderbird/12.0 MIME-Version: 1.0 To: pgsql-performance@postgresql.org Subject: Re: Same query doing slow then quick References: <1348662446741-5725486.post@n5.nabble.com> <1348664629662-5725491.post@n5.nabble.com> <50630162.2090603@ulb.ac.be> <506307E2.4060504@ulb.ac.be> <1348668859243-5725505.post@n5.nabble.com> In-Reply-To: <1348668859243-5725505.post@n5.nabble.com> Content-Type: multipart/mixed; boundary="------------040907070304090905090200" X-Pg-Spam-Score: -3.9 (---) X-Archive-Number: 201209/131 X-Sequence-Number: 47877 This is a multi-part message in MIME format. --------------040907070304090905090200 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 09/26/2012 16:14, FFW_Rude wrote: > Thank for you answer. > > shared_buffer is at 24Mb > effective_cache_size at 2048Mb > > What do you mean properly ? That's not really helping a novice... > from my previous mail: before looking further, please configure shared_buffers and effective_cache_size properly, it's fundamental you'll probably need to raise SHMALL/SHMMAX, take a look at: http://www.postgresql.org/docs/current/static/kernel-resources.html for 4GB of RAM I would start with shared_buffers to 512MB and effective_cache_size to 2GB > > > -- > View this message in context: http://postgresql.1045698.n5.nabble.com/Same-query-doing-slow-then-quick-tp5725486p5725505.html > Sent from the PostgreSQL - performance mailing list archive at Nabble.com. > > -- No trees were killed in the creation of this message. However, many electrons were terribly inconvenienced. --------------040907070304090905090200 Content-Type: text/x-vcard; charset=utf-8; name="jcigar.vcf" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="jcigar.vcf" begin:vcard fn:Julien Cigar n:Cigar;Julien org;quoted-printable:Belgian Biodiversity Platform;ULB (Universit=C3=A9 Libre de Bruxelles) adr:;;;Brussels;;;Belgium email;internet:jcigar@ulb.ac.be tel;work:+32(0)26505752 x-mozilla-html:FALSE url:http://www.biodiversity.be version:2.1 end:vcard --------------040907070304090905090200--