Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YTaQO-00083U-SS for pgsql-bugs@arkaria.postgresql.org; Thu, 05 Mar 2015 18:23:09 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YTaQO-0005kS-25 for pgsql-bugs@arkaria.postgresql.org; Thu, 05 Mar 2015 18:23:08 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YTaQN-0005kL-18 for pgsql-bugs@postgresql.org; Thu, 05 Mar 2015 18:23:07 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YTaQJ-0002kf-TK for pgsql-bugs@postgresql.org; Thu, 05 Mar 2015 18:23:05 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id t25IN1qv028363; Thu, 5 Mar 2015 13:23:01 -0500 From: Tom Lane To: bryce2@obviously.com cc: pgsql-bugs@postgresql.org Subject: Re: BUG #12834: Avoiding Disk Control Writes for better Laptop / SSD compatibility. pgstats In-reply-to: <20150305181432.2529.76377@wrigleys.postgresql.org> References: <20150305181432.2529.76377@wrigleys.postgresql.org> Comments: In-reply-to bryce2@obviously.com message dated "Thu, 05 Mar 2015 18:14:32 +0000" Date: Thu, 05 Mar 2015 13:23:01 -0500 Message-ID: <28362.1425579781@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org bryce2@obviously.com writes: > Every minute postgresql runs the "stats" process which writes the following > files: > postgres(3814): CW /var/lib/postgresql/9.4/main/pg_stat_tmp/db_0.tmp > postgres(3814): CW /var/lib/postgresql/9.4/main/pg_stat_tmp/global.tmp > postgres(3814): CW /var/lib/postgresql/9.4/main/pg_stat_tmp/db_12066.tmp > postgres(3814): CW /var/lib/postgresql/9.4/main/pg_stat_tmp/global.stat > postgres(568): CW /var/lib/postgresql/9.4/main/base/12066/11868 > unknown(568): CW /var/lib/postgresql/9.4/main/global/12062 > unknown(568): CW /var/lib/postgresql/9.4/main/base/12066/11828 > unknown(568): CW /var/lib/postgresql/8.4/main/base/12066/11833 The stats collector only writes something when asked to. In this case what's asking for stats is probably the autovacuum launcher. You could dial back the autovacuum naptime if you want fewer autovacuum wakeups. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs