Closed
Description
I have a simulation (built using the ModelingToolkit ecosystem) that runs in about 1.7 seconds (after warmup). When I profile it with @profile
, however, it hangs. This is with Julia 1.10.7 on Ubuntu 22.04, running with a single thread. Some additional observations:
- Profiling with
Profile.init(; delay)
has never hung for me whendelay
is10.0
,1.0
, or0.1
. - Setting
delay = 0.01
hung once, but the other times I've tried it has worked. But as I only get ~170 samples with this delay, it's not super helpful. - Setting
delay = 0.001
has always hung for me. I haven't tried any smaller delays. - Ctrl-C does not work, so I have to kill the Julia process whenever it happens.
- CPU usage goes to 0.
I unfortunately don't have a MWE for my particular case, but I found #43701 (comment), so I tried out the MWE mentioned there (copied here):
import Pkg
Pkg.update()
using Profile
@profile Pkg.update()
This hangs for me on Julia 1.10.7, both with 1 thread and with 8 threads. (With 1 thread there was one time it did not hang, but the other few times I tried it did hang.) On Julia 1.11.2, this code has never hung for me with 1 thread, but it does hang with 8 threads.
julia> versioninfo()
Julia Version 1.10.7
Commit 4976d05258e (2024-11-26 15:57 UTC)
Build Info:
Official https://julialang.org/ release
Platform Info:
OS: Linux (x86_64-linux-gnu)
CPU: 8 × Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-15.0.7 (ORCJIT, skylake)
Threads: 1 default, 0 interactive, 1 GC (on 8 virtual cores)
Environment:
JULIA_NUM_THREADS = 8
JULIA_PKG_USE_CLI_GIT = true
Metadata
Metadata
Assignees
Labels
No labels