The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Richard Zidlicky <rz@linux-m68k.org>
To: Mukesh Rajan <mrajan@ics.uci.edu>
Cc: linux-kernel@vger.kernel.org
Subject: Re: detecting hard disk idleness
Date: Wed, 21 Aug 2002 15:39:17 +0200	[thread overview]
Message-ID: <20020821153917.B1444@linux-m68k.org> (raw)
In-Reply-To: <Pine.SOL.4.20.0208202316380.20323-100000@hobbit.ics.uci.edu>; from mrajan@ics.uci.edu on Tue, Aug 20, 2002 at 11:25:11PM -0700

On Tue, Aug 20, 2002 at 11:25:11PM -0700, Mukesh Rajan wrote:
> 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?

cat /proc/interrupts

Richard

  reply	other threads:[~2002-08-21 14:07 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-21  6:25 detecting hard disk idleness Mukesh Rajan
2002-08-21 13:39 ` Richard Zidlicky [this message]
2002-08-21 18:45   ` Mukesh Rajan
2002-08-21 19:07     ` Richard B. Johnson

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=20020821153917.B1444@linux-m68k.org \
    --to=rz@linux-m68k.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mrajan@ics.uci.edu \
    /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