From: Eric Sandeen <sandeen@redhat.com>
To: "Theodore Ts'o" <tytso@mit.edu>
Cc: Ext4 Developers List <linux-ext4@vger.kernel.org>
Subject: Re: [PATCH] ext4: add max_dir_size_kb mount option
Date: Fri, 10 Aug 2012 15:16:57 -0500 [thread overview]
Message-ID: <50256C39.4030502@redhat.com> (raw)
In-Reply-To: <20120810195907.GA557@thunk.org>
On 8/10/12 2:59 PM, Theodore Ts'o wrote:
> On Fri, Aug 10, 2012 at 02:38:10PM -0500, Eric Sandeen wrote:
>>
>> Can the commit message also describe more about the problem: how bad
>> it is, the root cause, and why it's so hard to fix properly?
>
> The use case is going to be fairly userspace specific, but one example
> might be if the log reaper fails to run for whatever reason, and the
> log directory then proceeds to grow without bound. And then when the
> log repear *does* have a chance to run, if it happens to be in tight
> memory cgroup, it then dies so the directory grows even larger, and
> then when other processes try to access the directory, a readdir will
> cause them to die because of their memory limitation, and hilarity
> ensues.
Oh, I thought this was papering over a scaling problem in ext4. The intent
is to protect userspace from arbitrarily large readdir results?
If that's the case, this should probably be proposed as a VFS level
option, and see how it's received there...
(Can you tell I'm not a huge fan of the idea?) ;)
-Eric
> You can fix this in other places in the software stack, but belt and
> suspenders is good, and if there is no reason for directories to grow
> larger than some set size, it's better to get a hard failure with an
> ENOSPC rather than an funny failures caused by OOM's or slower and
> slower performance.
>> Please also update Documentation/filesystems/ext4.txt so people
>> know for sure what the use & intent of this new knob is.
>
> Yes, I'll do that in the next spin of the patches.
>
> - Ted
>
next prev parent reply other threads:[~2012-08-10 20:17 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-10 19:23 [PATCH] ext4: add max_dir_size_kb mount option Theodore Ts'o
2012-08-10 19:38 ` Eric Sandeen
2012-08-10 19:59 ` Theodore Ts'o
2012-08-10 20:16 ` Eric Sandeen [this message]
2012-08-10 21:59 ` Theodore Ts'o
2012-08-10 20:11 ` Jeff Moyer
2012-08-10 21:58 ` Theodore Ts'o
2012-08-10 23:14 ` Andreas Dilger
2012-08-11 1:40 ` [PATCH -v2] " Theodore Ts'o
2012-08-11 3:22 ` Andreas Dilger
2012-08-11 19:26 ` Theodore Ts'o
2012-08-11 21:10 ` Andreas Dilger
2012-08-11 21:13 ` Ted Ts'o
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=50256C39.4030502@redhat.com \
--to=sandeen@redhat.com \
--cc=linux-ext4@vger.kernel.org \
--cc=tytso@mit.edu \
/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.