All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Steinar H. Gunderson" <sgunderson@bigfoot.com>
To: Mike Snitzer <snitzer@redhat.com>
Cc: Heinz Mauelshagen <heinzm@redhat.com>,
	dm-devel@redhat.com, ejt@redhat.com
Subject: Re: dm-cache with zero hit rate
Date: Fri, 2 Aug 2013 15:58:28 +0200	[thread overview]
Message-ID: <20130802135828.GA12191@uio.no> (raw)
In-Reply-To: <20130802132344.GA20629@redhat.com>

On Fri, Aug 02, 2013 at 09:23:44AM -0400, Mike Snitzer wrote:
> Yes, it is surprising.  Curious to know if the promotions aren't
> happening due to the IO scheduler somehow merging all your random small
> IO.  We don't yet have a descrete counter to show the number of
> migrations that were skipped due to sequential_threshold but that is
> something we can add.
> 
> But you can effectively disable the sequential_threshold by setting it
> really high, e.g.:
> 
> dmsetup message cache 0 sequential_threshold 16384

I tried this, and it still doesn't appear to promote anything at all:

cache: 0 23440891904 cache 913/8192 0 7021239 0 2049048 0 0 0 0 0 2 migration_threshold 2048 4 random_threshold 8 sequential_threshold 16384

It's only been running for a few minutes, though.

FWIW, earlier I ran it on only one single partition, and then it worked.
So it's not like my kernel is completely broken, at least.

> Please write a file that is smaller than your specified
> sequential_threshold, and then read it numerous times via direct IO,
> e.g.:
> 
> dd if=<your file> of=/dev/null iflag=direct bs=16K

I did, with a 16 kB file (that should certainly be small enough, right?),
executing the dd command 10000 times. Still nothing cached.

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

  reply	other threads:[~2013-08-02 13:58 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-31 18:50 dm-cache with zero hit rate Steinar H. Gunderson
2013-07-31 20:25 ` 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 [this message]
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=20130802135828.GA12191@uio.no \
    --to=sgunderson@bigfoot.com \
    --cc=dm-devel@redhat.com \
    --cc=ejt@redhat.com \
    --cc=heinzm@redhat.com \
    --cc=snitzer@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.