|
|
Subscribe / Log in / New account

Memory-management optimization with DAMON

Memory-management optimization with DAMON

Posted Feb 27, 2020 11:31 UTC (Thu) by Karellen (subscriber, #67644)
Parent article: Memory-management optimization with DAMON

we identified frequently accessed memory regions in each workload based on the DAMON results and protected them with mlock() system calls. The optimized versions consistently show speedup (2.55x in best case, 1.65x in average) under memory pressure.

If feel like "under memory pressure" should be emphasised here. Yes, if you're low on memory and the system is needing to swap, then preventing some regions of memory from being swapped could certainly improve the performance... of that particular application.

However, if you're low on memory and the system is needing to swap, then preventing some regions of memory from being swapped is probably going to have an adverse effect on all the other applications on the system.

That kind of speedup certainly justifies spending some time looking at a process's memory patterns. It would be even nicer, though, if the kernel could do that work itself — that is what a memory-management subsystem is supposed to be for, after all.

I feel like the memory management subsystem should be for making the system as fair as possible?


to post comments

Memory-management optimization with DAMON

Posted Mar 2, 2020 11:52 UTC (Mon) by sjpark (subscriber, #87716) [Link]

For the test, I ran the application in a seperated cgroup. Thus, the speedup was not came from such sacrifices of other processes. You can show the detailed setup of the tests in the related paper: https://dl.acm.org/doi/10.1145/3366626.3368125


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds