Device Mapper as a cache for SAN?
It seems like device-mapper would allow a fairly straightforward implementation of a local-disk cache for a SAN (iSCSI, AOE, etc.). The dm-raid1 and dm-mpath modules seem to have elements of overlap, but its not clear if there's a straightforward way to implement a local-disk block cache using existing modules, or whether a new one is needed. Has anyone looked at this before?
-eric
Quoted 6 lines · Eric Van Hensbergen
It seems like device-mapper would allow a fairly straightforward implementation of a local-disk cache for a SAN (iSCSI, AOE, etc.). The dm-raid1 and dm-mpath modules seem to have elements of overlap, but its not clear if there's a straightforward way to implement a local-disk block cache using existing modules, or whether a new one is needed. Has anyone looked at this before?
The obvious question is why? What would this provide that the kernel and file systems don't already provide?
.../Ed
Signature · 4 lines
Ed Wilts, RHCE Mounds View, MN, USA mailto:[email protected] Member #1, Red Hat Community Ambassador Program
Quoted 4 lines · Ed Wilts
The obvious question is why? What would this provide that the kernel and file systems don't already provide?
Well, kernel provides in-memory page cache, not local disk page cache.
There is some ongoing remote file system local disk cache work being
done, but it applies primarily to AFS and NFS - not block-based transports such as iSCSI and AOE. The various cluster file systems may provide something more akin to this, but again, this doesn't really cover SAN technologies -- not in any sort of a generic way. Let me know if I'm missing something.
-eric
Quoted 6 lines · Eric Van Hensbergen
Quoted 4 lines · Ed Wilts
The obvious question is why? What would this provide that the kernel and file systems don't already provide?
Quoted 7 lines
Well, kernel provides in-memory page cache, not local disk page cache.
There is some ongoing remote file system local disk cache work being
done, but it applies primarily to AFS and NFS - not block-based transports such as iSCSI and AOE. The various cluster file systems may provide something more akin to this, but again, this doesn't really cover SAN technologies -- not in any sort of a generic way. Let me know if I'm missing something.
still, what is the main benefit of this cache? what u mean "local disk page cache"? use "local disk" as page cache or page cache for "local disk" or something else?
ming
Quoted 7 lines
-eric
--
dm-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/dm-devel
Quoted 15 lines · Ming Zhang
Quoted 6 lines · Eric Van Hensbergen
Quoted 4 lines · Ed Wilts
The obvious question is why? What would this provide that the kernel and file systems don't already provide?
Quoted 7 lines
Well, kernel provides in-memory page cache, not local disk page cache.
There is some ongoing remote file system local disk cache work being
done, but it applies primarily to AFS and NFS - not block-based transports such as iSCSI and AOE. The various cluster file systems may provide something more akin to this, but again, this doesn't really cover SAN technologies -- not in any sort of a generic way. Let me know if I'm missing something.
Quoted 4 lines
still, what is the main benefit of this cache? what u mean "local disk page cache"? use "local disk" as page cache or page cache for "local disk" or something else?
Okay, I suppose I wasn't exactly clear. What I want is something that will let me use a local disk (or local disks) as a cache for a storage area network volume (or volumes). There are a variety of scenarios - my primary interest is in using it for large clusters with shared
read-only volumes or with exclusive-access read/write volumes. So,
local disk page cache is probably not the right terminology -- it is simply a local block cache for a remote block device.
-eric
Quoted 16 lines · Eric Van Hensbergen
Quoted 15 lines · Ming Zhang
Quoted 13 lines · Eric Van Hensbergen
Quoted 4 lines · Ed Wilts
The obvious question is why? What would this provide that the kernel and file systems don't already provide?
Well, kernel provides in-memory page cache, not local disk page cache.
There is some ongoing remote file system local disk cache work being
done, but it applies primarily to AFS and NFS - not block-based transports such as iSCSI and AOE. The various cluster file systems may provide something more akin to this, but again, this doesn't really cover SAN technologies -- not in any sort of a generic way. Let me know if I'm missing something.
Quoted 8 lines
Quoted 4 lines
still, what is the main benefit of this cache? what u mean "local disk page cache"? use "local disk" as page cache or page cache for "local disk" or something else?
Okay, I suppose I wasn't exactly clear. What I want is something that will let me use a local disk (or local disks) as a cache for a storage area network volume (or volumes). There are a variety of scenarios -
so a disk as cache for another (remote) disk(s).
Quoted 4 lines
my primary interest is in using it for large clusters with shared
read-only volumes or with exclusive-access read/write volumes. So,
local disk page cache is probably not the right terminology -- it is simply a local block cache for a remote block device.
yes, "page cache" has its meaning in linux.
as i know, no stable implementation for this.
Quoted 2 lines
-eric
Quoted 3 lines · Ming Zhang
yes, "page cache" has its meaning in linux.
Sorry - my bad, I should have known better.
Quoted 3 lines
as i know, no stable implementation for this.
Okay - I'll take a shot at it - should be a good intro to device-mapper as a framework. If anyone else is going down this path, please shoot me an email so I don't end up duplicating effort.
-eric
Quoted 8 lines · Eric Van Hensbergen
Quoted 3 lines · Ming Zhang
yes, "page cache" has its meaning in linux.
Sorry - my bad, I should have known better.
Quoted 1 line
Quoted 6 lines
Quoted 2 lines
as i know, no stable implementation for this.
Okay - I'll take a shot at it - should be a good intro to device-mapper as a framework. If anyone else is going down this path, please shoot me an email so I don't end up duplicating effort.
good luck. a disk cache for remote storage system is not always useful, considering u already have GB RAM here at file system level. of course, depends on your workload pattern and remote access cost, u might get some marginal benefits.
Quoted 2 lines
-eric
Quoted 3 lines · On Mon, 10 Apr 2006 17:25:25 -0400 Ming Zhang <[email protected]> wrote:
still, what is the main benefit of this cache? what u mean "local disk page cache"? use "local disk" as page cache or page cache for "local disk" or something else?
I recently did some tests with ext3 data journaling and discovered that large journals eat almost as much system memory as its size, which is a bit crazy. Some might argue that configuring 4gb journal is crazy too, but there are scenarios where this might be beneficial (think large mail servers with gazillion small writes, which journal turns into one big sequential write). So if something like external journal can be implemented in dm, fs-agnostic and not as memory hungry, I'd be very interested.
Signature · 2 lines
Jure Pečar http://jure.pecar.org
Quoted 7 lines · Jure Pečar
Quoted 3 lines · On Mon, 10 Apr 2006 17:25:25 -0400 Ming Zhang <[email protected]> wrote:
still, what is the main benefit of this cache? what u mean "local disk page cache"? use "local disk" as page cache or page cache for "local disk" or something else?
Quoted 8 lines
I recently did some tests with ext3 data journaling and discovered that large journals eat almost as much system memory as its size, which is a bit crazy. Some might argue that configuring 4gb journal is crazy too, but there are scenarios where this might be beneficial (think large mail servers with gazillion small writes, which journal turns into one big sequential write). So if something like external journal can be implemented in dm, fs-agnostic and not as memory hungry, I'd be very interested.
even u journal is a big sequential write, u data write are not. so the combined performance will not have big difference.
u mean u journal contain everything? including log and data? you might want to ask ext3 list and ask them why take so many memory with a 4GB journal. Also i think journal will write to disk very fast, so after written to disk, the ram can be reclaimed.
also i do not see how a DM disk cache can help you on this.
ming
Quoted 4 lines · Eric Van Hensbergen
The various cluster file systems
may provide something more akin to this, but again, this doesn't really cover SAN technologies -- not in any sort of a generic way. Let me know if I'm missing something.
I think everyone asking is missing something.
kernels cache, applications that use raw disk cache, SAN devices cache, I fail to see what you really are proposing and therefore I fail to see what value you are proposing?
Caching a SAN to local disk? usually my SANs are quite a bit faster than local disk, caching to memory? what does that buy you that the kernel/application caching gets you?
Artur