- Previous thread: [PATCH] net: Keep interface binding when sending packets with ipi_ifindex = 0
- Next thread: [PATCH][RFT] cfq-iosched: drain device before switching to a sync queue
- Threads sorted by date: kernel 200907
Vivek Goyal wrote:
...
> }
> +#ifdef CONFIG_GROUP_IOSCHED
> +static ssize_t queue_group_requests_show(struct request_queue *q, char *page)
> +{
> + return queue_var_show(q->nr_group_requests, (page));
> +}
> +
> +static ssize_t
> +queue_group_requests_store(struct request_queue *q, const char *page,
> + size_t count)
> +{
> + unsigned long nr;
> + int ret = queue_var_store(&nr, page, count);
> + if (nr < BLKDEV_MIN_RQ)
> + nr = BLKDEV_MIN_RQ;
> +
> + spin_lock_irq(q->queue_lock);
> + q->nr_group_requests = nr;
> + spin_unlock_irq(q->queue_lock);
> + return ret;
> +}
> +#endif
Hi Vivek,
Do we need to update the congestion thresholds for allocated io groups?
Signed-off-by: Gui Jianfeng
---
block/blk-sysfs.c | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/block/blk-sysfs.c b/block/blk-sysfs.c
index 577ed42..92b9f25 100644
--- a/block/blk-sysfs.c
+++ b/block/blk-sysfs.c
@@ -83,17 +83,32 @@ static ssize_t queue_group_requests_show(struct request_queue *q, char *page)
return queue_var_show(q->nr_group_requests, (page));
}
+extern void elv_io_group_congestion_threshold(struct request_queue *q,
+ struct io_group *iog);
+
static ssize_t
queue_group_requests_store(struct request_queue *q, const char *page,
size_t count)
{
+ struct hlist_node *n;
+ struct io_group *iog;
+ struct elv_fq_data *efqd;
unsigned long nr;
int ret = queue_var_store(&nr, page, count);
+
if (nr < BLKDEV_MIN_RQ)
nr = BLKDEV_MIN_RQ;
spin_lock_irq(q->queue_lock);
+
q->nr_group_requests = nr;
+
+ efqd = &q->elevator->efqd;
+
+ hlist_for_each_entry(iog, n, &efqd->group_list, elv_data_node) {
+ elv_io_group_congestion_threshold(q, iog);
+ }
+
spin_unlock_irq(q->queue_lock);
return ret;
}
--
1.5.4.rc3
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
...
> }
> +#ifdef CONFIG_GROUP_IOSCHED
> +static ssize_t queue_group_requests_show(struct request_queue *q, char *page)
> +{
> + return queue_var_show(q->nr_group_requests, (page));
> +}
> +
> +static ssize_t
> +queue_group_requests_store(struct request_queue *q, const char *page,
> + size_t count)
> +{
> + unsigned long nr;
> + int ret = queue_var_store(&nr, page, count);
> + if (nr < BLKDEV_MIN_RQ)
> + nr = BLKDEV_MIN_RQ;
> +
> + spin_lock_irq(q->queue_lock);
> + q->nr_group_requests = nr;
> + spin_unlock_irq(q->queue_lock);
> + return ret;
> +}
> +#endif
Hi Vivek,
Do we need to update the congestion thresholds for allocated io groups?
Signed-off-by: Gui Jianfeng
---
block/blk-sysfs.c | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/block/blk-sysfs.c b/block/blk-sysfs.c
index 577ed42..92b9f25 100644
--- a/block/blk-sysfs.c
+++ b/block/blk-sysfs.c
@@ -83,17 +83,32 @@ static ssize_t queue_group_requests_show(struct request_queue *q, char *page)
return queue_var_show(q->nr_group_requests, (page));
}
+extern void elv_io_group_congestion_threshold(struct request_queue *q,
+ struct io_group *iog);
+
static ssize_t
queue_group_requests_store(struct request_queue *q, const char *page,
size_t count)
{
+ struct hlist_node *n;
+ struct io_group *iog;
+ struct elv_fq_data *efqd;
unsigned long nr;
int ret = queue_var_store(&nr, page, count);
+
if (nr < BLKDEV_MIN_RQ)
nr = BLKDEV_MIN_RQ;
spin_lock_irq(q->queue_lock);
+
q->nr_group_requests = nr;
+
+ efqd = &q->elevator->efqd;
+
+ hlist_for_each_entry(iog, n, &efqd->group_list, elv_data_node) {
+ elv_io_group_congestion_threshold(q, iog);
+ }
+
spin_unlock_irq(q->queue_lock);
return ret;
}
--
1.5.4.rc3
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Conversations: [RFC] IO scheduler based IO controller V6
- [RFC] IO scheduler based IO controller V6 by Vivek Goyal on 2009-07-02T20:04:34+00:00
- [PATCH 01/25] io-controller: Documentation by Vivek Goyal on 2009-07-02T20:05:04+00:00
- [PATCH 05/25] io-controller: Charge for time slice based on average disk rate by Vivek Goyal on 2009-07-02T20:05:04+00:00
- [PATCH 14/25] io-controller: Separate out queue and data by Vivek Goyal on 2009-07-02T20:05:05+00:00
- [PATCH 23/25] io-controller: Support per cgroup per device weights and io class by Vivek Goyal on 2009-07-02T20:05:37+00:00
- [PATCH 03/25] io-controller: bfq support of in-class preemption by Vivek Goyal on 2009-07-02T20:05:54+00:00
- [PATCH 22/25] io-controller: Per io group bdi congestion interface by Vivek Goyal on 2009-07-02T20:06:19+00:00
- [PATCH 10/25] io-controller: cfq changes to use hierarchical fair queuing code in elevaotor layer by Vivek Goyal on 2009-07-02T20:06:19+00:00
- [PATCH 16/25] io-controller: noop changes for hierarchical fair queuing by Vivek Goyal on 2009-07-02T20:06:51+00:00
- [PATCH 21/25] io-controller: Per cgroup request descriptor support by Vivek Goyal on 2009-07-02T20:06:51+00:00
- [PATCH 18/25] io-controller: anticipatory changes for hierarchical fair queuing by Vivek Goyal on 2009-07-02T20:07:22+00:00
- [PATCH 19/25] blkio_cgroup patches from Ryo to track async bios. by Vivek Goyal on 2009-07-02T20:07:22+00:00
- [PATCH 15/25] io-conroller: Prepare elevator layer for single queue schedulers by Vivek Goyal on 2009-07-02T20:07:55+00:00
- [PATCH 06/25] io-controller: Modify cfq to make use of flat elevator fair queuing by Vivek Goyal on 2009-07-02T20:08:20+00:00
- [PATCH 02/25] io-controller: Core of the B-WF2Q+ scheduler by Vivek Goyal on 2009-07-02T20:08:39+00:00
- [PATCH 13/25] io-controller: Wait for requests to complete from last queue before new queue is scheduled by Vivek Goyal on 2009-07-02T20:08:39+00:00
- [PATCH 24/25] io-controller: Debug hierarchical IO scheduling by Vivek Goyal on 2009-07-02T20:09:19+00:00
- [PATCH 08/25] io-controller: cgroup related changes for hierarchical group support by Vivek Goyal on 2009-07-02T20:09:19+00:00
- [PATCH 17/25] io-controller: deadline changes for hierarchical fair queuing by Vivek Goyal on 2009-07-02T20:09:45+00:00
- [PATCH 09/25] io-controller: Common hierarchical fair queuing code in elevaotor layer by Vivek Goyal on 2009-07-02T20:11:01+00:00
- [PATCH 11/25] io-controller: Export disk time used and nr sectors dipatched through cgroups by Vivek Goyal on 2009-07-02T20:11:08+00:00
- [PATCH 20/25] io-controller: map async requests to appropriate cgroup by Vivek Goyal on 2009-07-02T20:11:50+00:00
- Re: [PATCH 13/25] io-controller: Wait for requests to complete from last queue before new queue is scheduled by Nauman Rafique on 2009-07-02T20:12:01+00:00
- [PATCH 12/25] io-controller: idle for sometime on sync queue before expiring it by Vivek Goyal on 2009-07-02T20:12:18+00:00
- Re: [PATCH 09/25] io-controller: Common hierarchical fair queuing code in elevaotor layer by Gui Jianfeng on 2009-07-06T02:47:16+00:00
- Re: [PATCH 11/25] io-controller: Export disk time used and nr sectors dipatched through cgroups by Gui Jianfeng on 2009-07-08T02:17:54+00:00
- Re: [PATCH 21/25] io-controller: Per cgroup request descriptor support by Gui Jianfeng on 2009-07-08T03:28:26+00:00
- Re: [RFC] IO scheduler based IO controller V6 by Balbir Singh on 2009-07-08T03:56:43+00:00
- [PATCH] io-controller: implement per group request allocation limitation by Gui Jianfeng on 2009-07-10T01:57:27+00:00
- Re: [PATCH 21/25] io-controller: Per cgroup request descriptor support by Gui Jianfeng on 2009-07-21T05:39:05+00:00
- Re: [PATCH 21/25] io-controller: Per cgroup request descriptor support by Nauman Rafique on 2009-07-21T05:55:51+00:00
- Re: [RFC] IO scheduler based IO controller V6 by Gui Jianfeng on 2009-07-27T02:12:20+00:00
Related Threads
- [GENERAL] postgres/postgis - pgsql
- How to use ruby, csv and webservice? Need a direction. - ruby
- am2 MBs - 4g + SCSI wipes out root partition - freebsd
- DTrace probes in MySQL 6.0 alpha - mysql
- Conditional replace - perl
- Problem with Konqueror 4.1.2 - fedora
- [HACKERS] Updating FSM on recovery - pgsql
- 2 ext4 queries - fedora