[linux-lvm] Cache block size warning

Ciprian Hacman ciprian.hacman at sematext.com
Thu Nov 19 09:14:28 UTC 2015


Thank you for the quick answer. Sounds easy to implement if needed.

Ciprian
--
Performance Monitoring * Log Analytics * Search Analytics
Solr & Elasticsearch Support * http://sematext.com/

On Thu, Nov 19, 2015 at 10:56 AM, Zdenek Kabelac <zdenek.kabelac at gmail.com>
wrote:

> 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
>
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm at redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/linux-lvm/attachments/20151119/f10490eb/attachment.htm>


More information about the linux-lvm mailing list