Skip to content

CPU Memory Leakage on TPU #1466

Answered by rwightman
zw615 asked this question in Q&A
Sep 14, 2022 · 3 comments · 3 replies
Discussion options

You must be logged in to vote

@zeyuwang615 there is a separate branch for TPU use bits_and_tpu with tested modifications .... I use a launch_xla helper for the multiprocess launching. When using TFDS it is extremely useful to use set LD_PRELOAD=/lib/x86_64-linux-gnu/libtcmalloc.so.4 to hook the malloc calls with tcmalloc which improves the memory allocations significantly the TFDS buffering eats up a LOT of memory, keep workers per process at around 6-8 but no more

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@zw615
Comment options

@zw615
Comment options

Answer selected by zw615
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@zw615
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants