Dynamic tuning for large-scale parallel applications