Open andystaples opened 2 months ago
Post more details
Az.Accounts is installed in the network storage shared through SMB. And the client is a Windows machine. So scenario is actually to import Az.Accounts from a SMB share in Windows.
After a local discussion, here are the main points we gathered:
Following is some further investigation followed by above investigation shared by me a few days ago.
In my Windows machine, I set up a Linux sub system Ubuntu 22.04. (So you can assume Linux and Windows run on the same hardware.)
In my NAS, I create a share with both NFS and SMB enabled.
Following are the test results.
Conclusion: The Windows SMB client implementation seems to be bottle neck here.
Suggestions: Try to tune Windows SMB client to improve the I/O performance for small files if possible Considering switch to Linux
Description
In the Azure Functions environment, we have reports from customers of the Az.Accounts module taking 5 or more seconds to import. Our current theory is that this is primarily due to the PSModulePath being stored on network from the Functions VM and slow I/O leads to longer import times for this module (and likely other large modules with many files).
Note that the Issue Script & Debug output field, as well as the other fields in this bug report, were ran locally. To repro this issue most effectively, this command should be run in the Azure Functions environment, or simulated using networked storage with limited IOPS
Issue script & Debug output
Environment data
Module versions
Error output