Introduction
Copying thousands of small files often takes far longer than copying one large file of the same total size. This article explains why, in plain English, and shows the technical and practical reasons behind the slowdown so you can understand what’s happening and how to reduce delays when moving many tiny files.
- Quick answer: why tiny files slow everything down
- Breaking down the overheads: what happens when a file is copied
- Hardware factors: why drives and interfaces matter
- File system and software behaviors that amplify delays
- Examples that illustrate the effect
- How caching and parallelism change the picture
- Practical tips to speed up copying many small files
- When slow copying is expected vs when it signals a problem
- Why file size matters more than total bytes
- Final practical checklist
- Conclusion
Quick answer: why tiny files slow everything down
At a high level, copying many small files is slow because each file triggers repeated work: the operating system and storage device must handle metadata, find free space, update directory structures, and transfer data for each individual file. Those per-file overheads add up, so thousands of files multiply the slow steps. In contrast, a single large file lets systems do much of that work once, making throughput far higher.
Breaking down the overheads: what happens when a file is copied
To understand the cumulative effect, it helps to follow the typical steps a computer performs when copying a file. Each step involves time and resources.
1) File open and permission checks — The operating system checks that the file exists, verifies permissions, and opens a handle for reading. For many files, this happens repeatedly.
2) Metadata read/write — File systems store metadata (file name, size, timestamps, permissions, and pointers to data blocks). Copying requires reading source metadata and writing metadata for the new file.
3) Directory operations — Creating a new file means updating the directory that contains it. Directories are themselves files with structure; modifying them involves finding the slot for a new entry and writing that change to disk.
4) Allocating storage — The file system must find and reserve free blocks for the destination file. Allocation strategies and fragmentation can make this time variable.
5) Data transfer — Actual file contents are read from source storage and written to destination storage. For small files this often involves tiny transfers that don’t fully use device throughput.
6) Flushing and journaling — To prevent corruption, many file systems and applications force metadata and data to be committed to disk or to a journal. These safe-write operations slow each file creation.
7) Caching and CPU overhead — Each file operation requires system calls, context switches, and CPU work. When files are small, CPU and OS overhead per byte becomes significant.
Hardware factors: why drives and interfaces matter
Storage hardware and interfaces affect performance in ways that are more visible when copying many small files.
Hard disk drives (HDDs) — HDDs have moving parts: a spinning platter and an actuator arm that moves between tracks. Reading or writing a small file often requires a seek (moving the arm) and waiting for the platter to spin to the right sector. Seeks and rotational latency are on the order of milliseconds; doing that thousands of times quickly adds up.
Solid-state drives (SSDs) — SSDs have no moving parts and offer much lower latency, so tiny-file performance improves compared with HDDs. However, SSDs still have per-operation costs, internal mapping tables, and sometimes write-amplification effects. Small random writes can be slower than large, sequential writes on SSDs too.
Network storage — Copying tiny files over a network (to cloud storage, NAS, or over a LAN) introduces network latency and protocol overheads. Each file operation may require authentication, directory listing requests, and many small network round trips, amplifying delays.
Interfaces and buses — USB 2.0, USB 3.x, Thunderbolt, and Ethernet have different latencies and sustained throughput. On high-latency interfaces, small transfers waste the connection’s potential, raising the per-file time.
File system and software behaviors that amplify delays
Not all file systems treat small files the same way. Some design choices change how costly many file operations are.
Journaling file systems — Many modern file systems (like ext4, NTFS, HFS+, APFS) use journaling to protect against corruption. Journaling records metadata and sometimes data before committing changes. This provides safety but adds writes and waits for each file creation.
Directory structure and lookup costs — Large directories with many entries can be slow to update or search. Some file systems use hashing or B-trees to speed lookups; others scan directory blocks. Adding thousands of entries may cause more disk writes and CPU work.
Block size and allocation granularity — File systems allocate space in blocks (for example, 4 KB). A tiny file smaller than a block still consumes an entire block, which is wasteful for space but not necessarily the main speed problem. However, allocation bookkeeping for each block can be slow.
Copy mechanisms and user tools — The tool you use matters. Graphical copy dialogs often copy files one at a time and update the user interface for each file, adding overhead. Command-line tools that stream data or use multithreading can be faster. Some tools invoke checksum calculations or preserve extended attributes, which add extra work per file.
Examples that illustrate the effect
Example 1: Ten gigabytes as one file vs ten gigabytes as 1,000,000 files — A single 10 GB file can be copied as one continuous read and write stream. Throughput might reach hundreds of megabytes per second on modern SSDs. But copying 1,000,000 tiny files of 10 KB each forces repeated metadata and allocation work, many tiny I/O operations, and potentially millions of system calls and seeks, dropping effective throughput dramatically.
Example 2: Copying to a USB stick — A high-quality USB 3.0 stick may copy a large movie file quickly, but copying thousands of small photos can take much longer because the stick’s controller handles many small writes inefficiently and the host OS issues many commands.
Example 3: Copying over SMB or NFS — Network file-sharing protocols often issue round trips per file for operations like OPEN, READ, WRITE, and CLOSE. Network latency multiplies the cost of each tiny file, so the same data copied as one archive transfers much faster.
How caching and parallelism change the picture
Caches in RAM and on the storage device can hide some costs. If the system reads the source files into the page cache, subsequent reads can be served from memory rather than disk, which is much faster. Similarly, write caching can batch metadata updates.
However, caching is limited by available memory and by how the OS and device implement caching policies. For extremely large numbers of files that exceed cache capacity, benefits disappear.
Parallelism can help: copying multiple files concurrently may use multiple threads or processes to overlap I/O and CPU work, or to saturate multiple channels on a device. But naive parallelism can increase disk head movement on HDDs or cause contention on a network, sometimes making things worse. The effectiveness of parallel copying depends on hardware and file-system behavior.
Practical tips to speed up copying many small files
1) Archive before moving — Creating a single archive (ZIP, TAR, or similar) bundles many small files into one large file. This reduces per-file metadata operations and is often much faster to copy. Example: tarring a folder and then transferring the tarball over the network.
2) Use specialized tools — Some copy utilities are optimized for many small files (rsync with batching, robocopy on Windows, or tools that use parallel workers). These can be faster than simple drag-and-drop because they reduce round trips or use multiple threads intelligently.
3) Increase parallelism carefully — For SSDs and fast networks, copying several files in parallel can improve throughput. For HDDs, avoid too much parallelism because it increases seeks. Test on your system to find a good balance.
4) Adjust file-system settings — On Linux, mounting options (like disabling atime updates) and tuning writeback settings can reduce metadata churn. Be cautious: some changes reduce safety guarantees or increase risk of data loss on power failure.
5) Use faster hardware and interfaces — Faster SSDs, modern USB or Thunderbolt, and lower-latency networks reduce per-operation delay. Moving data between two internal SSDs is usually much faster than external USB drives.
6) Minimize metadata operations — If you don’t need to preserve extended attributes or timestamps, avoid options that force those updates. Some copy tools let you skip preserving extra metadata to save time.
7) Organize files logically — If a directory has millions of entries, reorganizing into subfolders can reduce directory lookup costs on some file systems.
When slow copying is expected vs when it signals a problem
Expected slowdowns — Copying many small files across a network, between slow USB drives, or on heavily fragmented HDDs will often be slow and this is expected. Modern file systems and hardware improve the situation but cannot remove inherent per-file costs.
Signs of a problem — If copying small files to modern SSDs or local drives is unusually slow compared with past performance, check for problems: failing drives, full disks, excessive fragmentation on older file systems, antivirus software scanning each file, or background processes consuming disk I/O. Network issues (high latency, packet loss) also cause unexpected slowness.
Why file size matters more than total bytes
Throughput (megabytes per second) is not the only measure that matters when copying. Latency per operation and the number of operations matter too. Copying many tiny files increases the number of operations proportionally to the file count, while total bytes remain the same. Thus, the overall time is dominated by per-file latency rather than raw bandwidth.
Think of it like mailing letters: sending one package with 1000 letters inside is quicker and cheaper than sending 1000 individual envelopes. Each envelope requires its own handling and stamp; a single package only requires one set of handling steps.
Final practical checklist
Before you start a large copy job involving many tiny files, consider these steps:
– Can you archive the files first? If yes, archive and transfer the archive.
– Are you copying over a network? If yes, test with a large single file to estimate base throughput.
– Is the destination a USB stick or older HDD? Expect slower performance and consider using another device.
– Use tools that support batching or parallelism and test different settings on a small sample to find the fastest approach.
– Check for background processes, antivirus, or file-system features (like compression or encryption) that may add overhead.
Conclusion
Copying thousands of tiny files takes so long because each file triggers repeated metadata, directory, allocation, and I/O operations — and those per-file costs add up. Hardware (HDD vs SSD), file system design, network latency, caching, and the copy tool you use all change how noticeable the slowdown is. Practical fixes include archiving files into one container, using optimized copy tools, tuning parallelism, and improving hardware or interface speed.

