Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a strange phenomenon. I'm starting a long-running process on Windows cmd shell (the behaviour is the same on XP and Win7). The process reads information from the file system (files, directory structure, etc.), and stores it in process memory, and then answers requests from other processes. When I terminate the process with Ctrl-C/Ctrl-Break, and re-start it, the file system information is immediately available to the process, and it doesn't have to re-read it from disk. It seems like the old process was only being swapped out, and is now swapped in again. - How is this possible? Is there a way to assure the old process memory is gone?


I was misinterpreting my app's behaviour, and was looking in the wrong places. Information was actually passed through (other) files between invocations.- Sorry for the noise.

share|improve this question

closed as too localized by DMA57361 Jun 29 '11 at 14:20

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

The fact that Windows NT has a file cache, from which files and directories can be re-read without needing to access the disc, shouldn't be that strange, let alone a problem. ☺

share|improve this answer
Sure, but in that case my app would still think it is reading from the FS, whether the OS is physically going to disk or not. But the process finds the information immediately in memory, so doesn't even try to do file i/o. – ThomasH Jun 29 '11 at 13:54

Not the answer you're looking for? Browse other questions tagged .