Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VQecj-0007Ot-4b for pgsql-performance@arkaria.postgresql.org; Mon, 30 Sep 2013 14:38:57 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VQeci-0007yz-DQ for pgsql-performance@arkaria.postgresql.org; Mon, 30 Sep 2013 14:38:56 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VQech-0007ys-AE for pgsql-performance@postgresql.org; Mon, 30 Sep 2013 14:38:55 +0000 Received: from mail01.pnet.xcon.it ([62.48.53.71]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VQece-0004xk-KU for pgsql-performance@postgresql.org; Mon, 30 Sep 2013 14:38:55 +0000 Received: from localhost (av.pnet.xcon.it [10.68.1.18]) by mail01.pnet.xcon.it (Postfix) with ESMTP id A28DF301B6751 for ; Mon, 30 Sep 2013 16:38:51 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at av Received: from mail01.pnet.xcon.it ([10.68.1.19]) by localhost (av.pnet.xcon.it [10.68.1.18]) (amavisd-new, port 10024) with LMTP id xlV8ke9e48gq for ; Mon, 30 Sep 2013 16:38:05 +0200 (CEST) Received: from bnc1.pnet.xcon.it (bnc1.pnet.xcon.it [10.68.1.23]) by mail01.pnet.xcon.it (Postfix) with ESMTP id 0B0E0301ABEB0 for ; Mon, 30 Sep 2013 16:38:51 +0200 (CEST) Received: from localhost (av.pnet.xcon.it [10.68.1.18]) by bnc1.pnet.xcon.it (Postfix) with ESMTP id 038B21022D8E for ; Mon, 30 Sep 2013 16:38:51 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at av Received: from bnc1.pnet.xcon.it ([10.68.1.23]) by localhost (av.pnet.xcon.it [10.68.1.18]) (amavisd-new, port 10024) with LMTP id SXkMbyjf1WMu for ; Mon, 30 Sep 2013 16:38:04 +0200 (CEST) Received: from [192.168.0.144] (unknown [83.149.163.202]) (Authenticated sender: giuseppe.broccolo@2ndquadrant.it) by bnc1.pnet.xcon.it (Postfix) with ESMTPSA id 7C1DE1022E36 for ; Mon, 30 Sep 2013 16:38:50 +0200 (CEST) Message-ID: <52498D71.8010002@2ndquadrant.it> Date: Mon, 30 Sep 2013 16:40:49 +0200 From: Giuseppe Broccolo User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.0 MIME-Version: 1.0 To: pgsql-performance@postgresql.org Subject: Re: pg_statio_all_tables columns References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-performance Precedence: bulk Sender: pgsql-performance-owner@postgresql.org Hi Xenofon, Il 30/09/2013 14:45, Xenofon Papadopoulos ha scritto: > I am trying to understand the heap_blks_read and heap_blks_hit of > pg_statio_all_tables in 9.2 > Do the numbers refer only to SELECT, or they take INSERT into account? heap_blks_read and heap_blks_hit refer to number of blocks read from disk layer and from page cache respectively during table usage, independently if insert, select, delete, update operations are involved. > Would a heap_blks_read / ( heap_blks_read + heap_blks_hit ) ration of > over 55% combined with a heap_blks_read value of over 50M indicate an > issue with the queries affecting that table, or it is normal if the > table is heavily written to? High values of this ratio mean you have a well-cached database, since disk blocks reads slow down database operations. You can performe it increasing the cache available to your database. Giuseppe. -- Giuseppe Broccolo - 2ndQuadrant Italy PostgreSQL Training, Services and Support giuseppe.broccolo@2ndQuadrant.it | www.2ndQuadrant.it -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance