Adding Machine Intelligence to Hybrid Memory Management