Mitigating variability in HPC systems and applications for performance and power efficiency