DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: "Disk activity" tamer...  (Read 8,960 times)

cettolox

  • Member
  • Joined in 2006
  • **
  • Posts: 29
"Disk activity" tamer...
« on: September 17, 2007, 08:29 PM »
Hi,

I "love" process tamer, I can't live without !!!

But how I'd like a hard disk tamer ... ! If an application starts to use too much CPU it gets tamed... but how to deal with applications that start to heavily work with the hard drive, slowing down the system to a crawl and consuming little more than 0% CPU???

/Stef

yksyks

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 476
Re: "Disk activity" tamer...
« Reply #1 on: September 17, 2007, 08:34 PM »

Armando

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 2,727
    • Coding Snacks
Re: "Disk activity" tamer...
« Reply #2 on: September 17, 2007, 08:35 PM »

It's good you mention that. You're actually not the first! See :
http://www.donationcoder.com/forum/index.php?topic=8047.msg71111#msg71111
http://www.donationcoder.com/forum/index.php?topic=6803.0

[edit : oups! yksyks posted at the same time!)
"I suppose it can be said that I'm an absent-minded driver. It's true that I've driven through a number of red lights on occasion, but on the other hand, I've stopped at a lot of green ones but never gotten credit for it."
Glenn Gould

cettolox

  • Member
  • Joined in 2006
  • **
  • Posts: 29
Re: "Disk activity" tamer...
« Reply #3 on: September 17, 2007, 08:39 PM »
Opps, sorry, I admit it, I did not search before...

/Stef

MrCrispy

  • Participant
  • Joined in 2006
  • *
  • Posts: 332
Re: "Disk activity" tamer...
« Reply #4 on: September 17, 2007, 09:04 PM »
I am not aware of any mechanism to throttle disk IO in the Windows API. The most you can do is control IO using DPC's but once an IO request has been dispatched, it will run to completion unless its preempted by a higher priority request such as that coming from an ISR, which are not controllable from user mode.

Its impossible to timeslice away from an existing disk operation in the same way that can be done for threads on a cpu, the reason being that file IO has no notion of state which can be saved (like cpu registers).



« Last Edit: September 17, 2007, 11:53 PM by MrCrispy »

yksyks

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 476
Re: "Disk activity" tamer...
« Reply #5 on: September 17, 2007, 10:21 PM »
That's what I was afraid of...  :(

Original address: https://www.donationcoder.com/forum/index.php?topic=10029.0