- 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
On Mon, Jul 20, 2009 at 10:37 PM, Gui
Jianfeng wrote:
> Vivek Goyal wrote:
>> o Currently a request queue has got fixed number of request descriptors for
>> sync and async requests. Once the request descriptors are consumed, new
>> processes are put to sleep and they effectively become serialized. Because
>> sync and async queues are separate, async requests don't impact sync ones
>> but if one is looking for fairness between async requests, that is not
>> achievable if request queue descriptors become bottleneck.
>>
>> o Make request descriptor's per io group so that if there is lots of IO
>> going on in one cgroup, it does not impact the IO of other group.
>>
>> o This is just one relatively simple way of doing things. This patch will
>> probably change after the feedback. Folks have raised concerns that in
>> hierchical setup, child's request descriptors should be capped by parent's
>> request descriptors. May be we need to have per cgroup per device files
>> in cgroups where one can specify the upper limit of request descriptors
>> and whenever a cgroup is created one needs to assign request descritor
>> limit making sure total sum of child's request descriptor is not more than
>> of parent.
>>
>> I guess something like memory controller. Anyway, that would be the next
>> step. For the time being, we have implemented something simpler as follows.
>>
>> o This patch implements the per cgroup request descriptors. request pool per
>> queue is still common but every group will have its own wait list and its
>> own count of request descriptors allocated to that group for sync and async
>> queues. So effectively request_list becomes per io group property and not a
>> global request queue feature.
>>
>> o Currently one can define q->nr_requests to limit request descriptors
>> allocated for the queue. Now there is another tunable q->nr_group_requests
>> which controls the requests descriptr limit per group. q->nr_requests
>> supercedes q->nr_group_requests to make sure if there are lots of groups
>> present, we don't end up allocating too many request descriptors on the
>> queue.
>>
>
> Hi Vivek,
>
> In order to prevent q->nr_requests from becoming the bottle-neck of allocating
> requests, whether we can update nr_requests accordingly when allocating or removing
> a cgroup?
Vivek,
I agree with Gui here. In fact, it does not make much sense to keep
the nr_requests limit if we already have per cgroup limit in place.
This change also simplifies code quite a bit, as we can get rid of all
that sleep_on_global logic.
>
> --
> Regards
> Gui Jianfeng
>
>
--
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/
Jianfeng wrote:
> Vivek Goyal wrote:
>> o Currently a request queue has got fixed number of request descriptors for
>> sync and async requests. Once the request descriptors are consumed, new
>> processes are put to sleep and they effectively become serialized. Because
>> sync and async queues are separate, async requests don't impact sync ones
>> but if one is looking for fairness between async requests, that is not
>> achievable if request queue descriptors become bottleneck.
>>
>> o Make request descriptor's per io group so that if there is lots of IO
>> going on in one cgroup, it does not impact the IO of other group.
>>
>> o This is just one relatively simple way of doing things. This patch will
>> probably change after the feedback. Folks have raised concerns that in
>> hierchical setup, child's request descriptors should be capped by parent's
>> request descriptors. May be we need to have per cgroup per device files
>> in cgroups where one can specify the upper limit of request descriptors
>> and whenever a cgroup is created one needs to assign request descritor
>> limit making sure total sum of child's request descriptor is not more than
>> of parent.
>>
>> I guess something like memory controller. Anyway, that would be the next
>> step. For the time being, we have implemented something simpler as follows.
>>
>> o This patch implements the per cgroup request descriptors. request pool per
>> queue is still common but every group will have its own wait list and its
>> own count of request descriptors allocated to that group for sync and async
>> queues. So effectively request_list becomes per io group property and not a
>> global request queue feature.
>>
>> o Currently one can define q->nr_requests to limit request descriptors
>> allocated for the queue. Now there is another tunable q->nr_group_requests
>> which controls the requests descriptr limit per group. q->nr_requests
>> supercedes q->nr_group_requests to make sure if there are lots of groups
>> present, we don't end up allocating too many request descriptors on the
>> queue.
>>
>
> Hi Vivek,
>
> In order to prevent q->nr_requests from becoming the bottle-neck of allocating
> requests, whether we can update nr_requests accordingly when allocating or removing
> a cgroup?
Vivek,
I agree with Gui here. In fact, it does not make much sense to keep
the nr_requests limit if we already have per cgroup limit in place.
This change also simplifies code quite a bit, as we can get rid of all
that sleep_on_global logic.
>
> --
> Regards
> Gui Jianfeng
>
>
--
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
- mytop in fedora8 - fedora
- Fw: Re: yum upgrade F8->F9 - fedora
- No DVB after upgrade to 2.6.26.3 (solution) - fedora
- who the %^#$ is messing with /etc/passwd ?? - fedora
- How to Disable screensaver - fedora
- need to uzip *.7zip file - fedora
- Getting NM updates back out - fedora
- Dealing with portscans - freebsd
- how to figure out what options are supported, was Re: Odd crash with MySQL Embedded 5.1.28 - mysql
- [users] OOo database - openoffice
- reference question - perl
- empty csv file attachments - python