X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (mx2.hub.org [200.46.204.254]) by postgresql.org (Postfix) with ESMTP id 9C3A711F6311 for ; Tue, 18 Apr 2006 23:41:42 -0300 (ADT) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Score: -1.322 X-Spam-Level: X-Spam-Status: No, score=-1.322 required=5 tests=[BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, SPF_FAIL=1.142] Received: from postgresql.org ([200.46.204.71]) by localhost (mx2.hub.org [200.46.204.254]) (amavisd-new, port 10024) with ESMTP id XD0Q4cCvIbbf for ; Tue, 18 Apr 2006 23:41:40 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id 9498611F6376 for ; Tue, 18 Apr 2006 23:41:37 -0300 (ADT) Received: from smtp.elde.net (us.elde.net [66.246.223.215]) by svr4.postgresql.org (Postfix) with ESMTP id C782A5AF857 for ; Wed, 19 Apr 2006 02:41:38 +0000 (GMT) Received: from smtp.elde.net (343006.ds.nac.net [127.0.0.1]) by smtp.elde.net (Postfix) with ESMTP id 065F965003; Wed, 19 Apr 2006 04:41:36 +0200 (CEST) Received: from [127.0.0.1] (60.80-203-96.nextgentel.com [80.203.96.60]) (Authenticated sender: terje@elde.net) by smtp.elde.net (Postfix) with ESMTP id 02E1264F56; Wed, 19 Apr 2006 04:41:33 +0200 (CEST) Message-ID: <4445A1DF.6000705@elde.net> Date: Wed, 19 Apr 2006 04:35:11 +0200 From: Terje Elde User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: "Jim C. Nasby" Cc: pgsql-performance@postgresql.org Subject: Re: Blocks read for index scans References: <85979594-1CCA-43C5-A8F2-08685CF41ACE@pervasive.com> <443F3BB3.30404@elde.net> <20060418200641.GG49405@pervasive.com> In-Reply-To: <20060418200641.GG49405@pervasive.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP X-Archive-Number: 200604/414 X-Sequence-Number: 18498 Jim C. Nasby wrote: >> That said, it's the transactions against disk that typically matter. On >> FreeBSD, you can get an impression of this using 'systat -vmstat', and >> watch the KB/t column for your drives. >> > > On a related note, you know of any way to determine the breakdown > between read activity and write activity on FreeBSD? vmstat, systat, > iostat all only return aggregate info. :( > Can't think of a right way to do this ATM, but for a lab-type setup to get an idea, you could set up a gmirror volume, then choose a balancing algorithm to only read from one of the disks. The effect should be that writes go to both, while reads only go to one. Activity on the write-only disk would give you an idea of the write activity, and (read/write disk - write-only disk) would give you an idea of the reads. I have to admit though, seems like quite a bit of hassle, and I'm not sure how good the numbers would be, given that at least some of the info (KB/transaction) are totals, it'd require a bit of math to get decent numbers. But at least it's something. Terje