I developed an benchmark-style console application (C# 4.0). Worked fine with 50,000 or 1,000,000 iterations. Then I increased a iteration count to 50,000,000. But it took too much time, and I forced it to quit. The application quitted normally, but in my main drive (C:) remained only 3.8 GB available. Before the testing free space was 14 GB. There’s 10 GB has been ate !!! Please, can anybody explain why this happened?
Hi All,
I found that *.vsp file on my project directory (9 GB !!!). Yes, it may seem to be silly, because I looked up for every system|hidden folder on my main drive, but never I thought this giant file may be in my project folder. After the 50,000,000 iterations, I felt that my system got slower, and I ran Performance Wizard in VS2010. But iteration count was very little, so I did not think that performance wizard can create such a giant file! Thanks to all!
Without more information (like what the test actually does) my guess is that the program leaked memory like a sieve, and Windows compensated by steadily increasing the size of the swap/paging file, eating up your hard disk space in the process. You might take a look at your
C:\pagefile.sysand see how big it is.