A long commit for multi-core CMA...
Not fully verified yet...