Energy efficient thermal management of data centers