mm: move most file-based accounting to the node