Amazon’s Data Access Monitor code “DAMON” is now configured to be introduced in Linux 5.15.
Amazon has been releasing DAMON fixes for over a year, and has undergone nearly three dozen revisions for this kernel module in order to monitor data access for specific user-space processes. DAMON is designed to be light and precise for performance-oriented areas. The basic infrastructure of DAMON is now ready for the main line, while other features are to come relying on DAMON. DAMON-based proactive garbage collection should be noted to provide significant memory savings. There are also various open source user space utilities built by Amazon around DAMON.
DAMON is a data access monitoring infrastructure subsystem for the Linux kernel. DAMON’s basic mechanisms called â€œregion-based samplingâ€ and â€œadaptive region adjustmentâ€ make it
– accurate (the monitored information is useful for DRAM level memory management. However, it may not be appropriate for cache level precision.),
– lightweight (the overhead for monitoring is low enough to be applied online while having no impact on the performance of target workloads.), and
– scalable (the upper limit of the instrumentation overload is controllable regardless of the size of the target workloads.).
By using this framework, therefore, kernel main memory management mechanisms such as retrieval and THP can be optimized for better memory management. The work of optimizing the management of the experimental memory which leads to a high instrumentation overload may be retried. In user space, meanwhile, users with special workloads will be able to write custom tools or applications for deeper understanding and specialized optimizations of their systems.
Today’s news is that Andrew Morton is reporting that he has merged major DAMON fixes into the memory management code he oversees for the Linux kernel.
With Andrew picking up the DAMON patches now in his tree, this makes it part of the material that will be sent to Linus Torvalds in a few weeks for the mainline once the Linux 5.15 merge window opens.