Skip to contentSkip to conversation

CKRM I/O controller with equal bandwidth

RFC/Patch Shailabh Nagar 1 participant 1 message Sep 24, 2003 Block layer

lore
Share & tools
lore
#0 lore raw

Here's the first version of the Class-based Resource Management (CKRM) I/O controller. Applies over the CKRM core patch for the -mm tree, available from
http://ckrm.sourceforge.net/downloads/ckcore-A01-2.6.0-test5-mm2

The I/O controller is based on Jens' CFQ I/O scheduler which is currently in the -mm tree and provides equal I/O bandwidth to each class. CFQ is very modular so the changes needed to enable CKRM I/O are quite small. Providing proportional instead of equal bandwidth will need more substantial changes to CFQ.

Only minimal testing has been done on a uniprocessor with an IDE disk using tiobench. Complete testing package and module providing /proc interface to monitor per-class I/O bandwidth will be provided shortly.

More information on CKRM and all patches are available from

	http://ckrm.sf.net

-- Shailabh

arch/i386/Kconfig +12 -0
diff -Nru a/arch/i386/Kconfig b/arch/i386/Kconfig
@@ -530,6 +530,18 @@
 	help
 	  This option adds CKRM support to the Kernel. Say N if you are unsure.
 
+config CKRM_IO
+	bool "Class Based I/O bandwidth controller"
+	default n
+	depends on CKRM
+	help
+	   Provide per-class control over per-blockdevice I/O bandwidth. 
+	   I/O requests from each class (collection of tasks) are submitted to
+	   the block device driver in proportion of the class's share.
+	   More information on classes, shares and CKRM at <http://ckrm.sf.net>
+	   
+	   Say N if unsure about what CKRM does. 	  	
+
 config X86_UP_APIC
 	bool "Local APIC support on uniprocessors" if !SMP
 	depends on !(X86_VISWS || X86_VOYAGER)
drivers/block/Makefile +1 -0
diff -Nru a/drivers/block/Makefile b/drivers/block/Makefile
@@ -40,3 +40,4 @@
 obj-$(CONFIG_BLK_DEV_UMEM)	+= umem.o
 obj-$(CONFIG_BLK_DEV_NBD)	+= nbd.o
 obj-$(CONFIG_BLK_DEV_CRYPTOLOOP) += cryptoloop.o
+obj-$(CONFIG_CKRM_IO) 		+= ckrm_io.o
drivers/block/cfq-iosched.c +33 -13

111 lines not on this page · raw message

drivers/block/ckrm_io.c new file +230 -0

230 lines not on this page · raw message

include/linux/ckrm_io.h new file +88 -0

88 lines not on this page · raw message

kernel/ckrm.c +1 -1
diff -Nru a/kernel/ckrm.c b/kernel/ckrm.c
@@ -87,7 +87,7 @@
 DEF_CKRM_CLASS(cpu);
 DEF_CKRM_CLASS(mem);
 DEF_CKRM_CLASS(net);
-DEF_CKRM_CLASS(io);
+/* DEF_CKRM_CLASS(io); */
 
 
 struct ckrm_callbacks ckrm_callbacks;