profiler icon indicating copy to clipboard operation
profiler copied to clipboard

How to make profile data returned to local host where tensorboard is running

Open nrobeR opened this issue 3 years ago • 6 comments

Hi, I'm trying to use Tensorboard to profile TF running on a remote host with the commend below: python3 profiler/install_and_run.py --envdir=profile_env --logdir=${datadir} --version=2.5

And grab profile on Tensorboard profile UI with remote host.

But it seems like the profile data is stored in remote host instead of local host where Tensorboard is running. So I have to scp the file from remote to local such that Tensorboard can read it. Is there a way to have the profile data returned back through the Tensorboard gRPC profile call and store the profile data locally? Thanks!

nrobeR avatar Mar 17 '22 00:03 nrobeR

if you are profiling using tensorboard, the design is to save it in tensorboard's logdir parameter, more specifically, under {logdir}/plugin/profile directory.

trisolaran avatar Mar 21 '22 16:03 trisolaran

Just to clarify, I am using tensorboard to grab profile from a remote server. But the profile data is saved in the remote server's {logdir}/plugin/profile instead of on the local host where tensorboard is running. Did I miss something in the config? I didn't find any documentation abou this. thanks!

nrobeR avatar Mar 21 '22 17:03 nrobeR

you are right, we seems to have that issues right now. but the fix will not appear when new tf and profiler plugin release. I will file an internal bug to track it.

trisolaran avatar Mar 21 '22 20:03 trisolaran

Thanks for confirming. Is there an ETA for the fix?

nrobeR avatar Mar 22 '22 05:03 nrobeR

typical setup between TF and TB will share access to the log_dir (network backed file system). so normally this is not an issue for our TF/TB users so far. we will make sure this is handled in next release of TF (i.e. give an option to store it locally). are you using TF nightly?

trisolaran avatar Mar 22 '22 17:03 trisolaran

Thanks! No, we are not using TF nightly. But we can patch your change. Is there a pull request already?

nrobeR avatar May 05 '22 03:05 nrobeR