Memory compaction enhancement

1. fix division-by-zero panic while triggering memory compaction via procfs.
2. add a new sysctl for compaction and default is still enabled.