Understanding compaction