Exploring DATAS
04/20/2024
.NET 8 introduced a new garbage collection feature: Dynamic Adaptation To Application Sizes or DATAS. The inner workings of it are detailed in this post.
This feature tunes the GC to adjust the number of heaps and execute compacting garbage collections more often to have a smaller overall heap size. The result should be a heap size that more closely resembles the actual amount of memory that the application uses.
This feature is great for memory constrained environments or with uneven loads, where memory may be reclaimed between the loads.
In this post I will enable DATAS on my test server application and test client side application to observe the differences in the memory utilization.