Software-hardware co-design for energy efficient datacenter computing