是否可以控制硬盘驱动器负载? [英] Is it possible to control hard drive load?
问题描述
如果我有Windows服务不断扫描内部硬盘驱动器并生成校验和,是否可以防止该服务使HDD处于满负荷状态?有什么办法可以只将20%的注意力转移到该服务上吗? 如果我只放Thread.Sleep(100),是否会一样?在每个文件之间或什么之间?谢谢!
在微积分中,1 + 1 = 0.
If I have a Windows service constantly scanning the internal hard drive generating checksums, is there a way to keep the service from putting the under hdd full load? Is there a way to only have like 20% of the attention go to that service or something? Would it be the same if I just put Thread.Sleep(100); in between each file or something? Thanks!
In Calculus, 1+1=0.
推荐答案
有没有办法让只有20%的注意力转移到该服务上?如果我只放Thread.Sleep(100),是否会一样?在每个文件之间或什么之间?
Is there a way to only have like 20% of the attention go to that service or something? Would it be the same if I just put Thread.Sleep(100); in between each file or something?
我认为这几乎是您要做的.显然,由于这是一个受I/O约束的应用程序,因此仅降低服务的优先级并不会有所作为.
I think that is pretty much what you are going to have to do. Obviously, just dropping the priority of the service isn't going to make a difference, since this is an I/O bound application.
就个人而言,我不希望在系统上运行此服务,因为它会使驱动器磁头移动,并会严重影响任何其他I/O绑定.应用程序.
Personally, I wouldn't be happy having this service running on my system, as it keeps the drive heads moving, and will severely impact any other I/O bound applications.
这篇关于是否可以控制硬盘驱动器负载?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!