Replace smallest with committed
Change *_allocated to free_*
Account manually for workers in use
Account for committed resources