Skip to content
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

versioninfo() using maxthreadid misleading? #49753

Open
chriselrod opened this issue May 11, 2023 · 2 comments
Open

versioninfo() using maxthreadid misleading? #49753

chriselrod opened this issue May 11, 2023 · 2 comments

Comments

@chriselrod
Copy link
Contributor

julia> Threads.maxthreadid()
41

julia> Threads.nthreads(:default), Threads.nthreads(:interactive)
(28, 0)

julia> versioninfo()
Julia Version 1.10.0-DEV.1254
Commit b9b8b38ec0 (2023-05-09 20:47 UTC)
Platform Info:
  OS: Linux (x86_64-generic-linux)
  CPU: 28 × Intel(R) Core(TM) i9-9940X CPU @ 3.30GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-14.0.6 (ORCJIT, skylake-avx512)
  Threads: 41 on 28 virtual cores
@Seelengrab
Copy link
Contributor

I get this:

[sukera@tower julia]$ julia -qt 10,1
julia> versioninfo()
Julia Version 1.10.0-DEV.1287
Commit c6fc12c9ee (2023-05-12 14:02 UTC)
Platform Info:
  OS: Linux (x86_64-pc-linux-gnu)
  CPU: 24 × AMD Ryzen 9 7900X 12-Core Processor
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-15.0.7 (ORCJIT, znver3)
  Threads: 15 on 24 virtual cores

10 threads for the :default threadpool are requested, as well as one for the :interactive threadpool, but versioninfo() reports 15. As far as I can tell, that's due to

--gcthreads=N             Use N threads for GC, set to half of the number of compute threads if unspecified.

introduced in #48600. Not sure how to best query that new information yet, but printing something like Threads: 10 compute, 1 interactive, 5 GC on 24 virtual cores might be nice.

@chriselrod
Copy link
Contributor Author

Ah, yes, I think seeing a breakdown of compute, interactive, and gc threads would be ideal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants