Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 9C148633083 for ; Thu, 12 Feb 2009 18:13:14 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 00285-01 for ; Thu, 12 Feb 2009 18:13:11 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-fx0-f16.google.com (mail-fx0-f16.google.com [209.85.220.16]) by mail.postgresql.org (Postfix) with ESMTP id 159E16330F8 for ; Thu, 12 Feb 2009 18:13:00 -0400 (AST) Received: by fxm9 with SMTP id 9so395962fxm.19 for ; Thu, 12 Feb 2009 14:12:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :content-type:content-transfer-encoding:mime-version:subject:date :references:x-mailer; bh=MXJh1E6FnxbhdZa2COxsrh7T7g/mnVk8D34GiNRmPSI=; b=YXCXAIIHSvELzM9H2JDzcUp/DQ89y0NzI8X6W+4YoeLOHW7Xec0GvAJpyosIi5uaBc 7uBQjmEBkAQQz/WC8lMPEs4s3B58kxoyXHnEMStlrbEM5+eJ18w55IjVuJGot/aTWzCJ qgn5ZOQYR7KNNf1+9Zf+tZk8ksGYgz0IO86/U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:content-type:content-transfer-encoding :mime-version:subject:date:references:x-mailer; b=Z9IFmmdRqlG6Wz7y/vUEfxHYP5TwhrxNKHh9Tan0gzOvFvbfnF1QifVwLrd6uGTIeY Gm89IX+uLrPl2kuJKwGvAUlCD4gVqjd954TFBZ7r2jn0mPgb8y7p6mcDz2AHlxQ87biY groug6nI3cSY3D0gr04ZqP/x4j86VWrN3wefM= Received: by 10.223.110.3 with SMTP id l3mr1840004fap.49.1234476611436; Thu, 12 Feb 2009 14:10:11 -0800 (PST) Received: from mac01-2.lan (ip56500a38.direct-adsl.nl [86.80.10.56]) by mx.google.com with ESMTPS id f3sm801096nfh.45.2009.02.12.14.10.08 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 12 Feb 2009 14:10:10 -0800 (PST) Message-Id: From: Ceriel Jacobs To: pgsql-admin@postgresql.org Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v930.3) Subject: Stop postgres writing to pgstat.tmp :: how disable / to verify that postgres statistics are correctly disabled Date: Thu, 12 Feb 2009 23:10:03 +0100 References: <6B7FEBD6-D66C-46FA-AAC9-012AE383713A@gmail.com> X-Mailer: Apple Mail (2.930.3) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200902/86 X-Sequence-Number: 31307 In the search to speed up the slow generate_tiles.py script (~ 37 tiles per minute) that connects with a postgresql 8.3.5 database on Mac OS X 10.5.6 installed via macports, I found out with 'iofileb.d' & 'iofile.d' that much disk i/o was used by writing to /global/pgstat.tmp. Now I disabled statistics (I think) by changing /opt/local/var/db/ postgresql83/defaultdb/postgresql.conf while the postgres daemon was being stopped: #track_activities = on track_activities = off #track_counts = on track_counts = off #update_process_title = on update_process_title = off After (re)starting postgres daemon, there is a major speed improvement (> 575 tiles / minute), but still some statistics writing is being done: $ sudo iofileb.d Password: Tracing... Hit Ctrl-C to end. ^C PID CMD KB FILE 100 perl 4 ??/webmin/miniserv.pid #webmin 1030 Python 4 ??/33481/21874.png 1030 Python 4 ??/33481/21876.png 1030 Python 4 ??/33481/21878.png 1030 Python 4 ??/33481/21879.png 1030 Python 4 ??/33481/21880.png 1030 Python 4 ??/33481/21881.png 1030 Python 4 ??/33481/21882.png 1030 Python 4 ??/33481/21883.png 1030 Python 4 ??/33481/21884.png 1030 Python 4 ??/33481/21885.png 1030 Python 4 ??/33481/21886.png 1030 Python 4 ??/33481/21887.png 1030 Python 4 ??/33481/21888.png 1030 Python 4 ??/33481/21889.png 1030 Python 4 ??/33481/21890.png 1030 Python 4 ??/33481/21891.png 1030 Python 4 ??/33481/21892.png 1030 Python 4 ??/33481/21893.png 1030 Python 4 ??/33481/21894.png 1030 Python 4 ??/33481/21895.png 1030 Python 4 ??/33481/21896.png 1030 Python 4 ??/33481/21897.png 1030 Python 4 ??/33481/21898.png 1030 Python 4 ??/33481/21899.png 1030 Python 4 ??/33481/21900.png 1030 Python 4 ??/33481/21901.png 1030 Python 4 ??/33481/21902.png 1030 Python 8 ??/33481/21875.png 1030 Python 8 ??/33481/21877.png 1025 postgres 168 ??/global/pgstat.tmp = 124KB for images versus 168KB for postgres in this (short) period of time. Questions: 1. How can I verify that I edited the correct postgresql.conf file, in other words how can I verify which postgresql.conf file is used by MacPorts daemon? I would say by checking the process tree, and check which data directory is specified: 103 postgres /opt/local/lib/postgresql83/bin/postgres -D /opt/ local/var/db/postgresql83/defaultdb 105 postgres postgres: writer process 106 postgres postgres: wal writer process 107 postgres postgres: autovacuum launcher process 108 postgres postgres: stats collector process 259 postgres postgres: postgres gis [local] idle 2. Is it correct to think that when disabling statistics in postgresql.conf, no pgstat.tmp should be written to, or are more actions required? 3. Or should I restart the server machine before these 'disabling statistics' changes become effective in postgres server? ~Ceriel