Skip to content

AOT-compiled DLLs: how to think about resource utilization #102048

Discussion options

You must be logged in to vote

Yes, each would have their own GC heap, with their own threads for doing background garbage collection, with their own finalizer thread.

I think 5 would still be okay. 25 would probably start to be too much. There are certain behaviors that don't scale well. For example, the GC will by default try to reserve 256 GB of address space on 64-bit systems just to make sure it has continuous block of memory for everything. One cannot reserve this amount many times. The amount can be adjusted by setting heap hard limit but setting it too low might start to interfere with perf or even functionality (OutOfMemoryException).

Bonus points if the overhead can be compared with the overhead of loading G…

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
6 replies
@MichalStrehovsky
Comment options

@CurtHagenlocher
Comment options

@MikeHillberg
Comment options

@MichalStrehovsky
Comment options

@MikeHillberg
Comment options

Answer selected by CurtHagenlocher
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants