The current cgroups implementation does not limit YARN containers to the cores allocated in yarn-site.xml.