All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dave Chinner <david@fromorbit.com>
To: Ivan.Novick@emc.com
Cc: Timothy.Heath@emc.com, xfs@oss.sgi.com
Subject: Re: allocsize mount option behavior
Date: Wed, 17 Nov 2010 12:26:29 +1100	[thread overview]
Message-ID: <20101117012629.GK22876@dastard> (raw)
In-Reply-To: <C9083DF0.FCE%ivan.novick@emc.com>

On Tue, Nov 16, 2010 at 04:56:00PM -0500, Ivan.Novick@emc.com wrote:
> Hello,
> 
> I am using the allocsize mount option to reduce fragmentation, by
> ensuring extents are of a minimum size.
> 
> Under a workload with heavy concurrency we noticed that disk space
> usage went up noticeably.

Expected behaviour.

> Can someone clarify the expected behavior of allocsize.  Does it
> force files to be at least the allocsize size on disk, or is the
> allocsize size reserved for each open file and then freed up if it
> is not used and the file is closed, or does it work some other
> way.

The latter - it's an in-memory, per-inode speculative allocation
that is removed when the file is closed.

> For example if allocsize=1g and I open 1000 files and start
> writing a small amount of data to each file …. Would the device
> show as using 1000* 1g of disk space while the files are opened
> and after they are closed then only the amount of space actually
> written by the user would be shown as used on disk?

Yes, exactly.

Cheers,

Dave.
-- 
Dave Chinner
david@fromorbit.com

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

      reply	other threads:[~2010-11-17  1:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-16 21:56 allocsize mount option behavior Ivan.Novick
2010-11-17  1:26 ` Dave Chinner [this message]

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=20101117012629.GK22876@dastard \
    --to=david@fromorbit.com \
    --cc=Ivan.Novick@emc.com \
    --cc=Timothy.Heath@emc.com \
    --cc=xfs@oss.sgi.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.