Re: Noob Query : About RAM Disks




Draw wrote:

I have been reading up about RAM Disks, but I don't seem to understand
how interrupts are generated for these.

They aren't. You only need an interrupt when a hardware operation might
complete or begin at an arbtirary future point in time.

I mean, considering block
io(maybe I am wrong in this assumption), given a situation that the
IO(writing specifically) is done, how does, lets say the FS routines,
know of that completion? Who sends them the interrupt?

The writing routines know of the completion because they complete. It's
not like a disk where the writing routines tell the disk to do the
write and the disk finishes (or accepts) the request later. As soon as
they finish doing the write, they're done. There's nothing to notify
them of.

If for some reason the write is done by another thread or "in the
background", the code that completes the write can signal other code
using a mechanism that has the same effect as an interrupt. But I don't
see why this would be necessary because there's really no reason to
wait for the write to complete.

DS

.



Relevant Pages

  • Re: How to debug inside the BIOS and/or interrupt?
    ... No doubt it is the interrupt firing in the middle of the disk ... Yes -- it's a video player, so the video data is updated during that ... the video update portion to the mainline disk read loop (ie. ...
    (comp.lang.asm.x86)
  • Re: Program really slow..
    ... Then when you inside and you scroll ... low disk space and the program used to work fine. ... Sysinternals Process Explorer, and see what percentage of time is ... Interrupt related issues tend to be ...
    (microsoft.public.windowsxp.general)
  • Re: Program really slow..
    ... Then when you inside and you scroll up and down through your code it'll be REALLY slow.. ... My system has always had this low disk space and the program used to work fine. ... Sysinternals Process Explorer, and see what percentage of time is ... Interrupt related issues tend to be ...
    (microsoft.public.windowsxp.general)
  • Re: Program really slow..
    ... of the disk, and 40MB/sec near the end of the disk. ... For a simple performance benchmark, ... Sysinternals Process Explorer, and see what percentage of time is ... Interrupt related issues tend to be ...
    (microsoft.public.windowsxp.general)
  • [PATCH 2/9] V4L/DVB (5020): Fix: disable interrupts while at KM_BOUNCE_READ
    ... This means that if a disk interrupt occurs while vivi.c is using this ... that the fixmap slot now points at a different physical page. ... The net result will probably be rare corruption of disk file contents, ...
    (Linux-Kernel)