Software systems for power and energy conservation