All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Steinar H. Gunderson" <sgunderson@bigfoot.com>
To: dm-devel@redhat.com
Subject: dm-cache with zero hit rate
Date: Wed, 31 Jul 2013 20:50:17 +0200	[thread overview]
Message-ID: <20130731185017.GA13215@uio.no> (raw)

Hi,

I recently set up dm-cache below my main LVM, so that /dev/md2 (a RAID-0 of
two SSDs) has an LVM with /dev/mapper/cache-blocks and
/dev/mapper/cache-metadata, which then back /dev/md1 (a RAID-6 of rotating
disks), where my main LVM, including the root device etc., lies.

After a fair amount of fighting with udev and initramfs-tools, plus upping
the block size to 2048 since 512 complained about not enough RAM (on a 24GB
machine!), this seems to boot up and work, but I seem to get absolutely zero
cache hits.

dmsetup table for the device:

  cache: 0 23440891904 cache 254:0 254:1 9:1 2048 1 writeback default 4 random_threshold 8 sequential_threshold 512

dmsetup status for it:

  cache: 0 23440891904 cache 913/8192 0 170976 0 9614 0 0 0 0 0 2 migration_threshold 2048 4 random_threshold 8 sequential_threshold 512

Note in particular 0/170976 cached reads and 0/9614 cached writes.

Is this normal? Is there any good reason why an LVM on top of a dm-cache
device would not be supported? Or do I just need to wait a few more
hours/weeks/days until it starts being aggressive?

/* Steinar */
-- 
Homepage: http://www.sesse.net/

             reply	other threads:[~2013-07-31 18:50 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-31 18:50 Steinar H. Gunderson [this message]
2013-07-31 20:25 ` dm-cache with zero hit rate Mike Snitzer
2013-08-02  8:49   ` Steinar H. Gunderson
2013-08-02 13:23     ` Mike Snitzer
2013-08-02 13:58       ` Steinar H. Gunderson
2013-08-02 15:20         ` Amy Rupp

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=20130731185017.GA13215@uio.no \
    --to=sgunderson@bigfoot.com \
    --cc=dm-devel@redhat.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.