various fixes
Substract only 15% from TM heap for yarn, capped at 500MB