Efficient management of idleness in systems