From: Andrew Morton <akpm@osdl.org>
To: "Chen, Kenneth W" <kenneth.w.chen@intel.com>
Cc: jbarnes@sgi.com, linux-kernel@vger.kernel.org,
linux-ia64@vger.kernel.org
Subject: Re: per-cpu blk_plug_list
Date: Wed, 03 Mar 2004 05:13:09 +0000 [thread overview]
Message-ID: <20040302211309.500f43fb.akpm@osdl.org> (raw)
In-Reply-To: <B05667366EE6204181EABE9C1B1C0EB50211E5C8@scsmsx401.sc.intel.com>
"Chen, Kenneth W" <kenneth.w.chen@intel.com> wrote:
>
> I don't understand the proposal here. There is a per-device lock
> already. But the plugged queue need to be on some list outside itself
> so a group of them can be unplugged later on to flush all the I/O.
here's the proposal:
Regarding this:
http://www.ussg.iu.edu/hypermail/linux/kernel/0403.0/0179.html
And also having looked at Miquel's (currently slightly defective)
implementation of the any_congested() API for devicemapper:
ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.4-rc1/2.6.4-rc1-mm1/broken-out/queue-congestion-dm-implementation.patch
I am thinking that an appropriate way of solving the blk_run_queues() lock
contention problem is to nuke the global plug list altogther and make the
unplug function a method in struct backing_device_info.
This is conceptually the appropriate place to put it - it is almost always
the case that when we run blk_run_queues() it is on behalf of an
address_space, and the few remaining case can be simply deleted -
mm/mempool.c is the last one I think.
The implementation of backing_dev_info.unplug() would have to run the
unplug_fn of every queue which contributes to the top-level queue (the
thing which the address_space is sitting on top of).
We discussed this maybe a year ago with Jens but decided against it for
complexity reasons, but gee, dm_table_any_congested() isn't complex. Do we
forsee any particular problem with this?
WARNING: multiple messages have this Message-ID (diff)
From: Andrew Morton <akpm@osdl.org>
To: "Chen, Kenneth W" <kenneth.w.chen@intel.com>
Cc: jbarnes@sgi.com, linux-kernel@vger.kernel.org,
linux-ia64@vger.kernel.org
Subject: Re: per-cpu blk_plug_list
Date: Tue, 2 Mar 2004 21:13:09 -0800 [thread overview]
Message-ID: <20040302211309.500f43fb.akpm@osdl.org> (raw)
In-Reply-To: <B05667366EE6204181EABE9C1B1C0EB50211E5C8@scsmsx401.sc.intel.com>
"Chen, Kenneth W" <kenneth.w.chen@intel.com> wrote:
>
> I don't understand the proposal here. There is a per-device lock
> already. But the plugged queue need to be on some list outside itself
> so a group of them can be unplugged later on to flush all the I/O.
here's the proposal:
Regarding this:
http://www.ussg.iu.edu/hypermail/linux/kernel/0403.0/0179.html
And also having looked at Miquel's (currently slightly defective)
implementation of the any_congested() API for devicemapper:
ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.4-rc1/2.6.4-rc1-mm1/broken-out/queue-congestion-dm-implementation.patch
I am thinking that an appropriate way of solving the blk_run_queues() lock
contention problem is to nuke the global plug list altogther and make the
unplug function a method in struct backing_device_info.
This is conceptually the appropriate place to put it - it is almost always
the case that when we run blk_run_queues() it is on behalf of an
address_space, and the few remaining case can be simply deleted -
mm/mempool.c is the last one I think.
The implementation of backing_dev_info.unplug() would have to run the
unplug_fn of every queue which contributes to the top-level queue (the
thing which the address_space is sitting on top of).
We discussed this maybe a year ago with Jens but decided against it for
complexity reasons, but gee, dm_table_any_congested() isn't complex. Do we
forsee any particular problem with this?
next prev parent reply other threads:[~2004-03-03 5:13 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-03 4:20 per-cpu blk_plug_list Chen, Kenneth W
2004-03-03 4:20 ` Chen, Kenneth W
2004-03-03 5:13 ` Andrew Morton [this message]
2004-03-03 5:13 ` Andrew Morton
2004-03-03 9:45 ` Miquel van Smoorenburg
2004-03-03 9:54 ` Andrew Morton
2004-03-03 16:24 ` Miquel van Smoorenburg
2004-03-03 22:37 ` Miquel van Smoorenburg
-- strict thread matches above, loose matches on Subject: below --
2004-03-01 22:28 Chen, Kenneth W
2004-03-01 22:14 Chen, Kenneth W
2004-03-01 21:18 Chen, Kenneth W
2004-03-01 22:06 ` Jens Axboe
2004-03-01 22:17 ` Andrew Morton
2004-03-01 22:31 ` Andrew Morton
[not found] ` <B05667366EE6204181EABE9C1B1C0EB501F2AB4C@scsmsx401.sc.intel.com.suse.lists.linux.kernel>
2004-03-01 22:36 ` Andi Kleen
2004-03-03 3:44 ` Jesse Barnes
2004-03-03 3:55 ` Andrew Morton
[not found] <cistron.B05667366EE6204181EABE9C1B1C0EB50211E5C8@scsmsx401.sc.intel.com>
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040302211309.500f43fb.akpm@osdl.org \
--to=akpm@osdl.org \
--cc=jbarnes@sgi.com \
--cc=kenneth.w.chen@intel.com \
--cc=linux-ia64@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.