Skip to contentSkip to conversation

dm-cache warming

DISCUSSION Dave Pitts 3 participants 3 messages Jul 26, 2013 – Jul 29, 2013 Device mapper

lore
Share & tools
lore

Dave Pitts

author
#0 lore raw

Hello:

I've been trying to do some performance testing for a client and can't seem to get the dm-cache warmed. The values displayed in the "dmsetup status" command seem too low. I've been trying to use the "raw" devices setup for the cache and NOT use a file system or database. I've tried sequential writes/reads to the devices (ie. dd ) and dividing up the space to be tested and do I/O over a number of segments to try to break any sequential I/O tests. Any ideas as to what I may doing wrong? Do I need to randomize the I/O?

System: RHEL 7.0 Alpha3, 3.9.7 kernel

Thanks in advance..

Signature · 2 lines
Dave Pitts             PULLMAN: Travel and sleep in safety and comfort.
[email protected]
#1 lore raw

Hi,

dm-cache is a hot-spot cache. Ie. you need multiple accesses to the same block to get it promoted into the cache (depending on the policy plugin btw).

If your patterns is one-time-only access type, it ain't warm the cache.

Heinz

Quoted 8 lines · Dave Pitts

Hello:

I've been trying to do some performance testing for a client and can't seem to get the dm-cache warmed. The values displayed in the "dmsetup status" command seem too low. I've been trying to use the "raw" devices setup for the cache and NOT use a file system or database. I've tried sequential writes/reads to the devices (ie. dd ) and dividing up the space to be tested and do I/O over a number of segments to try to break any sequential I/O tests. Any ideas as to what I may doing wrong? Do I need to randomize the I/O?

System: RHEL 7.0 Alpha3, 3.9.7 kernel

Thanks in advance..

#2 lore raw
Quoted 8 lines · Heinz Mauelshagen

Hi,

dm-cache is a hot-spot cache. Ie. you need multiple accesses to the same block to get it promoted into the cache (depending on the policy plugin btw).

If your patterns is one-time-only access type, it ain't warm the cache.

Remember there's the page cache in front of dm-cache too. You may be accessing data many times, but not actually hitting the disk with your requests.

- Joe