baruch / diskscan

Scan disk for bad or near failure sectors, performs disk diagnostics
GNU General Public License v3.0
108 stars 29 forks source link

Use realtime priority to improve timing accuracy #22

Closed baruch closed 10 years ago

baruch commented 10 years ago

When timing IOs we need to find the start and end as close as possible, the scheduling constraints may mean that we get inaccurate times just from scheduling latency. Switching the app to realtime priority will make use get the cpu asap and make the accuracy much better.

Since we are IO bound in any case this means that we will not waste cpu time needlessly, just get a faster response time and more accurate timing information.