Received: from localhost (unknown [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 06B0B2E15C5 for ; Wed, 26 Dec 2007 13:20:20 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 85785-10 for ; Wed, 26 Dec 2007 13:20:16 -0400 (AST) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.176]) by postgresql.org (Postfix) with ESMTP id 252F12E0344 for ; Wed, 26 Dec 2007 13:20:15 -0400 (AST) Received: by wa-out-1112.google.com with SMTP id m38so4356968waf.5 for ; Wed, 26 Dec 2007 09:20:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=7I86NTw7f4GmHTwmCHwaOBGmnv3mg7cw1qO2MJ38yY4=; b=OKuSCWfMdFF6rLjMM8xYHZTz8fSkJUvCOke3W5bpcU9wjM3sWatlibU7mFvHwtphH5VSBaLBnAckNfVf5T4xHSCJE+1lIz+vV/TfDR+ABTCHA94gbRIQf10ZHe0mzNkaDzhOsHHiTT3SXW1leGv2GZCPB5unlMZuJP2rmON6UPk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=pXIw+Bz10EnR4Q6dlw8A+6WfU8epG9pNe/lmGHDqa72cMw1Y1IgzxgkNeb5WMsPA6HAuJC3rsamJKsyMeFZltRenQwWRCh7Ywe+QLMzBa9yWSpysSCUUCyQQ9abnLBMkXVVuC8HCsqC7U9s9DW2Oo+Rm98TR2z3+n6hElwgmp3I= Received: by 10.114.177.1 with SMTP id z1mr6416236wae.7.1198689615129; Wed, 26 Dec 2007 09:20:15 -0800 (PST) Received: by 10.114.155.9 with HTTP; Wed, 26 Dec 2007 09:20:15 -0800 (PST) Message-ID: <1d4e0c10712260920g7a440fam4363a886f60fa700@mail.gmail.com> Date: Wed, 26 Dec 2007 18:20:15 +0100 From: "Guillaume Smet" To: "Simon Riggs" Subject: Re: More shared buffers causes lower performances Cc: pgsql-performance , "Stefan Kaltenbrunner" In-Reply-To: <1d4e0c10712260741w1f141fd6x2f482143d526ad48@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1d4e0c10712251606q6f9503deye3da4b68c51bf5e@mail.gmail.com> <1198668065.4221.288.camel@ebony.site> <1d4e0c10712260741w1f141fd6x2f482143d526ad48@mail.gmail.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200712/362 X-Sequence-Number: 28178 On Dec 26, 2007 4:41 PM, Guillaume Smet wrote: > Then I decided to perform read-only tests using -S option (pgbench -S > -s 100 -c 16 -t 30000 -U postgres bench). And still the same > behaviour: > shared_buffers=64MB : 20k tps > shared_buffers=1024MB : 8k tps Some more information. If I strace the backends during the test, the test is faster with shared_buffers=1024MB and I have less system calls (less read and less lseek). A quick cut | uniq | sort gives me: With 64MB: 12548 semop 160039 sendto 160056 recvfrom 294289 read 613338 lseek With 1024MB: 11396 semop 129947 read 160039 sendto 160056 recvfrom 449584 lseek -- Guillaume