All of lore.kernel.org
 help / color / mirror / Atom feed
* detecting hard disk idleness
@ 2002-08-21  6:25 Mukesh Rajan
  2002-08-21 13:39 ` Richard Zidlicky
  0 siblings, 1 reply; 4+ messages in thread
From: Mukesh Rajan @ 2002-08-21  6:25 UTC (permalink / raw)
  To: linux-kernel

hi,

i'm trying to implement an alogrithm that requires as input the idleness
period of a hard disk (i.e. time between satisfying a request and arrival
of new request).

so far implementation polls "proc/stat" periodically to detect idleness
over the poll period. this implementation is not accurate and also i have
very small poll interval (milli secs). with some measurements, conclusion
is that implementation is consuming quite some power. this millisecond
polling overhead could be avoided if i can come up with an interrupt
driven implementation. in DOS, i would have manipulated the interrupt
table and inserted my code for 13h (disk interrupt right?). this would
help me do some preprocessing before the actual call to the hard disk
(13h).

is this possible in any way in Linux? i.e. have the kernel inform a
program when a hard disk interrupt occurs? either through interrupt
manipulation or otherwise?

- mukesh




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-08-21 19:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-08-21  6:25 detecting hard disk idleness Mukesh Rajan
2002-08-21 13:39 ` Richard Zidlicky
2002-08-21 18:45   ` Mukesh Rajan
2002-08-21 19:07     ` Richard B. Johnson

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.