A
A
Artemy2020-04-25 12:55:16
Windows
Artemy, 2020-04-25 12:55:16

Does Windows use RAM when copying files?

I noticed that sometimes, when interacting with files immediately after copying them, the interaction goes too fast. Also, when copying from a fast disk to a slow one (SSD->HDD), reading files ends before they are written.
Do I understand correctly that the file system stores the last data affected by it in an unclaimed part of RAM for some time?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
N
none7, 2020-04-25
@Artemonim

Copying is reading and writing the contents of files. Disks do not know how to independently transfer data bypassing RAM. It is quite natural that the data remains in the file cache with some probability. But at the expense of lack of demand, everything is not so simple here, because data from some file may turn out to be more necessary for the memory of some application. In this case, the kernel can throw it into the swap, and store the cache of files in memory. Unfortunately, the situation when the OS incorrectly prioritizes is quite common and tens of gigabytes of memory is not a panacea for this problem at all.

Z
Ziptar, 2020-04-25
@Ziptar

reading files ends before writing them

HDD write caching is most likely enabled. So, you can’t do without using RAM, but the OS tries to complete file operations as quickly as possible in order to avoid data loss.

6
6yntar05, 2020-04-25
@6yntar05

The entire transfer is processed by the processor, but something is cached in RAM, although there may still be a data fragmentation factor on the HDD

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question