Почему определенные файлы и коллекции файлов так долго копируются?

1465
C.T.

Я копировал папку windows "users" для моего друга и заметил, что копирование файла 6.5GB заняло необычно много времени. Скорость передачи данных никогда не превышала 5 Мбит / с. Кроме того, я заметил, что там было необычно большое количество папок: 30 000-40 000. Влияет ли большое количество файлов, папок и подпапок на скорость передачи?

Упомянутая передача была сделана между SSD и флешкой USB 3.0.

0
USB 2.0 или USB 3.0? Обычно каталог профиля пользователя содержит большое количество файлов. Ramhound 8 лет назад 0

1 ответ на вопрос

2
Fabio Turati

When you copy data, the ideal case is having one sequential file. Instead, having a myriad of small files kills performance. A mechanical disk has to keep seeking for the right sector, and this is very time-consuming; an SSD is much faster, but still it suffers. If you check an SSD benchmark (I recommend Anandtech) you'll see that sequential read is often around 500 MB/s (assuming a SATA 3 connection, which is the most common), whereas reading chunks of 4KB is much slower, less than 100 MB/s.

Moreover, you are copying from an SSD to a USB drive. The latter is probably your bottleneck: consider that a USB 3.0 interface doesn't guarantee that the device will operate at that speed, but rather that it could transfer data up to that speed. Many cheap USB drives have a low quality memory and/or controller, and they are slow, so slow that USB 3.0 is actually useless as they couldn't even saturate USB 2.0.

In your case you are probably seeing a combination of the 2 things, the many files and the slow USB drive. The result is that the operation takes longer than other file copies.

Похожие вопросы