Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp10259503ybi; Thu, 11 Jul 2019 02:24:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqx6g2HzRgIE9OOJaDnORIUcy3ndDZdKwDgBkO1wk3UWnt4MhYqPaJRcl27Z5qymKhDX7YXS X-Received: by 2002:a63:5d45:: with SMTP id o5mr3413645pgm.40.1562837058635; Thu, 11 Jul 2019 02:24:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562837058; cv=none; d=google.com; s=arc-20160816; b=gUzfJnj8qFlCEFQZtxJHfnqoaaBRkxDZ8QSzIuTIInEYkzMv3PzL5TnRQTDvraJlrx sobPOMaANr+xJQktJAU91VqGz2ijzVVwmKPjBG1stf8f0QlH6w4rxTlY5ZX5nB/C3+1v 8MBe3modzdNpIrdLhzxB4oCDD54CY/ruz5jPBF5rShAniQiZqgZDh6o2p4ae09WeNoWL f11ToCH9wdpNWZ0iWXL7ZmcZC9OXIgnAilw3kByrJ8c/Ui0ogz4NaVY5ZjXhC9CSjl0n J/TCsc1m/95BcBFsRX4o12E5MSkpLvDmX4Fyx6Haj0oNCMHe8ucIHKNZn+SIrO/p7I/r 5AUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=dR9fmEDtFTTMAUec0hEv2XdPJ82IwAIChXkTAeEbf40=; b=bCYq6jSU0nS71AiNe8s9SmI8V/kflIG7L/8OAMtOxJa5I3gty2kS8qdRFAys7O+6mO TsRMrAupfi4WWIH+bDSwcv1U6BPb49c5EcC/3ANA5GHN82OnYIb1cwXud87UBEoObBTb Cr5xI9hhT2AG3NWoPbqj3+fLow4dgbmVU8VIQRu/EmbZcUYVWysR9Wq0QFEg8KFeBzoM TIKNI5/rsJ+CEFH4iIyw/dVFrQ+ZI3Aox73SeGI11Snp8+/4NbPRcPakgRTeAIS7MjRE FvqhZpnMDk3/7aSrkE9nrrsjdMeWnAIRFTvt070B5nmFqrQTkTV4kvnk3LXAUjxUa7zn bDXg== 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 c127si5103852pfa.20.2019.07.11.02.23.56; Thu, 11 Jul 2019 02:24:18 -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 S1728261AbfGKJXS (ORCPT + 99 others); Thu, 11 Jul 2019 05:23:18 -0400 Received: from mx2.suse.de ([195.135.220.15]:37820 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728121AbfGKJXS (ORCPT ); Thu, 11 Jul 2019 05:23:18 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 3BE18ADF1; Thu, 11 Jul 2019 09:23:17 +0000 (UTC) Received: by quack2.suse.cz (Postfix, from userid 1000) id E07FB1E3C3B; Thu, 11 Jul 2019 11:23:15 +0200 (CEST) Date: Thu, 11 Jul 2019 11:23:15 +0200 From: Jan Kara To: Thomas Walker Cc: "'linux-ext4@vger.kernel.org'" , "Darrick J. Wong" , "'tytso@mit.edu'" , Geoffrey Thomas Subject: Re: Phantom full ext4 root filesystems on 4.1 through 4.14 kernels Message-ID: <20190711092315.GA10473@quack2.suse.cz> References: <9abbdde6145a4887a8d32c65974f7832@exmbdft5.ad.twosigma.com> <20181108184722.GB27852@magnolia> <20190123195922.GA16927@twosigma.com> <20190626151754.GA2789@twosigma.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190626151754.GA2789@twosigma.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org 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? Honza > > On Wed, Jan 23, 2019 at 02:59:22PM -0500, Thomas Walker wrote: > > Unfortunately this still continues to be a persistent problem for us. On another example system: > > > > # uname -a > > Linux 4.14.67-ts1 #1 SMP Wed Aug 29 13:28:25 UTC 2018 x86_64 GNU/Linux > > > > # df -h / > > Filesystem Size Used Avail Use% Mounted on > > /dev/disk/by-uuid/ 50G 46G 1.1G 98% / > > > > # df -hi / > > Filesystem Inodes IUsed IFree IUse% Mounted on > > /dev/disk/by-uuid/ 3.2M 306K 2.9M 10% / > > > > # du -hsx / > > 14G / > > > > And confirmed not to be due to sparse files or deleted but still open files. > > > > The most interesting thing that I've been able to find so far is this: > > > > # mount -o remount,ro / > > mount: / is busy > > # df -h / > > Filesystem Size Used Avail Use% Mounted on > > /dev/disk/by-uuid/ 50G 14G 33G 30% / > > > > Something about attempting (and failing) to remount read-only frees up all of the phantom space usage. > > Curious whether that sparks ideas in anyone's mind? > > > > I've tried all manner of other things without success. Unmounting all of the overlays. Killing off virtually all of usersapce (dropping to single user). Dropping page/inode/dentry caches.Nothing else (short of a reboot) seems to give us the space back. -- Jan Kara SUSE Labs, CR