Dynamic tuning of parallel/distributed applications