Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 8C1589FA1A1 for ; Fri, 21 Sep 2007 08:03:18 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 32321-05 for ; Fri, 21 Sep 2007 08:02:52 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from outmail129143.authsmtp.com (outmail129143.authsmtp.com [62.13.129.143]) by postgresql.org (Postfix) with ESMTP id 001199F99CF for ; Fri, 21 Sep 2007 08:02:51 -0300 (ADT) Received: from outmail128183.authsmtp.com (outmail128183.authsmtp.com [62.13.128.183]) by punt2.authsmtp.com (8.13.8/8.13.8/Kp) with ESMTP id l8LB2fLP025448; Fri, 21 Sep 2007 12:02:41 +0100 (BST) Received: from [192.168.0.3] (85-211-21-1.dyn.gotadsl.co.uk [85.211.21.1]) (authenticated bits=0) by mail.authsmtp.com (8.13.8/8.13.8/Kp) with ESMTP id l8LB2bO7051789; Fri, 21 Sep 2007 12:02:38 +0100 (BST) Subject: Re: Linux mis-reporting memory From: Simon Riggs To: Csaba Nagy Cc: Gregory Stark , Decibel! , pgsql-performance@postgresql.org In-Reply-To: <1190369325.4661.178.camel@PCD12478> References: <20070920230400.GM95343@decibel.org> <16213.1190329934@sss.pgh.pa.us> <87r6ksa1jb.fsf@oxford.xeocode.com> <1190363401.4661.116.camel@PCD12478> <87r6ksuzf8.fsf@oxford.xeocode.com> <1190369325.4661.178.camel@PCD12478> Content-Type: text/plain Date: Fri, 21 Sep 2007 12:01:18 +0100 Message-Id: <1190372478.4202.17.camel@ebony.site> Mime-Version: 1.0 X-Mailer: Evolution 2.8.2 Content-Transfer-Encoding: 7bit X-Server-Quench: 2a551455-6832-11dc-b86a-001185d377ca X-AuthRoute: OCdxZQATClZOTQEd DAteCiNZVAwpPBRK HVkIKg5MJUcNSQVJ NksachtFagRbflxB HGQLW1NEUV97WWF/ aAIfZQBDYEtPQQdr TklWQFdNFEs0CWBz BExhVRl3dgJOcTBx YUVrEHIKWUF7cUN4 X0hcFm8bZGY0O31N WEYJagNUcQJCe0tG bVcsBT1vNG8XDRoV JSEUBRUEdRFeLjlF CgQMNhcITF4MBCI9 QR9KGDgqGlcUL2Qg X-Authentic-SMTP: 61633235383639.squirrel.dmpriest.net.uk:752/Kp X-Report-SPAM: If SPAM / abuse - report it at: http://www.authsmtp.com/abuse X-Virus-Status: No virus detected - but ensure you scan with your own anti-virus system! X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200709/356 X-Sequence-Number: 26901 On Fri, 2007-09-21 at 12:08 +0200, Csaba Nagy wrote: > On Fri, 2007-09-21 at 10:43 +0100, Gregory Stark wrote: > > The other possibility is that Postgres just hasn't even touched a large part > > of its shared buffers. > > > > But then how do you explain the example I gave, with a 5.5GB table > seq-scanned 3 times, shared buffers set to 12 GB, and top still showing > almost 100% memory as cached and no SWAP "used" ? In this case you can't > say postgres didn't touch it's shared buffers - or a sequential scan > won't use the shared buffers ? Well, 6.5GB of shared_buffers could be swapped out and need not be swapped back in to perform those 3 queries. -- Simon Riggs 2ndQuadrant http://www.2ndQuadrant.com