From: Zdenek Kabelac <zdenek.kabelac@gmail.com>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] Cache block size warning
Date: Thu, 19 Nov 2015 09:56:41 +0100 [thread overview]
Message-ID: <564D8EC9.1070406@gmail.com> (raw)
In-Reply-To: <CANvPVN3ZzNiPsa_H-Lr38Ere1kYKzU2EPK_dFu0wG--cgtsZrA@mail.gmail.com>
Dne 19.11.2015 v 08:27 Ciprian Hacman napsal(a):
> Hi,
>
> We are configuring lvm with SSD caching on some of our boxes in AWS. When the
> cache is initialised, we see this in logs:
>
> device-mapper*: cache: You have created a cache device with a lot of
> individual cache blocks (4915200)*
>
> * All these mappings can consume a lot of kernel memory, and
> take some time to read/write.*
>
> * Please consider increasing the cache block size to reduce
> the overall cache block count.*
>
>
> Is this something to worry? If so, how can we improve it?
>
If you have lots of kernel memory - it's probably ok.
Otherwise you may try to use bigger chunk size.
e.g. --chunksize 512K or even more:
lvcreate --type cache-pool -L300G vg/cpool
lvcreate -H --chunksize 512K -L1.5T --name data vg/cpool
It's possible future version of lvm2 will try to create this by default.
Zdenek
next prev parent reply other threads:[~2015-11-19 8:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-19 7:27 [linux-lvm] Cache block size warning Ciprian Hacman
2015-11-19 8:56 ` Zdenek Kabelac [this message]
2015-11-19 9:14 ` Ciprian Hacman
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=564D8EC9.1070406@gmail.com \
--to=zdenek.kabelac@gmail.com \
--cc=linux-lvm@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox