Skip to contentSkip to conversation

[Cluster-devel] [Fwd: Distributed storage.]

Cluster-devel Kevin Anderson 1 participant 1 message Jul 31, 2007 Block layer

lore
Share & tools
lore
#0 lore raw

Interesting post on linux-kernel and linux-fsdevel for those of you not watching.

Thanks
Kevin

-------- Forwarded Message --------
From: Evgeniy Polyakov <[email protected]>
To: [email protected]
Cc: linux-kernel at vger.kernel.org, linux-fsdevel at vger.kernel.org
Subject: Distributed storage.
Date: Tue, 31 Jul 2007 21:13:47 +0400

Hi.

I'm pleased to announce first release of the distributed storage subsystem, which allows to form a storage on top of remote and local nodes, which in turn can be exported to another storage as a node to form tree-like storages.

There is number of main features, this device supports:
* zero additional allocations in the common fast path (only one per node if network queue is full) not counting network alocations
* zero-copy sending (except header) if supported by device using sendpage()
* ability to use any implemented algorithm (linear algo implemented)
* plugable mapping algorithms
* failover recovery in case of broken link (reconnection if remote node is down)
* ability to suspend remote node for maintenance without breaking dataflow to another nodes (if supported by algorithm and block layer) and without turning down main node
* initial autoconfiguration (ability to request remote node size and use that dynamic data during array setup time)
* non-blocking network data processing (except headers, which are sent/received in blocking mode, can be simply changed to non-blocking too by increasing request size to store state) without busy loops checking return valu of processing functions. Non-blocking data processing is based on ->poll() state machine with only one working thread per storage.
* support for any kind of network media (not limited to tcp or inet protocols) higher MAC layer (socket layer), data consistensy must be part of the protocol (i.e. will lose data with UDP in favour of performance)
* no need for any special tools for data processing (like special userspace applications) except for configuration
* userspace and kernelspace targets. Userspace target can work on top of usual files. (Windows or any other OS userspace target support can be trivially added on request)

Compared to other similar approaches namely iSCSI and NBD,
there are following advantages:
* non-blocking processing without busy loops (compared to both above)
* small, plugable architecture
* failover recovery (reconnect to remote target)
* autoconfiguration (full absence in NBD and/or device mapper on top of it)
* no additional allocatins (not including network part) - at least two in device mapper for fast path
* very simple - try to compare with iSCSI
* works with different network protocols
* storage can be formed on top of remote nodes and be exported simultaneously (iSCSI is peer-to-peer only, NBD requires device mapper and is synchronous)

TODO list currently includes following main items:
* redundancy algorithm (drop me a request of your own, but it is highly unlikley that Reed-Solomon based will ever be used - it is too slow for distributed RAID, I consider WEAVER codes)
* extended autoconfiguration
* move away from ioctl based configuration

Patch, userspace configuration utility and userspace target can be found on project homepage:

http://tservice.net.ru/~s0mbre/old/?section=projects&item=dst

 drivers/block/Kconfig          |    2 +
 drivers/block/Makefile         |    1 +
 drivers/block/dst/Kconfig      |   12 +
 drivers/block/dst/Makefile     |    5 +
 drivers/block/dst/alg_linear.c |  348 ++++++++++
 drivers/block/dst/dcore.c      | 1222 ++++++++++++++++++++++++++++++++++
 drivers/block/dst/kst.c        | 1437 ++++++++++++++++++++++++++++++++++++++++
 include/linux/dst.h            |  282 ++++++++
 8 files changed, 3309 insertions(+), 0 deletions(-)
drivers/block/Kconfig +2 -0
index b4c8319..ca6592d 100644
@@ -451,6 +451,8 @@ config ATA_OVER_ETH
 	This driver provides Support for ATA over Ethernet block
 	devices like the Coraid EtherDrive (R) Storage Blade.
 
+source "drivers/block/dst/Kconfig"
+
 source "drivers/s390/block/Kconfig"
 
 endmenu
drivers/block/Makefile +1 -0
index dd88e33..fcf042d 100644
@@ -29,3 +29,4 @@ obj-$(CONFIG_VIODASD)		+= viodasd.o
 obj-$(CONFIG_BLK_DEV_SX8)	+= sx8.o
 obj-$(CONFIG_BLK_DEV_UB)	+= ub.o
 
+obj-$(CONFIG_DST)		+= dst/
drivers/block/dst/Kconfig new file +12 -0
new file mode 100644
index 0000000..874d2e4
@@ -0,0 +1,12 @@
+config DST
+	tristate "Distributed storage"
+	depends on NET
+	---help---
+	This driver allows to create a distributed storage.
+
+config DST_ALG_LINEAR
+	tristate "Linear distribution algorithm"
+	depends on DST
+	---help---
+	This module allows to create linear mapping of the nodes
+	in the distributed storage.
drivers/block/dst/Makefile new file +5 -0
new file mode 100644
index 0000000..48b7777
@@ -0,0 +1,5 @@
+obj-$(CONFIG_DST) += dst.o
+
+dst-y := dcore.o kst.o
+
+obj-$(CONFIG_DST_ALG_LINEAR) += alg_linear.o
drivers/block/dst/alg_linear.c new file +348 -0

348 lines not on this page · raw message

drivers/block/dst/dcore.c new file +1222 -0

1,222 lines not on this page · raw message

drivers/block/dst/kst.c new file +1437 -0

1,401 lines not on this page · raw message

include/linux/dst.h new file +282 -0

282 lines not on this page · raw message

The rest of this diff is not shown. View the raw message.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/cluster-devel/attachments/20070731/6fedcd8a/attachment.htm>

Part of the diff is not shown here. View the raw message.