Based on historical TreeSize scans, predict when a disk will run out of free space.
I want to know the deadline by which I need to buy a new hard drive for my NAS RAID.
Look at TreeSize scan history and assume linear disk usage growth, which fits my usage quite accurately. This uses an ordinary least-squares estimation for the linear regression.
- Microsoft .NET Framework 4.7 or later
- JAM Software TreeSize Professional (tested with 5.2)
- Run TreeSize and scan the given drive.
- Do this at least twice. The prediction accuracy will increase as the number of scans and duration of time covered by the scans increases.
- You can look at a graph of the history of the drive's allocated bytes in the History tab.
This is a console mode program. Run it from a command line like the Command Prompt or PowerShell.
>DiskSpaceExhaustionPredictor.exe D:
Analyzing disk usage over time, based on 31 scans, the most recent of which was on Tuesday, October 22, 2019.
Disk space on D:\ will be exhausted in about 148 days, around Wednesday, March 18, 2020.
- Microsoft Visual Studio Community 2019 or better
- Open the solution file in Visual Studio.
- Build the solution with
Build → Build solution
. - If you don't care about debugging the program and don't want a folder full of DLLs to worry about, use the solution configuration toolbar dropdown menu to switch from Debug to Release.
- The compiled program is
DiskSpaceExhaustionPredictor\bin\Release\DiskSpaceExhaustionPredictor.exe
, relative to the solution directory (orDebug
for debug builds).