qbittorrent / qBittorrent

qBittorrent BitTorrent client
https://www.qbittorrent.org
Other
28.63k stars 4.01k forks source link

Extremely Slow Disk Space Pre-Allocation. #14468

Open 54m4d opened 3 years ago

54m4d commented 3 years ago

Please provide the following information

qBittorrent version and Operating System

Release-4.3.3 (64-bit)

If on linux, libtorrent-rasterbar and Qt version

N/A

What is the problem

What is the expected behavior

-The expected behavior is a faster pre-allocation.

Steps to reproduce

-Add many small torrent files at the same time or a big single torrent file and let it pre-allocate. Pre-allocate disk space for all files (must be enabled)

Extra info(if any)

Screenshots

preallocate

So why is disk space pre-allocation extremely slow?

The5kull commented 3 years ago

Your are using an USB drive which can't keep up with qB. Average response time of 7361 ms is high so qB is waiting for the disk to finish his jobs.

eurobank commented 3 years ago

Same issue happens WITH other clients and it is normal, especially with slow drives and large files.

FranciscoPombal commented 3 years ago

Makes currently downloading torrents stop or go down to 0 B/s. (see screenshot).

This is expected if you're preallocating in the same drive.

About preallocation being "slow": that depends entirely on the specs of the drive. Off-the-shelf USB drives tend to be slower. Also, USB 1.0-2.0 is half-duplex, so that is another massive hit to performance if you're not using USB 3.x or higher.

jbruchon commented 2 years ago

I have had this issue forever. Preallocations need to be serialized per-device. I have drives capable of writing near 180 MB/sec that will have two torrents allocate simultaneously, then Resource Monitor shows both preallocating at 2 MB/sec. Only one preallocate should be issued at a time.