microsoft / AzureStorageExplorer

Easily manage the contents of your storage account with Azure Storage Explorer. Upload, download, and manage blobs, files, queues, tables, and Cosmos DB entities. Gain easy access to manage your virtual machine disks. Work with either Azure Resource Manager or classic storage accounts, plus manage and configure cross-origin resource sharing (CORS) rules.
Creative Commons Attribution 4.0 International
365 stars 85 forks source link

Storage explorer throughput calculator values is not as the network driver stats in task manager #7971

Closed mahmoudsamy27 closed 1 week ago

mahmoudsamy27 commented 1 month ago

Preflight Checklist

Storage Explorer Version

1.33.1

Regression From

No response

Architecture

i86

Storage Explorer Build Number

No response

Platform

All

OS Version

Windows 11

Bug Description

If you try to download relatively big file (10GB+) to local PC you may see that download speed shown in Mbps is jumping from 100 to 400Mbps (depends on ISP plan) but in Windows Task Manager the network driver throughput is not similar to ASE throughput calculation. It means you have a bug in speed calculation per second.

Note: Confirmed that there is no tasks consuming network bandwidth other than storage explorer

Steps to Reproduce

Download 10GB file from storage explorer and compare the throughput with network driver throughput from task manager

Actual Experience

Storage explorer calculated throughput is showing different values when compare with network driver throughput

Expected Experience

No response

Additional Context

No response

MRayermannMSFT commented 1 month ago

@mahmoudsamy27 do you know how network driver stats in task manager computes its value? Is it an instantaneous value? I can tell you that for Storage Explorer, AzCopy which is driving the download, is not reporting an instantaneous value. So there it is likely expected for there to be a discrepancy.

mahmoudsamy27 commented 3 weeks ago

thanks for clarification, may I ask if there is work-in-progress to enhance how throughput is calculated to match wifi driver stats.

craxal commented 3 weeks ago

@mahmoudsamy27 Can you clarify just how different the values reported by Storage Explorer are from the system's values? Like what's been said before, discrepancies are expected. This is due to differences in sampling, intervals, etc. It's also difficult to get accurate values for rates that jump around a lot (such as network traffic).

mahmoudsamy27 commented 1 week ago

There is a huge difference between the values reported by storage explorer and the system values specially on the spikes. This can be reproduced by downloading a large file 10GB+. The issue is that the values reported by storage explorer is not even near to the average.

craxal commented 1 week ago

@mahmoudsamy27 What numbers do you see if you run AzCopy on its own?

There are some key differences to the numbers Storage Explorer reports that would contribute to discrepancies with the system:

All in all, getting precise speeds is infeasible. Instantaneous speeds are a useful performance heuristic, and we do not observe any errors in how it is calculated.