FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Device-mapper Development

 
 
LinkBack Thread Tools
 
Old 05-30-2011, 04:41 PM
Mikulas Patocka
 
Default dm-kcopyd: Add a throttle parameter

dm-kcopyd: Add a throttle parameter

This patch adds a kcopyd throttle parameter accessible in
/sys/module/dm_mod/parameters/dm_kcopyd_throttle

So far, this parameter does nothing, it will be used in the next patch.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>

---
drivers/md/dm-kcopyd.c | 5 +++++
1 file changed, 5 insertions(+)

Index: linux-2.6.39-fast/drivers/md/dm-kcopyd.c
================================================== =================
--- linux-2.6.39-fast.orig/drivers/md/dm-kcopyd.c 2011-05-26 18:36:47.000000000 +0200
+++ linux-2.6.39-fast/drivers/md/dm-kcopyd.c 2011-05-26 19:23:15.000000000 +0200
@@ -66,6 +66,11 @@ struct dm_kcopyd_client {
struct list_head pages_jobs;
};

+static unsigned dm_kcopyd_throttle = 100;
+
+module_param(dm_kcopyd_throttle, uint, 0644);
+MODULE_PARM_DESC(dm_kcopyd_throttle, "A percentage of time allocated for copying");
+
static DEFINE_SPINLOCK(activity_spinlock);
static unsigned long num_io_jobs = 0;


--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel
 

Thread Tools




All times are GMT. The time now is 04:33 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org