comparc-metrics/hddaccess
dheatovwil 92fd83a4aa Add HDDACCESS and WRITEBACK metric
- Cache average access time for write-back policy
- HDD average access time using RPM and head-seek time
2020-06-23 02:40:06 +08:00

8 lines
147 B
Python
Executable File

#!/bin/python
rpm = int(input("RPM? "))
headseek = int(input("AVG head seek? (ms) ")) # ms
rotlat = 60/rpm/2 * 1000 # ms
print(headseek+rotlat)