All of lore.kernel.org
 help / color / mirror / Atom feed
From: Matthew Garrett <mjg59@srcf.ucam.org>
To: Jens Axboe <jens.axboe@oracle.com>
Cc: Pavel Machek <pavel@ucw.cz>, Kay Sievers <kay.sievers@vrfy.org>,
	David Zeuthen <david@fubar.dk>,
	linux-kernel@vger.kernel.org, linux-hotplug@vger.kernel.org
Subject: Re: [PATCH] [RFC] Add support for uevents on block device idle
Date: Mon, 23 Nov 2009 14:25:57 +0000	[thread overview]
Message-ID: <20091123142557.GA10084@srcf.ucam.org> (raw)
In-Reply-To: <20091123141754.GE8742@kernel.dk>

On Mon, Nov 23, 2009 at 03:17:54PM +0100, Jens Axboe wrote:

> I have to agree, doing a mod_timer() on every single IO is going to suck
> big time. I went to great lengths to avoid doing that even for timeout
> detection. So that's pretty much a non-starter to begin with.

It's conditional on a (default off) setting, so it's not a hit unless 
the user requests it. But yeah, the performance hit is obviously a 
concern. It may be that polling is the least bad way of doing this.

> Additionally, as Bart also wrote, you are not doing this in the right
> place. You want to do this post-merge, not for each incoming IO. Have
> you looked at laptop mode? Looks like you are essentially re-inventing
> that, but in a bad way.

Right, that's mostly down to my having no familiarity with the block 
layer at all :) I can fix that up easily enough, but if a deferrable 
timer is going to be too expensive then it'll need some rethinking 
anyway.

-- 
Matthew Garrett | mjg59@srcf.ucam.org

WARNING: multiple messages have this Message-ID (diff)
From: Matthew Garrett <mjg59@srcf.ucam.org>
To: Jens Axboe <jens.axboe@oracle.com>
Cc: Pavel Machek <pavel@ucw.cz>, Kay Sievers <kay.sievers@vrfy.org>,
	David Zeuthen <david@fubar.dk>,
	linux-kernel@vger.kernel.org, linux-hotplug@vger.kernel.org
Subject: Re: [PATCH] [RFC] Add support for uevents on block device idle changes
Date: Mon, 23 Nov 2009 14:25:57 +0000	[thread overview]
Message-ID: <20091123142557.GA10084@srcf.ucam.org> (raw)
In-Reply-To: <20091123141754.GE8742@kernel.dk>

On Mon, Nov 23, 2009 at 03:17:54PM +0100, Jens Axboe wrote:

> I have to agree, doing a mod_timer() on every single IO is going to suck
> big time. I went to great lengths to avoid doing that even for timeout
> detection. So that's pretty much a non-starter to begin with.

It's conditional on a (default off) setting, so it's not a hit unless 
the user requests it. But yeah, the performance hit is obviously a 
concern. It may be that polling is the least bad way of doing this.

> Additionally, as Bart also wrote, you are not doing this in the right
> place. You want to do this post-merge, not for each incoming IO. Have
> you looked at laptop mode? Looks like you are essentially re-inventing
> that, but in a bad way.

Right, that's mostly down to my having no familiarity with the block 
layer at all :) I can fix that up easily enough, but if a deferrable 
timer is going to be too expensive then it'll need some rethinking 
anyway.

-- 
Matthew Garrett | mjg59@srcf.ucam.org

  reply	other threads:[~2009-11-23 14:25 UTC|newest]

Thread overview: 73+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-17 14:37 [PATCH] [RFC] Add support for uevents on block device idle changes Matthew Garrett
2009-11-17 14:37 ` Matthew Garrett
2009-11-17 15:55 ` [PATCH] [RFC] Add support for uevents on block device idle Kay Sievers
2009-11-17 15:55   ` [PATCH] [RFC] Add support for uevents on block device idle changes Kay Sievers
2009-11-17 16:09   ` [PATCH] [RFC] Add support for uevents on block device idle David Zeuthen
2009-11-17 16:09     ` [PATCH] [RFC] Add support for uevents on block device idle changes David Zeuthen
2009-11-17 18:57     ` [PATCH] [RFC] Add support for uevents on block device idle Matthew Garrett
2009-11-17 18:57       ` [PATCH] [RFC] Add support for uevents on block device idle changes Matthew Garrett
2009-11-18 19:30       ` [PATCH] [RFC] Add support for uevents on block device idle Kay Sievers
2009-11-18 19:30         ` [PATCH] [RFC] Add support for uevents on block device idle changes Kay Sievers
2009-11-18 19:40         ` [PATCH] [RFC] Add support for uevents on block device idle Matthew Garrett
2009-11-18 19:40           ` [PATCH] [RFC] Add support for uevents on block device idle changes Matthew Garrett
2009-11-18 19:47           ` [PATCH] [RFC] Add support for uevents on block device idle Kay Sievers
2009-11-18 19:47             ` [PATCH] [RFC] Add support for uevents on block device idle changes Kay Sievers
2009-11-18 19:53             ` [PATCH] [RFC] Add support for uevents on block device idle Matthew Garrett
2009-11-18 19:53               ` [PATCH] [RFC] Add support for uevents on block device idle changes Matthew Garrett
2009-11-18 20:03               ` [PATCH] [RFC] Add support for uevents on block device idle Kay Sievers
2009-11-18 20:03                 ` [PATCH] [RFC] Add support for uevents on block device idle changes Kay Sievers
2009-11-18 20:07                 ` [PATCH] [RFC] Add support for uevents on block device idle Matthew Garrett
2009-11-18 20:07                   ` [PATCH] [RFC] Add support for uevents on block device idle changes Matthew Garrett
2009-11-18 21:06                   ` [PATCH] [RFC] Add support for uevents on block device idle Kay Sievers
2009-11-18 21:06                     ` [PATCH] [RFC] Add support for uevents on block device idle changes Kay Sievers
2009-11-18 21:29                     ` [PATCH] [RFC] Add support for uevents on block device idle Kay Sievers
2009-11-18 21:29                       ` [PATCH] [RFC] Add support for uevents on block device idle changes Kay Sievers
2009-11-18 21:35                       ` [PATCH] [RFC] Add support for uevents on block device idle Matthew Garrett
2009-11-18 21:35                         ` [PATCH] [RFC] Add support for uevents on block device idle changes Matthew Garrett
2009-11-18 21:39                         ` [PATCH] [RFC] Add support for uevents on block device idle Kay Sievers
2009-11-18 21:39                           ` [PATCH] [RFC] Add support for uevents on block device idle changes Kay Sievers
2009-11-18 21:45                           ` [PATCH] [RFC] Add support for uevents on block device idle Matthew Garrett
2009-11-18 21:45                             ` [PATCH] [RFC] Add support for uevents on block device idle changes Matthew Garrett
2009-11-18 21:33                     ` [PATCH] [RFC] Add support for uevents on block device idle Matthew Garrett
2009-11-18 21:33                       ` [PATCH] [RFC] Add support for uevents on block device idle changes Matthew Garrett
2009-11-18 21:40                       ` [PATCH] [RFC] Add support for uevents on block device idle Kay Sievers
2009-11-18 21:40                         ` [PATCH] [RFC] Add support for uevents on block device idle changes Kay Sievers
2009-11-19 11:09                       ` [PATCH] [RFC] Add support for uevents on block device idle Kay Sievers
2009-11-19 11:09                         ` [PATCH] [RFC] Add support for uevents on block device idle changes Kay Sievers
2009-11-19 13:01                         ` [PATCH] [RFC] Add support for uevents on block device idle Matthew Garrett
2009-11-19 13:01                           ` [PATCH] [RFC] Add support for uevents on block device idle changes Matthew Garrett
2009-11-19 13:29                           ` [PATCH] [RFC] Add support for uevents on block device idle Kay Sievers
2009-11-19 13:29                             ` [PATCH] [RFC] Add support for uevents on block device idle changes Kay Sievers
2009-11-19 14:16                             ` [PATCH] [RFC] Add support for uevents on block device idle Matthew Garrett
2009-11-19 14:16                               ` [PATCH] [RFC] Add support for uevents on block device idle changes Matthew Garrett
2009-11-19 14:25                               ` [PATCH] [RFC] Add support for uevents on block device idle Kay Sievers
2009-11-19 14:25                                 ` [PATCH] [RFC] Add support for uevents on block device idle changes Kay Sievers
2009-11-19 14:30                                 ` [PATCH] [RFC] Add support for uevents on block device idle Matthew Garrett
2009-11-19 14:30                                   ` [PATCH] [RFC] Add support for uevents on block device idle changes Matthew Garrett
2009-11-19 14:34                                   ` [PATCH] [RFC] Add support for uevents on block device idle Kay Sievers
2009-11-19 14:34                                     ` [PATCH] [RFC] Add support for uevents on block device idle changes Kay Sievers
2009-11-19 14:48                                     ` [PATCH] [RFC] Add support for uevents on block device idle Matthew Garrett
2009-11-19 14:48                                       ` [PATCH] [RFC] Add support for uevents on block device idle changes Matthew Garrett
2009-11-19 15:00                                       ` [PATCH] [RFC] Add support for uevents on block device idle Kay Sievers
2009-11-19 15:00                                         ` [PATCH] [RFC] Add support for uevents on block device idle changes Kay Sievers
2009-11-20 20:29                                         ` [PATCH] [RFC] Add support for uevents on block device idle Matthew Garrett
2009-11-20 20:29                                           ` [PATCH] [RFC] Add support for uevents on block device idle changes Matthew Garrett
2009-11-22 23:37                   ` [PATCH] [RFC] Add support for uevents on block device idle Pavel Machek
2009-11-22 23:37                     ` [PATCH] [RFC] Add support for uevents on block device idle changes Pavel Machek
2009-11-23 14:12                     ` [PATCH] [RFC] Add support for uevents on block device idle Matthew Garrett
2009-11-23 14:12                       ` [PATCH] [RFC] Add support for uevents on block device idle changes Matthew Garrett
2009-11-23 14:17                     ` [PATCH] [RFC] Add support for uevents on block device idle Jens Axboe
2009-11-23 14:17                       ` [PATCH] [RFC] Add support for uevents on block device idle changes Jens Axboe
2009-11-23 14:25                       ` Matthew Garrett [this message]
2009-11-23 14:25                         ` Matthew Garrett
2009-11-23 14:31                         ` [PATCH] [RFC] Add support for uevents on block device idle Jens Axboe
2009-11-23 14:31                           ` [PATCH] [RFC] Add support for uevents on block device idle changes Jens Axboe
2009-11-23 14:42                           ` [PATCH] [RFC] Add support for uevents on block device idle Matthew Garrett
2009-11-23 14:42                             ` [PATCH] [RFC] Add support for uevents on block device idle changes Matthew Garrett
2009-11-23 19:50                             ` [PATCH] [RFC] Add support for uevents on block device idle Jens Axboe
2009-11-23 19:50                               ` [PATCH] [RFC] Add support for uevents on block device idle changes Jens Axboe
2009-11-23 19:54                               ` [PATCH] [RFC] Add support for uevents on block device idle Matthew Garrett
2009-11-23 19:54                                 ` [PATCH] [RFC] Add support for uevents on block device idle changes Matthew Garrett
2009-12-11 21:20                               ` [RFC] Add support for events " Matthew Garrett
2009-11-18 22:10 ` [PATCH] [RFC] Add support for uevents " Bartlomiej Zolnierkiewicz
2009-11-18 22:10   ` Bartlomiej Zolnierkiewicz

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=20091123142557.GA10084@srcf.ucam.org \
    --to=mjg59@srcf.ucam.org \
    --cc=david@fubar.dk \
    --cc=jens.axboe@oracle.com \
    --cc=kay.sievers@vrfy.org \
    --cc=linux-hotplug@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pavel@ucw.cz \
    /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.