All of lore.kernel.org
 help / color / mirror / Atom feed
From: "H. Peter Anvin" <hpa@zytor.com>
To: "Calin A. Culianu" <calin@ajvar.org>
Cc: Stevie O <stevie@qrpff.net>, linux-kernel@vger.kernel.org
Subject: Re: Asynchronous CDROM Events in Userland
Date: Mon, 04 Feb 2002 20:47:52 -0800	[thread overview]
Message-ID: <3C5F63F8.90808@zytor.com> (raw)
In-Reply-To: <Pine.LNX.4.30.0202042341030.31336-100000@rtlab.med.cornell.edu>

Calin A. Culianu wrote:

>>>
>>Does it spin up the CD-ROM doing so?
>>
> 
> Probably it doesn't, but just having the cpu be non-idle when it could
> otherwise be idle does add up over time.  In linux, polling the cdrom
> *seems* inexpensive enough, but if you look at 'top' it seems to average
> out to like 1-2% cpu time!  (Ok, these stats aren't super-accurate,
> they're just from running 'top' with the kde autorun tool running).
> 
> [Admitedly, the autorun tool is written kind of strangely (it does one
> redundant ioctl, plus it wait()s on its children constantly rather than
> installing a signal handler), but still.. it would be nice to get those
> extra cycles for quake3 or wolfenstein...]
> 


That just indicates a bullsh*t program.  It's also pretty certain that 
these kinds of things don't belong in the GUI; one of the things I'd 
like to do at some point is to write a daemon to mount things on insert 
(vold).

	-hpa



  reply	other threads:[~2002-02-05  4:48 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-04  4:41 Asynchronous CDROM Events in Userland Calin A. Culianu
2002-02-04  5:07 ` H. Peter Anvin
2002-02-04  5:19   ` Calin A. Culianu
2002-02-04 12:43   ` john slee
2002-02-04 15:23     ` Calin A. Culianu
2002-02-04 16:20     ` H. Peter Anvin
2002-02-04  7:04 ` Erik Andersen
2002-02-04  7:57   ` Jens Axboe
2002-02-04  9:33     ` Gregor Jasny
2002-02-04  9:39       ` Jens Axboe
2002-02-04 14:05     ` hugang
2002-02-05  7:43       ` Jens Axboe
2002-02-04 12:16   ` Alan Cox
2002-02-04 20:51     ` oops booting 2.4.18-pre7-ac3 Todd M. Roy
2002-02-05  4:04 ` Asynchronous CDROM Events in Userland Stevie O
2002-02-05  4:28   ` H. Peter Anvin
2002-02-05  4:44     ` Calin A. Culianu
2002-02-05  4:47       ` H. Peter Anvin [this message]
     [not found] ` <a3l4uc@cesium.transmeta.com>
2002-02-06 14:22   ` Pavel Machek
2002-02-06 22:48     ` H. Peter Anvin
  -- strict thread matches above, loose matches on Subject: below --
2002-02-05 13:17 David Balazic

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=3C5F63F8.90808@zytor.com \
    --to=hpa@zytor.com \
    --cc=calin@ajvar.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=stevie@qrpff.net \
    /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.