More fine grained speed limit for copy operation
Posted: 2022-09-25, 02:33 UTC
Hi, I do have following use case: I want to copy (large) files via very poor connection. Maybe between my PC and USB stick or between my PC and network NAS or between my PC and other PC maybe via RDP via VPN via 4G mobile data. During copy operation the other device is barely usable because all bandwidth is consumed by the copy operation. To mitigate this I'm using background transfer manager (or whatever it is called) by pressing F5 followed by F2 and limit the transfer speed there. Total Commander implements the rate limiting in following way: read 1MB, write 1MB, wait for some time, and then repeat: read 1MB, write 1MB, wait, read 1MB, write 1MB, wait. (I used sysinternals' procmon tool to discover the read/write amount.)
The problem: 1MB is too coarse. I cannot do anything during the operation (file write in my case) and experience using the other device via TC (or File Explorer) is very poor. In fact, I'm writing this post from computer I'm controlling via the RDP+VPN+4G setup and oh boi, it is unpleasant, the screen freezes for seconds at a time, I cannot see what I'm writing.
The suggestion: In case user selects low transfer speed limit, make the read + write chunks much smaller than the 1MB it is currently. Maybe if the speed is smaller than 1MB/s use 64kB chunks? Some tuning required. Perhaps add this as user configurable option into .ini files, no need to expose it in GUI.
Best regards, Marek.
The problem: 1MB is too coarse. I cannot do anything during the operation (file write in my case) and experience using the other device via TC (or File Explorer) is very poor. In fact, I'm writing this post from computer I'm controlling via the RDP+VPN+4G setup and oh boi, it is unpleasant, the screen freezes for seconds at a time, I cannot see what I'm writing.
The suggestion: In case user selects low transfer speed limit, make the read + write chunks much smaller than the 1MB it is currently. Maybe if the speed is smaller than 1MB/s use 64kB chunks? Some tuning required. Perhaps add this as user configurable option into .ini files, no need to expose it in GUI.
Best regards, Marek.