-
-
Notifications
You must be signed in to change notification settings - Fork 413
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jupyter Lab does not kill spawned workers and deallocate memory when shutdown is issued to Julia kernel #1067
Comments
I did some more testing on Jupyter Lab 3.5.0 and Julia 1.8.5 on Windows 10 works fine. On another Linux machine, I had Jupyter Lab 2.1.0 and Julia 1,6, and all works fine. On the same machine Jupyter Lab 3.5.0 and Julia 1.6, we have output listed at the end after test code
was executed and kernel shutdown was issued (all workers were shutdown correctly):
|
I experience this as well; Running inside a container based on inside jupyter:
MWE:
|
Julia kernel in Jupyter Lab does not kill kernel and deallocate memory when shutdown is issued
I do not know if is this an IJulia i.e. Julia kernel issue or some interplay of Jupyter Lab and Julia kernel, but it's currently a huge productivity issue that is not related to Julia core installation. The problem was tracked down to
using Distributed
in Jupyter Lab with IJulia kernel. Detailed info:
The output of versioninfo()
Julia Version 1.8.5
Commit 17cfb8e65ea (2023-01-08 06:45 UTC)
Platform Info:
OS: Linux (x86_64-linux-gnu)
CPU: 88 × Intel(R) Xeon(R) Gold 6238T CPU @ 1.90GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-13.0.1 (ORCJIT, cascadelake)
Threads: 1 on 88 virtual cores
Julia was installed by downloading
wget https://julialang-s3.julialang.org/bin/linux/x64/1.8/julia-1.8.5-linux-x86_64.tar.gz
in /opt/, unpacked and a symlinked julia -> /opt/julia-1.8.5/bin/julia.
As user, latest minicionda and Juplyter Lab was installed as described (conda-forge etc.)
In Julia, IJulia package was installed, So:
The installed version of Jupyter lab is 3.5.0, for IJulia we have "IJulia" => v"1.24.0"
Launch notebook with Julia 1.8.5 kernel,
Create memory intensive variable and workers and define variable on all of them:
after kernel shutdown is issued workers stay as active processes even if Jupyter Lab is closed.
To be more precise it kills the main kernel but processes
stay alive. As I mentioned this does not happen if I run code in terminal in julia prompt. Our computations utilise around 800GB of RAM per run so this represents a huge issue.
The text was updated successfully, but these errors were encountered: