protected String getFileMode() {
    return DiskStoreImpl.SYNC_IF_WRITES ? "rwd" : "rw";
  }
If the ratio of live vs. dead is not less than this constant then no need to compact.
geode-core/src/main/java/org/apache/geode/internal/cache/DiskInitFile.java