Skip to content

psutil.cpu_count(logical=False) fails to report correct number or even gives None #1404

@pseudotensor

Description

@pseudotensor

On ppc systems, this just gives None, even though (say) the system has 8 hyperthreading cores per physical core and (say) 160 total hyperthreading cores.

Even worse, on x86 systems, it randomly gives 64k as the result. A reboot changes that for the systems affected, but it eventually gets stuck that way again.

Since we were feeding that into a choice of physical cores, this led to major problems for any multi-threaded application (a thread bomb).

Perhaps psutil is not reading the data correctly in all cases, or makes assumptions about the data format that can change.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions