linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Eric Sandeen <sandeen@redhat.com>
To: ext4 development <linux-ext4@vger.kernel.org>
Subject: Re: Where all does preallocated/extra space hide?
Date: Thu, 01 Oct 2009 11:55:47 -0500	[thread overview]
Message-ID: <4AC4DF13.10704@redhat.com> (raw)
In-Reply-To: <4AC23A17.5020100@redhat.com>

Eric Sandeen wrote:
> I was running some of the xfstests enospc tests on ext4, and they were
> failing; in one case, manymanymany small files are made to fill up a
> 100M filesystem.  ext4 stops quite early with -ENOSPC, but after a bit,
> (or after a "sync") we get 40MB free again.  So 40% of the fs space is
> hidden somewhere in preallocation...
> 
> I tried calling out to discard group prealloc but that's only a few
> blocks.  I'll go trace through the sync paths to see what all gets
> released, but if anyone knows offhand where the rest of that space is
> hiding, please give me a shout.  :)
> 
> Thanks,
> -Eric

Possibly related; on a 1G filesystem, doing this:

#!/bin/bash

xfs_io -F -f -d -c 'pwrite -b 64k 0 512m' /mnt/test/io_test
rm /mnt/test/io_test

in a "while true" loop spews ENOSPC.  (it's a direct IO 512m write in 
64k chunks).  Buffered IO seems fine ...

-Eric

  reply	other threads:[~2009-10-01 16:55 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-29 16:47 Where all does preallocated/extra space hide? Eric Sandeen
2009-10-01 16:55 ` Eric Sandeen [this message]
2009-10-08 11:48 ` Aneesh Kumar K.V
2009-10-08 15:56   ` Eric Sandeen
2009-10-09  5:27     ` Aneesh Kumar K.V
2009-10-09 14:51       ` Eric Sandeen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4AC4DF13.10704@redhat.com \
    --to=sandeen@redhat.com \
    --cc=linux-ext4@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).