- Jul 20, 2010
- 90
- 0
- 66
I just observed an odd scenario where Windows had unexpectedly cached some data, I was very surprised and don't know exactly how it worked. Here's what happened:
-I viewed (in VLC, a media player) a 3.5GB video file from a USB device, which only has a transfer rate of 25MB/s.
-I then closed this file and application and performed a copy operation of this file to my local disk. It copied basically instantly, which would normally take a few minutes at the given transfer rate.
-To verify that this was a result of caching, I tried copying a different large file which I did not view beforehand. It took the normal amount of time to copy.
What surprises me about this, is that Windows must either have:
a) Not unloaded this file from RAM, after the application closed, and then knew to reference the RAM to copy it.
or
b) When the file was viewed from the USB device, it was actually copied to a temp file and cached from there. This file was being buffered in the background the whole time the viewer was open. Windows knew to reference this temp file when the copy operation occured.
This is some sophisticated write caching at work. It should mean then, that any data accessed off a USB device is cached for the duration it is connected.
-I viewed (in VLC, a media player) a 3.5GB video file from a USB device, which only has a transfer rate of 25MB/s.
-I then closed this file and application and performed a copy operation of this file to my local disk. It copied basically instantly, which would normally take a few minutes at the given transfer rate.
-To verify that this was a result of caching, I tried copying a different large file which I did not view beforehand. It took the normal amount of time to copy.
What surprises me about this, is that Windows must either have:
a) Not unloaded this file from RAM, after the application closed, and then knew to reference the RAM to copy it.
or
b) When the file was viewed from the USB device, it was actually copied to a temp file and cached from there. This file was being buffered in the background the whole time the viewer was open. Windows knew to reference this temp file when the copy operation occured.
This is some sophisticated write caching at work. It should mean then, that any data accessed off a USB device is cached for the duration it is connected.
Last edited: