From: "Måns Rullgård" <mru@inprovide.com>
To: linux-kernel@vger.kernel.org
Subject: Re: [OT] inotify hack for locate
Date: Mon, 06 Mar 2006 22:08:28 +0000 [thread overview]
Message-ID: <yw1xzmk39qg3.fsf@agrajag.inprovide.com> (raw)
In-Reply-To: <20060306215332.GA4836@elf.ucw.cz>
Pavel Machek <pavel@ucw.cz> writes:
> On Ne 05-03-06 23:30:09, M?ns Rullg?rd wrote:
>> Benjamin LaHaise <bcrl@kvack.org> writes:
>>
>> > On Sun, Mar 05, 2006 at 04:43:03PM -0500, Lee Revell wrote:
>> >> updatedb runs at nice 20 on most distros, and with the CFQ scheduler the
>> >> IO priority follows the nice value, so why does it still kill the
>> >> machine?
>> >
>> > Running updatedb on a laptop when you're sitting in an airplane running
>> > off of batteries is Not Nice to the user. I know, I've had it happen far
>> > too many times.
>>
>> Running updatedb only if AC powered shouldn't be too difficult.
>
> That makes locate useless on some machines. I have sharp zaurus C3000
> here... It is either powered on *or* connected on AC, but very rarely
> connected to ac while turned on. Well, its power plug located at weird
> place and old software version that prevents charging while turned on
> is contributory factor, but...
OK, although that surely must be an exception. Most laptops run
happily with AC connected, and the current power source is easily
obtained from some file in /proc that I've forgotten the name of.
--
Måns Rullgård
mru@inprovide.com
next prev parent reply other threads:[~2006-03-06 22:09 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-05 21:36 Jon Masters
2006-03-05 21:42 ` Jesper Juhl
2006-03-05 21:50 ` Jon Masters
2006-03-06 9:23 ` Helge Hafting
2006-03-06 21:59 ` Pavel Machek
2006-03-05 21:53 ` Robin Holt
2006-03-05 22:02 ` Jon Masters
2006-03-05 21:43 ` Lee Revell
2006-03-05 23:08 ` Benjamin LaHaise
2006-03-05 23:30 ` Måns Rullgård
2006-03-06 21:53 ` Pavel Machek
2006-03-06 22:08 ` Måns Rullgård [this message]
2006-03-06 22:22 ` Pavel Machek
2006-03-08 13:56 ` Jan Engelhardt
2006-03-05 23:41 ` Chris Ball
2006-03-06 1:04 ` Jon Masters
2006-03-06 9:31 ` Helge Hafting
2006-03-06 13:10 ` Jon Masters
2006-03-07 0:11 ` Lee Revell
2006-03-07 0:33 ` Jon Masters
2006-03-07 10:26 ` Steven Rostedt
2006-03-09 2:44 ` Jon Masters
2006-03-06 7:49 ` Arjan van de Ven
2006-03-06 13:12 ` Jon Masters
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=yw1xzmk39qg3.fsf@agrajag.inprovide.com \
--to=mru@inprovide.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®