Re: Asynchronous CDROM Events in Userland

From: H. Peter Anvin (hpa@zytor.com)
Date: Mon Feb 04 2002 - 23:47:52 EST


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

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Feb 07 2002 - 21:00:40 EST