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

MacBook Pro ARM only 5 threads are used #5318

Open
jianshu93 opened this issue Jan 25, 2022 · 8 comments
Open

MacBook Pro ARM only 5 threads are used #5318

jianshu93 opened this issue Jan 25, 2022 · 8 comments

Comments

@jianshu93
Copy link

Hello data.table team,

I have only 5 threads used after successfully installing and library on my MacBook Pro M1 Pro. Any idea why:

data.table 1.14.2 using 5 threads (see ?getDTthreads). Latest news: r-datatable.com

Thank,

Jianshu

@ben-schwen

This comment was marked as resolved.

@jianshu93

This comment was marked as resolved.

@ben-schwen

This comment was marked as resolved.

@jianshu93

This comment was marked as resolved.

@jangorecki

This comment was marked as resolved.

@jianshu93

This comment was marked as resolved.

@MichaelChirico
Copy link
Member

See the NEWS for 1.12.2:

The number of logical CPUs used by default has been reduced from 100% to 50%. The previous 100% default was reported to cause significant slow downs when other non-trivial processes were also running, #3395 #3298. Two new optional environment variables (R_DATATABLE_NUM_PROCS_PERCENT & R_DATATABLE_NUM_THREADS) control this default. setDTthreads() gains percent= and ?setDTthreads has been significantly revised. The output of getDTthreads(verbose=TRUE) has been expanded. The environment variable OMP_THREAD_LIMIT is now respected (#3300) in addition to OMP_NUM_THREADS as before.

AIUI, generally hoovering up all of the available CPUs without user input is a bad practice.

Probably we should write this up into ?"openmp-utils" since it's not there already...

@jianshu93

This comment was marked as resolved.

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

No branches or pull requests

4 participants