Multi-Level Methodology For Pmem Data Consistency