Method and system for memory management

The invention discloses a method and a system for memory management. The system and the method for using a Non-Volatile Dual In-Line Memory Module (NVDIMM) is disclosed. The NVDIMM can support two or more access modes. An application can specify which access mode is desired for an address space requested by the application. A Non-Volatile Memory (NVM) governor can store an address mask and the access mode for the address space in an NVM control register. When the application requests read or write access to an address, the NVM governor can compare the requested address with the address masks in the NVM control register, determine the access mode from the access mode corresponding to the matched address mask, and use that access mode to satisfy the request for the address.