tune thread pool in sample runtime