Fast, byte-addressable non-volatile memory (NVM) embraces both near-DRAM latency and disk-like persistence, which has generated considerable interests to revolutionize system software stack and programming models. However, it is less understood how NVM can be combined with managed runtime like Java virtual machine (JVM) to ease persistence management. This paper proposes Espresso 1 , a holistic extension to Java and its runtime, to enable Java programmers to exploit NVM for persistence management with high performance. Espresso first provides a general persistent heap design called Persistent Java Heap (PJH) to manage persistent data as normal Java objects. The heap is then strengthened with a recoverable mechanism to provide crash consistency for heap metadata. Espresso further provides a new abstraction called Persistent Java Object (PJO) to provide an easy-to-use but safe persistence programming model for programmers to persist application data. Evaluation confirms that Espresso significantly outperforms state-of-art NVM support for Java (i.e., JPA and PCJ) while being compatible to data structures in existing Java programs. CCS Concepts • Hardware → Non-volatile memory; • Software and its engineering → Runtime environments; 1 Espresso coffee contains more non-volatile chemicals (such as caffeine);
Recently, Espresso REF extends Java and its runtime, enabling the programmer to apply NVM persistency to their applications.
Espresso: Brewing Java For More Non-Volatility with Non-volatile Memory
ASPLOS '18
Computer Science