Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1egXod-0007me-5y for pgsql-performance@arkaria.postgresql.org; Tue, 30 Jan 2018 15:27:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1egXoc-00035V-E6 for pgsql-performance@arkaria.postgresql.org; Tue, 30 Jan 2018 15:27:18 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1egXnw-0006Fl-DH for pgsql-performance@lists.postgresql.org; Tue, 30 Jan 2018 15:26:36 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1egXns-0008CY-B6 for pgsql-performance@postgresql.org; Tue, 30 Jan 2018 15:26:34 +0000 Received: from bruce by momjian.us with local (Exim 4.84_2) (envelope-from ) id 1egXnp-0001iO-Hh; Tue, 30 Jan 2018 10:26:29 -0500 Date: Tue, 30 Jan 2018 10:26:29 -0500 From: Bruce Momjian To: Svensson Peter Cc: Joe Conway , "pgsql-performance@postgresql.org" Subject: Re: SV: pgaudit and create postgis extension logs a lot inserts Message-ID: <20180130152629.GE31052@momjian.us> References: <1CC6B04B8F153C4CBE486B1C7FD897430269E49962@WINVMSERV463.ad.smhi.se> <514a9172-df28-56ab-ee65-2c01e5cbeb6a@joeconway.com> <1CC6B04B8F153C4CBE486B1C7FD897430269E5D2EB@WINVMSERV464.ad.smhi.se> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1CC6B04B8F153C4CBE486B1C7FD897430269E5D2EB@WINVMSERV464.ad.smhi.se> User-Agent: Mutt/1.5.23 (2014-03-12) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Fri, Jan 19, 2018 at 11:03:42AM +0000, Svensson Peter wrote: > > A test to create postgis extension made 4 rsyslog processes run for several minutes with high cpu util, > and when you have only 8 cpu:s this take lot of resources. > The create command also have to wait until all the log are written so there are great impact. > Log file got 16 GB big only for this. Uh, that seems odd. Is rsyslog fsync'ing each write? You should check the docs on that. Here is an example report: http://kb.monitorware.com/simple-question-what-does-the-dash-t10237.html I don't see the dash behavior mentioned in my Debian Jessie rsyslogd manual page though. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + As you are, so once was I. As I am, so you will be. + + Ancient Roman grave inscription +