Is there a difference between the physical machine and the Docker image environment in a container when using LoadAssembly to load a DLL? #97379
Unanswered
SFWqiudong
asked this question in
General
Replies: 1 comment 6 replies
-
Do you mean that a new process is started for every run? If so, I believe is an OS behavior. There can be OS file cache, anti-virus filters, or filesystem virtualization handled by OS. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Dear dotnet team and guys, have you ever encountered a situation where loading assemblies in a container environment is slower than in an actual physical machine?
I attempt to write a simple benchmark to load assemblies (net6.0) and run it both in physical machine and k8s (docker environment
) To load lots of dll for test. The assemblies loaded in both environments are consistent. And both have similar computer configurations (with the container having an advantage in the number of cores and amount of memory, and both using SSDs).
Benchmark code is here (very simple)
I have come to some conclusions:
It seems like LoadAssembly has a mechanism similar to caching loaded assembly? Or could there be other reasons that might explain this difference?
Beta Was this translation helpful? Give feedback.
All reactions