From: Joe Thornber <thornber@redhat.com>
To: device-mapper development <dm-devel@redhat.com>
Cc: Pascal GALLARD <pascal.gallard@nonstop.fr>
Subject: Re: dm-cache-mq policy can't allocate memory
Date: Mon, 8 Apr 2013 11:24:34 +0100 [thread overview]
Message-ID: <20130408102433.GA21993@debian> (raw)
In-Reply-To: <1365172677.2559.23.camel@berule>
On Fri, Apr 05, 2013 at 04:37:57PM +0200, Étienne BERSAC wrote:
> Hi,
>
> I'm testing the experimental dm-cache target and think i encountered a
> bug.
>
> I tested version d08d528dc1848fb369a0b27cdb0749d8f6f38063 of linus tree.
> Compiled with make -j4 deb-pkg. Config file attached.
>
> Here is the current dmsetup configuration :
>
> ------------------->8-----------------
> root@st-brice:~/etudes# dmsetup table
> st--brice-root: 0 151486464 linear 8:5 2048
> st--brice-swap_1: 0 4169728 linear 8:5 151488512
> -------------------8<-----------------
>
> 8:5 is /dev/sda, a disk reserved for the system. I'm using another
> physical disk for playing. I directly use physical partitions as blocks
> backing the cache target, i'm just playing with the same physical device
> yet :
>
> ------------>8---------------
> root@st-brice:~# fdisk -l /dev/sdb
> Disk /dev/sdb: 80.0 GB, 80000000000 bytes
>
> Device Boot Start End Blocks Id System
> /dev/sdb1 63 3903794 1951866 8e Linux LVM
> /dev/sdb2 3903795 82027889 39062047+ 8e Linux LVM
> /dev/sdb3 82027890 156249999 37111055 8e Linux LVM
> -------------8<---------------
>
> /dev/sdb1 is zeroed before issuing this command. I setup the target
> using the following table :
>
> /sbin/dmsetup create dmc0 --table '0 74222110 cache /dev/sdb1 /dev/sdb2 /dev/sdb3 64 0 default 0'
The mq policy uses a fair bit of memory per cache entry (I'm working
on reducing this). I suggest you bump the block size right up. eg,
2048 rather than 64. Tell me if this doesn't help, the only unusual
thing you're doing is using a cache device that's bigger than the
origin, it should work though.
- Joe
next prev parent reply other threads:[~2013-04-08 10:24 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-05 14:37 dm-cache-mq policy can't allocate memory Étienne BERSAC
2013-04-08 10:24 ` Joe Thornber [this message]
[not found] <mailman.53.1365436807.15545.dm-devel@redhat.com>
2013-04-08 16:51 ` Étienne BERSAC
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=20130408102433.GA21993@debian \
--to=thornber@redhat.com \
--cc=dm-devel@redhat.com \
--cc=pascal.gallard@nonstop.fr \
/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.