From: Theodore Ts'o <tytso@mit.edu>
To: Azat Khuzhin <a3at.mail@gmail.com>
Cc: "Darrick J. Wong" <darrick.wong@oracle.com>,
"open list:EXT4 FILE SYSTEM" <linux-ext4@vger.kernel.org>
Subject: Re: FAST paper on ffsck
Date: Wed, 29 Jan 2014 14:40:22 -0500 [thread overview]
Message-ID: <20140129194022.GC30419@thunk.org> (raw)
In-Reply-To: <CAG5DWogJ5SiBfpK6k-_4gB-Roea-F+KWTnDm8xRF1Sf-vmOFFw@mail.gmail.com>
On Wed, Jan 29, 2014 at 11:21:07PM +0400, Azat Khuzhin wrote:
>
> Workload: there are _many_ files that don't deleted, append/full
> rewrite/create only, lifetime 1-2 years:
>
> 8988871 inodes used (2.09%, out of 429817856)
> 1012499 non-contiguous files (1.7%)
> 2039 non-contiguous directories (0.0%)
> # of inodes with ind/dind/tind blocks: 0/0/0
> Extent depth histogram: 8616444/372389/30
> # about 99% blocks in use wrong information, I shrinked fs before
> this, to minimal size
Shrinking the file system is known to result in really horrible
fragmentation. Part of this is because resize2fs has a really stupid
block allocator, but if you're going to shrink the file system to
minimal size the results can be truly catastrophic from a file
fragmentation point of view. (Imagine my horror when I was told that
Fedora was creating bootable CD-ROM's by creating a large file system
image, and then using resize2fs -M to shink it to minimal size. Not
only would the file layout be definitely non-optimal, but worse,
CD-ROM drives are not know for fast seek times!)
We can probably make resize2fs smarter in the case where we are
shrinking the file system slightly (say, to make room for LVM /thinp
metadata when coverting a whole disk file system to one which is being
managed via LVM). But I'm not sure it's ever going to be worth it
making resize2fs -M generate an optimal, minimally fragmented file
system image.
- Ted
next prev parent reply other threads:[~2014-01-29 19:40 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-09 18:01 FAST paper on ffsck Theodore Ts'o
2013-12-12 5:30 ` Dave Chinner
2014-01-29 19:45 ` Darrick J. Wong
2014-01-29 18:57 ` Darrick J. Wong
2014-01-29 19:21 ` Azat Khuzhin
2014-01-29 19:40 ` Theodore Ts'o [this message]
2014-01-29 20:09 ` Azat Khuzhin
2014-01-30 3:14 ` Darrick J. Wong
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=20140129194022.GC30419@thunk.org \
--to=tytso@mit.edu \
--cc=a3at.mail@gmail.com \
--cc=darrick.wong@oracle.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).