One possible way to take advantage of NVRAM’s lower latency is to use it as swap space for a program. Moving stored data from RAM to NVRAM frees up RAM space that can then be used for storing other program data or instructions. Since data stored in RAM can be accessed faster, moving stored data from RAM to NVRAM increases the overall performance of the program. As an example, a language runtime may take advantage of NVRAM by identifying program memory that is less likely to be used in the near future and storing the identified program memory in NVRAM rather than directly in RAM. This enables the program to consume less RAM, which is per byte more expensive than NVRAM. The advantage of using the language runtime to trigger these types of paging events is that one does not have to wait for the operating system to realize that these memory regions are not being used often.
Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 License.
"LANGUAGE RUNTIME NON-VOLATILE RAM AWARE SWAPPING", Technical Disclosure Commons, (July 03, 2017)