Re: [RFC][PATCH 10/11] blkiocg async: Async queue per cfq_group

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Munehiro Ikeda
Date: Friday, August 13, 2010 - 5:49 pm

Nauman Rafique wrote, on 08/13/2010 07:01 PM:

My talking about IO prio might be misleading and pointless, sorry.
I was confused IO context of flush thread and thread which dirtied
a page.

Then, reason why making cfq_io_context per cgroup.
That is simply because the current code retrieves cfqq from
cfq_io_context by cic_to_cfqq().

As you said, we can lookup cgroup by cgroup ID and its async queue.
This is done by cfq_get_queue() and cfq_async_queue_prio().  So if
we change all call of cic_to_cfqq() into cfq_get_queue() (or slightly
changed version of cfq_get_queue() ), we may avoid making cfq_io_context
per cgroup.

Which approach is better depends on the complexity of the patch.  I chose
the former approach, but if the second approach is more simple,
it is better.  I need to think it over and am feeling that the second
approach would be nicer.  Thanks for the suggestion.



-- 
IKEDA, Munehiro
   NEC Corporation of America
     m-ikeda@ds.jp.nec.com

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC][PATCH 00/11] blkiocg async support, Munehiro Ikeda, (Thu Jul 8, 7:57 pm)
[RFC][PATCH 03/11] blkiocg async: Hooks for iotrack, Munehiro Ikeda, (Thu Jul 8, 8:16 pm)
Re: [RFC][PATCH 02/11] blkiocg async: The main part of iotrack, KAMEZAWA Hiroyuki, (Fri Jul 9, 12:35 am)
Re: [RFC][PATCH 02/11] blkiocg async: The main part of iotrack, KAMEZAWA Hiroyuki, (Fri Jul 9, 12:38 am)
Re: [RFC][PATCH 00/11] blkiocg async support, Andrea Righi, (Fri Jul 9, 3:04 am)
Re: [RFC][PATCH 00/11] blkiocg async support, Vivek Goyal, (Fri Jul 9, 6:45 am)
Re: [RFC][PATCH 03/11] blkiocg async: Hooks for iotrack, Munehiro Ikeda, (Fri Jul 9, 4:43 pm)
Re: [RFC][PATCH 00/11] blkiocg async support, Munehiro Ikeda, (Fri Jul 9, 5:17 pm)
Re: [RFC][PATCH 00/11] blkiocg async support, Nauman Rafique, (Fri Jul 9, 5:55 pm)
Re: [RFC][PATCH 00/11] blkiocg async support, Vivek Goyal, (Sat Jul 10, 6:24 am)
Re: [RFC][PATCH 02/11] blkiocg async: The main part of iotrack, KAMEZAWA Hiroyuki, (Sun Jul 11, 5:11 pm)
Re: [RFC][PATCH 00/11] blkiocg async support, KAMEZAWA Hiroyuki, (Sun Jul 11, 5:20 pm)
Re: [RFC][PATCH 00/11] blkiocg async support, Vivek Goyal, (Mon Jul 12, 6:18 am)
Re: [RFC][PATCH 00/11] blkiocg async support, KAMEZAWA Hiroyuki, (Mon Jul 12, 9:36 pm)
Re: [RFC][PATCH 00/11] blkiocg async support, Vivek Goyal, (Wed Jul 14, 7:29 am)
Re: [RFC][PATCH 00/11] blkiocg async support, KAMEZAWA Hiroyuki, (Wed Jul 14, 5:00 pm)
Re: [RFC][PATCH 00/11] blkiocg async support, Vivek Goyal, (Fri Jul 16, 6:43 am)
Re: [RFC][PATCH 00/11] blkiocg async support, Daniel P. Berrange, (Fri Jul 16, 7:15 am)
Re: [RFC][PATCH 00/11] blkiocg async support, Vivek Goyal, (Fri Jul 16, 7:35 am)
Re: [RFC][PATCH 00/11] blkiocg async support, Daniel P. Berrange, (Fri Jul 16, 7:53 am)
Re: [RFC][PATCH 00/11] blkiocg async support, Vivek Goyal, (Fri Jul 16, 8:12 am)
Re: [RFC][PATCH 00/11] blkiocg async support, Greg Thelen, (Thu Jul 22, 12:28 pm)
Re: [RFC][PATCH 00/11] blkiocg async support, KAMEZAWA Hiroyuki, (Thu Jul 22, 4:59 pm)
Re: [RFC][PATCH 00/11] blkiocg async support, Balbir Singh, (Sun Jul 25, 11:41 pm)
Re: [RFC][PATCH 00/11] blkiocg async support, KAMEZAWA Hiroyuki, (Mon Jul 26, 11:39 pm)
Re: [RFC][PATCH 00/11] blkiocg async support, Greg Thelen, (Mon Jul 26, 11:40 pm)
Re: [RFC][PATCH 00/11] blkiocg async support, Daniel P. Berrange, (Tue Jul 27, 3:40 am)
Re: [RFC][PATCH 00/11] blkiocg async support, Vivek Goyal, (Tue Jul 27, 7:03 am)
Re: [RFC][PATCH 00/11] blkiocg async support, Vivek Goyal, (Mon Aug 2, 1:58 pm)
Re: [RFC][PATCH 00/11] blkiocg async support, Munehiro Ikeda, (Tue Aug 3, 7:31 am)
Re: [RFC][PATCH 00/11] blkiocg async support, Nauman Rafique, (Tue Aug 3, 12:24 pm)
Re: [RFC][PATCH 00/11] blkiocg async support, Vivek Goyal, (Tue Aug 3, 1:15 pm)
Re: [RFC][PATCH 00/11] blkiocg async support, Munehiro Ikeda, (Wed Aug 4, 7:32 am)
Re: [RFC][PATCH 10/11] blkiocg async: Async queue per cfq_ ..., Munehiro Ikeda, (Fri Aug 13, 5:49 pm)