From: "H. Peter Anvin" <hpa@zytor.com>
To: Lee Revell <rlrevell@joe-job.com>
Cc: Stefan Monnier <monnier@iro.umontreal.ca>, linux-kernel@vger.kernel.org
Subject: Re: Treat disk space like memory space
Date: Fri, 16 Nov 2007 10:30:12 -0800 [thread overview]
Message-ID: <473DE1B4.8090703@zytor.com> (raw)
In-Reply-To: <75b66ecd0711151624n476d2e83xd1acbb23a5bffcf0@mail.gmail.com>
Lee Revell wrote:
> On Nov 15, 2007 5:24 PM, Stefan Monnier <monnier@iro.umontreal.ca> wrote:
>> [ I realize this is probably better implemented outside of the kernel, but
>> it seems like it might be of interest here. Please redirect me to
>> a more appropriate place if you can think of one (other than
>> /dev/null that is). ]
>
> It would require some kernel support to reclaim the storage from the
> caching application rather than returning -ENOSPC when a "normal" app
> needs the storage. Even if you make the caching app free the space by
> itself you need a kernel mechanism to signal it when this happens.
>
In particular, you need a way to hold off the "real" application until
disk reclaim is done.
If you do it purely in userspace (asynchronously) then it's subject to
ENOSPC while the reclaimer runs.
This, by the way, has been discussed on and off -- often in the context
of undelete (which is an identical problem.) The problem usually is
that performance of real storage users suffer because of locality
issues. However, flash storage doesn't have locality requirements...
-hpa
next prev parent reply other threads:[~2007-11-16 18:31 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-15 22:24 Treat disk space like memory space Stefan Monnier
2007-11-16 0:03 ` Wes Felter
2007-11-16 0:24 ` Lee Revell
2007-11-16 18:30 ` H. Peter Anvin [this message]
2007-11-16 19:34 ` Jörn Engel
2007-11-23 14:28 ` Pavel Machek
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=473DE1B4.8090703@zytor.com \
--to=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=monnier@iro.umontreal.ca \
--cc=rlrevell@joe-job.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.