All of lore.kernel.org
 help / color / mirror / Atom feed
* dm-cache with a very slow device
@ 2015-08-07  5:39 Lauri Niskanen
  2015-08-07 15:10 ` Mike Snitzer
  0 siblings, 1 reply; 2+ messages in thread
From: Lauri Niskanen @ 2015-08-07  5:39 UTC (permalink / raw)
  To: dm-devel

Hi,

In my understanding dm-cache is usually used with fairly fast spinning 
hard drives as the "slow" device. Because of this the cache is not used 
very aggressively and sequential accesses skip the cache. Is it possible 
to configure dm-cache for a scenario where the fast disk is a 
state-of-the-art SSD, but the slow disk is very slow especially so that 
sequential reads and writes are significantly slower than on the fast 
device?

I'd like it to work as a very aggressive writeback buffer, so that all 
or at least close to all writes are done to the fast device if there is 
at least some free non-dirty space left. And sequential reads should 
also be promoted fairly easily. In addition there should be aggressive 
demotions to make room for future promotions always keeping a sizable 
buffer available.

So the goal would be to achieve the performance characteristics of the 
fast device for all kinds of use cases even when the backing slow device 
is at least a magnitude slower.

-- 
Lauri Niskanen

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

end of thread, other threads:[~2015-08-07 15:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-07  5:39 dm-cache with a very slow device Lauri Niskanen
2015-08-07 15:10 ` Mike Snitzer

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.