Home > OS >  Suddenly, the disk write speed faster, a lot of virtual memory consumption
Suddenly, the disk write speed faster, a lot of virtual memory consumption

Time:11-21

I use the program continued to disk writes a Tiff images of 8 m, time consuming, and statistics of the disk space is enough,
Start time is normal, a figure is around 100 ms; After a few hours later, the speed suddenly turned into a 4 to 6 ms, last a period of time, the system will process I kill, shows that the reason is that the process a large number of virtual memory consumption, I check the device manager, finally, it found that the consumption of virtual memory is close to 46 g,
The whole process, I write function hasn't been an error, is a success, in addition to time anomaly, and then process was killed after I log in the record store a few picture of success, not in the hard disk

CodePudding user response:

Feel your program has a problem, so many memory consumption is unacceptable, after written to disk images, should be a timely close similar thread code, so that the operating system recycling part of memory (just as garbage collection),