Skip to content

Unexpectedly high thread count / CPU usage #46

@pettyalex

Description

@pettyalex

Hello,

We are seeing each parallel worker for Tractor try to use all 64 threads available on the machine:

Image

This feels extremely similar to other R applications we've seen managed with Conda environments, where the default behavior of BLAS implementation you've selected (OpenBLAS) tries to use all of the cores on the machine even when this is very inefficient: weizhouUMICH/SAIGE#380

Is the usage of many cores for each worker intentional or accidental? If accidental, we can fix it using https://cran.r-project.org/web/packages/RhpcBLASctl/index.html or other tools. If intentional, how many threads should we allocate for each worker? 8? 16?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions