Received: from localhost (unknown [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 23C372E0236 for ; Sat, 29 Dec 2007 13:22:09 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 07213-01 for ; Sat, 29 Dec 2007 13:22:01 -0400 (AST) Received: from mu-out-0910.google.com (mu-out-0910.google.com [209.85.134.190]) by postgresql.org (Postfix) with ESMTP id 04E7B2E0084 for ; Sat, 29 Dec 2007 13:22:01 -0400 (AST) Received: by mu-out-0910.google.com with SMTP id i10so3246129mue.5 for ; Sat, 29 Dec 2007 09:22:01 -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=NWbm7RPB04xMB59O5MV4Z7IFvqFp8YarqIoVYK7qd0o=; b=jiXJ46tlNEPca2vfpo8QSkmactS6MYccl+mH4x+rFd5MgwPHW39bT4k8WBjTeW04mt2jNaWyqn6pbvcD/CTpfccasgf/tgjzHGyr1fvqygWn4TdGcquqIRS4iBCgW/46q5RXCDG06IEMUxYRXUORfduUfW2+1r3OqyumXH9TlPY= 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=hqaHJ0gHYesn7wIGbbPQy4uBeSj5dDcZ4V9nHFucibmw1/XINjbQVf1Rxo5DCTRuprdVjpqs2eEBBH7HkzyYgOKPC4O3iJdkrRq5FAtnLkBzybrsOXbTvObCrYCpwS3NWm0JU3lUCcvsLJ4YzQ/fkUA2AaC4Xms0qOOPj7ZlCBY= Received: by 10.78.173.20 with SMTP id v20mr13125754hue.12.1198948920703; Sat, 29 Dec 2007 09:22:00 -0800 (PST) Received: by 10.78.18.2 with HTTP; Sat, 29 Dec 2007 09:22:00 -0800 (PST) Message-ID: Date: Sat, 29 Dec 2007 12:22:00 -0500 From: "Merlin Moncure" To: "Guillaume Smet" Subject: Re: More shared buffers causes lower performances Cc: pgsql-performance , "Stefan Kaltenbrunner" In-Reply-To: <1d4e0c10712251606q6f9503deye3da4b68c51bf5e@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> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200712/423 X-Sequence-Number: 28239 On Dec 25, 2007 7:06 PM, Guillaume Smet wrote: > While monitoring the server with vmstat, I can't see any real reason > why it's slower. When shared_buffers has a higher value, I/O are > lower, context switches too and finally performances. The CPU usage is > quite similar (~50-60%). I/O doesn't limit the performances AFAICS. Can you confirm that i/o is lower according to iostat? One possibility is that you are on the cusp of where your server's memory covers the database and the higher buffers results in lower memory efficiency. If raising shared buffers is getting you more page faults to disk, this would explain the lower figures regardless of the # of syscalls. If your iowait is zero though the test is cpu bound and this distinction is moot. merlin