Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bkEFi-0006fm-05 for pgsql-performance@arkaria.postgresql.org; Wed, 14 Sep 2016 17:45:42 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bkEFh-0001y6-CX for pgsql-performance@arkaria.postgresql.org; Wed, 14 Sep 2016 17:45:41 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bkEFg-0001y0-VZ for pgsql-performance@postgresql.org; Wed, 14 Sep 2016 17:45:41 +0000 Received: from mail-wm0-x22e.google.com ([2a00:1450:400c:c09::22e]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1bkEFd-0004u2-Pa for pgsql-performance@postgresql.org; Wed, 14 Sep 2016 17:45:40 +0000 Received: by mail-wm0-x22e.google.com with SMTP id k186so21589467wmd.0 for ; Wed, 14 Sep 2016 10:45:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=C4JbfD7WLgwrwsPr0YlUrkB84oF2UGvMJruIcF3tkls=; b=M5bgWSzsqGKkyDf8sXoAk1IrcL2gXdYZ8OUCn9AQEO0fyiStYbwKbmjom7w/5jCOIj uzrQCqIAbcatOTJK+3zV4Oa+hLrJqY6srrRtKQEcp++DkkT5auhsqQkunYlY81JwYJHb L5T8t+3h0Fxrov/jIdU3mGqC+yV1zjRj7gRu2e4Byu2aNkvG7ozP1CaN1h3b8WNEUzFO xyfgFw9v/iNcL3dfutR9GdDnpwGlZzJ7Lo3xaRjDDs79ju/mROZ2NqGgAkNxyeqh+/TO iUSv7GiUbwMIOn3cJZw4NALhqcX+Zh4qmiXvWqmzNWg28U6h0BrB97nr+ByiyC4OXZWG vMuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=C4JbfD7WLgwrwsPr0YlUrkB84oF2UGvMJruIcF3tkls=; b=XKch5qFHiZkp7MZEcoL1R4NW69Z3emNli5qtggFitD6IFDe1U73gUoYaOcJ2fz11j5 l1i+ZcvXUYhngzEicKCQOYtD6M5zkZ/s/fgPA8N9eAvFVVY2VsEpM1LMpyw4vZH18lZ3 KIIPzwl1dhduaPPEbSCTydVI2OvCFUHiIlfYtik0xIqzvnL8uF0hwyqT2j5kNWQsxgbY +t2vDQQDChgWTd/zAp9HXDZUh5i/ZuDPVQlAAc8cGKsbhfP00k9KAnlqH6zrVW9Toou7 Jmy4wGQvb6wG3PzHSfNQnP5MhRNrjyuV8fiCBUo2nY5UMKOm0JOSMo5Ne73yRo5nNLhF SXFw== X-Gm-Message-State: AE9vXwM53/3MMD/BV+Bm2+T4JweEwx4S/Amkxq6jJAo/TX9gZKrnZC91Z9z6Ap7cZbiDeg== X-Received: by 10.28.10.138 with SMTP id 132mr11339584wmk.1.1473875137003; Wed, 14 Sep 2016 10:45:37 -0700 (PDT) Received: from [192.168.2.5] (2-230-140-245.ip202.fastwebnet.it. [2.230.140.245]) by smtp.gmail.com with ESMTPSA id 4sm11764837wmu.2.2016.09.14.10.45.35 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 14 Sep 2016 10:45:35 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: Disk filled-up issue after a lot of inserts and drop schema From: Pietro Pugni In-Reply-To: <28460.1473864279@sss.pgh.pa.us> Date: Wed, 14 Sep 2016 19:45:34 +0200 Cc: Rick Otten , pgsql-performance@postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <28460.1473864279@sss.pgh.pa.us> To: Tom Lane X-Mailer: Apple Mail (2.3124) X-Pg-Spam-Score: -2.7 (--) 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 Thank you guys. I=E2=80=99ve jsut discovered the issue.. I set "logging_collector=3Doff=E2= =80=9D in the previous email but didn=E2=80=99t comment the other log* para= meters, so Postgres was logging every single INSERT! This was caused the di= sk to fill up. The strange issue is that the log file didn=E2=80=99t exists when the disk = filled up. I personally looked for it but it wasn=E2=80=99t where it should= have been ( /var/log/postgesql/ ), so I can=E2=80=99t exactly confirm that= the issue was the log file getting bigger and bigger. Now, after writing the previous mail and rebooting postgres, I run several = ETL jobs and the disk space was filling up. The log file reached 110GB in s= ize. After disabling *ALL* the log options in postgresql.conf, the log file does= just the essential and default information. I=E2=80=99m sorry to have launched a false alarm, but we can consider the i= ssue solved. Thank you again Best regards, Pietro Pugni > Il giorno 14 set 2016, alle ore 16:44, Tom Lane ha sc= ritto: >=20 > Rick Otten writes: >> I don't know why something still has an open file descriptor on something >> you believe has been removed, but at least that explains why you are >> experiencing the discrepancy between "du" and the real available space on >> the disk. >=20 > Yeah, the reported behavior clearly indicates that some PG process is > holding open files that should have been dropped (and were unlinked). > That's a bug, but there's not enough info here to find and fix it. >=20 > If we're really lucky, this is the same bug that Andres found and fixed > last week: > https://git.postgresql.org/gitweb/?p=3Dpostgresql.git;a=3Dcommitdiff;h=3D= 26ce63ce76f91eac7570fcb893321ed0233d62ff >=20 > but that guess is probably too optimistic, especially if it's a background > process (such as the checkpointer process) that is holding the open files. >=20 > If you can reproduce this, which I'm guessing you can, please use > "lsof" or similar tool to see which Postgres process is holding open > references to lots of no-longer-there files. >=20 > regards, tom lane --=20 Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance