Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp10600832ybi; Thu, 11 Jul 2019 07:58:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqzrVH2hM3S0aQ6bgh4TCiGj2ny0ekZ3WiCMIsoz9BFtvvE5hrFHnGmYmz9BdQGQ+bRZTVoP X-Received: by 2002:a65:4808:: with SMTP id h8mr4856549pgs.22.1562857082690; Thu, 11 Jul 2019 07:58:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562857082; cv=none; d=google.com; s=arc-20160816; b=HX9cEnLIQdmwUznohdhbzJg8YRY/Bh0QpjKqGg+qFeOlE++xX+1tPl597FOAx4ziqf F6jMRCZqZrk207C96UHC9jayZroVcdPC1BuCMf2jW+WdSdbSP9k+QEH7Bby+zamDN2fs XFajGRmhN+xYlBSmLZN0rPp/MZ20pP0NPlZC6rlqGw2E4ocTh7pgeCTew0Nke50jQGBs a/iTAqOM1iUOyWdp6Pog6oVf1Ficce24xySmtufy8GXYhR/uko1dVsnTfXqor3BQI1sF P94jE3rm0C3K48BwTx6A+KefmkcQoR8lzDwXW/dQCbwHYXMILWUR5HtRI5vbTGjTnLa/ UaFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=gmWSkrSyPreeL6vapBY61D9bNA+7st14AuqsN2ySmVg=; b=vl+tPaSpync4YgtAyhJrO3lDGfLb9MuV2U30v8Mz7fxr43vq8sk9AMajttylwt83+M GwwlcMfxFbz0vjc7YhIdH4GEIrlj7RkW4G+ZWzFKHQHnjwCSPQvsJWYHQNLbcifi4Xht lxdEph6ydBZcKx2JbBCzMjez8BDnBwwu9wDSUlb3jIcIvEUKllfz3u5Q6VV58ie2Kcds JqwmsMFqwk17RH0P52OPZuKNAq6A0nkKYacgF/ipp/0K/45DGRQsFuZEFtXlNySTtxpm sOdLD/fXSHXAUEuRLmkjB8jdPCJ088GsSXn5ygjkC4EVRAqtgVZEMXYaZdYinUn9xiMs fC7A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f74si1390928pfa.57.2019.07.11.07.57.41; Thu, 11 Jul 2019 07:58:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728555AbfGKOtT convert rfc822-to-8bit (ORCPT + 99 others); Thu, 11 Jul 2019 10:49:19 -0400 Received: from mxo2.dft.dmz.twosigma.com ([208.77.212.182]:49625 "EHLO mxo2.dft.dmz.twosigma.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728471AbfGKOtT (ORCPT ); Thu, 11 Jul 2019 10:49:19 -0400 X-Greylist: delayed 515 seconds by postgrey-1.27 at vger.kernel.org; Thu, 11 Jul 2019 10:49:19 EDT Received: from localhost (localhost [127.0.0.1]) by mxo2.dft.dmz.twosigma.com (Postfix) with ESMTP id 45kzHv6Qhnz7t91; Thu, 11 Jul 2019 14:40:43 +0000 (GMT) X-Virus-Scanned: Debian amavisd-new at twosigma.com Received: from mxo2.dft.dmz.twosigma.com ([127.0.0.1]) by localhost (mxo2.dft.dmz.twosigma.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tyjWWggbRvj8; Thu, 11 Jul 2019 14:40:43 +0000 (GMT) Received: from exmbdft6.ad.twosigma.com (exmbdft6.ad.twosigma.com [172.22.1.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mxo2.dft.dmz.twosigma.com (Postfix) with ESMTPS id 45kzHv5mXlz3wZ5; Thu, 11 Jul 2019 14:40:43 +0000 (GMT) Received: from EXMBDFT10.ad.twosigma.com (172.23.127.159) by exmbdft6.ad.twosigma.com (172.22.1.5) with Microsoft SMTP Server (TLS) id 15.0.1365.1; Thu, 11 Jul 2019 14:40:43 +0000 Received: from EXMBDFT10.ad.twosigma.com ([fe80::5821:6415:3fad:203e]) by EXMBDFT10.ad.twosigma.com ([fe80::5821:6415:3fad:203e%19]) with mapi id 15.00.1365.000; Thu, 11 Jul 2019 14:40:43 +0000 From: Geoffrey Thomas To: 'Jan Kara' , Thomas Walker CC: "'linux-ext4@vger.kernel.org'" , "Darrick J. Wong" , "'tytso@mit.edu'" Subject: RE: Phantom full ext4 root filesystems on 4.1 through 4.14 kernels Thread-Topic: Phantom full ext4 root filesystems on 4.1 through 4.14 kernels Thread-Index: AQHVLDJVDWy5GscrLU+Z6omBu3PDnabFPCSAgABXnMA= Date: Thu, 11 Jul 2019 14:40:43 +0000 Message-ID: <96c4e04f8d5146c49ee9f4478c161dcb@EXMBDFT10.ad.twosigma.com> References: <9abbdde6145a4887a8d32c65974f7832@exmbdft5.ad.twosigma.com> <20181108184722.GB27852@magnolia> <20190123195922.GA16927@twosigma.com> <20190626151754.GA2789@twosigma.com> <20190711092315.GA10473@quack2.suse.cz> In-Reply-To: <20190711092315.GA10473@quack2.suse.cz> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [192.168.147.160] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Thursday, July 11, 2019 5:23 AM, Jan Kara wrote: > On Wed 26-06-19 11:17:54, Thomas Walker wrote: > > Sorry to revive a rather old thread, but Elana mentioned that there might > > have been a related fix recently? Possibly something to do with > > truncate? A quick scan of the last month or so turned up > > https://www.spinics.net/lists/linux-ext4/msg65772.html but none of these > > seemed obviously applicable to me. We do still experience this phantom > > space usage quite frequently (although the remount workaround below has > > lowered the priority). > > I don't recall any fix for this. But seeing that remount "fixes" the issue > for you can you try whether one of the following has a similar effect? > > 1) Try "sync" > 2) Try "fsfreeze -f / && fsfreeze -u /" > 3) Try "echo 3 >/proc/sys/vm/drop_caches" > > Also what is the contents of > /sys/fs/ext4//delayed_allocation_blocks > when the issue happens? We just had one of these today, and no luck from any of those. delayed_allocation_blocks is 1: # df -h / Filesystem Size Used Avail Use% Mounted on /dev/disk/by-uuid/523c8243-5a25-40eb-8627-f3bbf98ec299 50G 47G 455M 100% / # ls -l /dev/disk/by-uuid/523c8243-5a25-40eb-8627-f3bbf98ec299 lrwxrwxrwx 1 root root 10 Mar 8 16:03 /dev/disk/by-uuid/523c8243-5a25-40eb-8627-f3bbf98ec299 -> ../../sda3 # cat /sys/fs/ext4/sda3/delayed_allocation_blocks 1 # sync; sync; sync # df -h / Filesystem Size Used Avail Use% Mounted on /dev/disk/by-uuid/523c8243-5a25-40eb-8627-f3bbf98ec299 50G 47G 455M 100% / # fsfreeze -f /; fsfreeze -u / # df -h / Filesystem Size Used Avail Use% Mounted on /dev/disk/by-uuid/523c8243-5a25-40eb-8627-f3bbf98ec299 50G 47G 455M 100% / # echo 3 > /proc/sys/vm/drop_caches [blocks for about 10 seconds] # df -h / Filesystem Size Used Avail Use% Mounted on /dev/disk/by-uuid/523c8243-5a25-40eb-8627-f3bbf98ec299 50G 47G 454M 100% / # umount / [blocks for about 2 seconds] umount: /: device is busy. (In some cases useful info about processes that use the device is found by lsof(8) or fuser(1)) # df -h / Filesystem Size Used Avail Use% Mounted on /dev/disk/by-uuid/523c8243-5a25-40eb-8627-f3bbf98ec299 50G 16G 32G 33% / # uname -r 4.14.67-ts1 -- Geoffrey Thomas geofft@twosigma.com