All of lore.kernel.org
 help / color / mirror / Atom feed
* dm-cache metadata memory footprint
@ 2015-02-17 12:22 Thanos Makatos
  2015-03-05 14:27 ` Thanos Makatos
  0 siblings, 1 reply; 2+ messages in thread
From: Thanos Makatos @ 2015-02-17 12:22 UTC (permalink / raw)
  To: dm-devel


[-- Attachment #1.1: Type: text/plain, Size: 242 bytes --]

Is there some formula that could indicate the metadata memory footprint of
dm-cache for given SSD and HDD capacities? Is there anything else that
would affect the metadata footprint (e.g. write-through vs. write back,
cache line size, etc.)?

[-- Attachment #1.2: Type: text/html, Size: 264 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: dm-cache metadata memory footprint
  2015-02-17 12:22 dm-cache metadata memory footprint Thanos Makatos
@ 2015-03-05 14:27 ` Thanos Makatos
  0 siblings, 0 replies; 2+ messages in thread
From: Thanos Makatos @ 2015-03-05 14:27 UTC (permalink / raw)
  To: device-mapper development, thornber, heinzm, snitzer


[-- Attachment #1.1: Type: text/plain, Size: 1497 bytes --]

Ping!

I'd like to generalize my question to what is the general memory footprint
of dm-cache. Does dm-cache keeps all metadata in memory or only part of it?
Are there any other memory overheads? Are the metadata pinned or
dynamically cached, according to available memory? I need to know such
information in order to tell whether my system has currently enough
resources to create a dm-cache target.

I understand that the metadata size is dictated by the size of the SSD and
the size of the disk doesn't have anything to do with it. To test how
memory utilization is affected, I created one hundred 1 GB dm-cache targets
using 128 KB cache block size. I calculated the size of the metadata
according to
https://www.redhat.com/archives/dm-devel/2012-December/msg00046.html, which
is 4.12 MB per dm-cache target. Memory utilization did increase but not as
much as I expected: it increased by 183 MB and not by 4.12*100 which would
be the case if all metadata were kept in memory. (I didn't do any I/O to
the dm-cache targets.)

If this information is not readily available, are there any specific parts
in the code I should focus in order to figure  this out?

On Tue, Feb 17, 2015 at 12:22 PM, Thanos Makatos <thanos.makatos@onapp.com>
wrote:

> Is there some formula that could indicate the metadata memory footprint of
> dm-cache for given SSD and HDD capacities? Is there anything else that
> would affect the metadata footprint (e.g. write-through vs. write back,
> cache line size, etc.)?
>

[-- Attachment #1.2: Type: text/html, Size: 2004 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-03-05 14:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-17 12:22 dm-cache metadata memory footprint Thanos Makatos
2015-03-05 14:27 ` Thanos Makatos

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.