mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jens Wilke <jens.wilke@de.ibm.com>
To: dm-devel@redhat.com
Cc: "Eric Van Hensbergen" <ericvh@gmail.com>,
	Eric Van Hensbergen <ericvh@hera.kernel.org>,
	ming@acis.ufl.edu, linux-kernel@vger.kernel.org
Subject: Re: [dm-devel] [RFC][PATCH] dm-cache: block level disk cache target for device mapper
Date: Thu, 30 Nov 2006 21:07:39 +0100	[thread overview]
Message-ID: <200611302107.40418.jens.wilke@de.ibm.com> (raw)
In-Reply-To: <a4e6962a0611300824qdfa43cbja783da86fe6eb5cf@mail.gmail.com>

On Thursday 30 November 2006 17:24, Eric Van Hensbergen wrote:
> On 11/30/06, Jens Wilke <jens.wilke@de.ibm.com> wrote:
> > On Monday 27 November 2006 19:26, Eric Van Hensbergen wrote:
> >
> > If this is intended to speed up remote disks, is it possible that the cache content
> > can be paged out on local disks in low-mem situations?
> >
> 
> The main intent was to use local disks as cache to offload centralized
> remote disks.  The logic was that most systems have local disks, if
> only for swap -- so why not use them as a cache to help offload
> centralized storage.  While the in-memory page cache works perfectly
> fine in certain situations -- we were dealing with workloads in which
> the in-memory page-cache wasn't sufficient to hold all the data.

I derived from the code that the cache is actually another block device
and not memory. Maybe you should give a little more description and
a sample 'dmsetup create' statement.

> There are also some additional possibilities we've thought through and
> have been playing with including allowing the local disk cache to be
> persistent across reboots (with varying validation schemes).

Yes, I like the idea. It would be also possible to use NV-Ram 
as write back cache, for example in notebooks, to avoid 
disk spin-ups or to improve transaction performance in
enterprise applications.

Maybe it would also make sense to prefill the cache contents
on startup with a bulk I/O request?

Comments on the code:

- The data of the write back cache should be flushed on suspend and not
  in the destructor.
- You don't keep track of I/O on the fly to the cache that is mapped
  directly in cache_hit(). How do you make sure that this I/O is completed 
  before you replace a cache block?
- The cache block index is hashed, this means the cache data blocks are not 
  clustered. I don't think you can solve this problem with a proper hash function. 
  Perhaps you should consider a (B-)Tree structure for that.

Best,

Jens

  reply	other threads:[~2006-11-30 20:07 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-27 18:26 Eric Van Hensbergen
2006-11-27 18:47 ` bert hubert
2006-11-27 19:55   ` Eric Van Hensbergen
2006-12-02  1:21     ` [dm-devel] " Ming Zhang
2006-12-02 18:28       ` Ming Zhao
2006-12-02 18:35         ` Ming Zhang
2006-11-30 11:32 ` [dm-devel] " Jens Wilke
2006-11-30 16:24   ` Eric Van Hensbergen
2006-11-30 20:07     ` Jens Wilke [this message]
2006-12-01  7:16       ` Ming Zhao
2006-12-01 10:30         ` Jens Wilke
2006-11-30 14:48 ` Christoph Hellwig
2006-12-11 18:54 ` Eric Van Hensbergen

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=200611302107.40418.jens.wilke@de.ibm.com \
    --to=jens.wilke@de.ibm.com \
    --cc=dm-devel@redhat.com \
    --cc=ericvh@gmail.com \
    --cc=ericvh@hera.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=ming@acis.ufl.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®