Skip to content

Default number of mining threads #26

@jleni

Description

@jleni

The current implementation uses:

thread_count = std::thread::hardware_concurrency();

This is not optimal. For example, HT threads can affect this value. Ideally, the default should be based on cache size, etc.

The current code already has hwloc as a dependency. This library provides most of that tools that would be necessary to improve the default value. The following can server as a guide:

https://github.com/open-mpi/hwloc/blob/9b57ec9d780a05cf08432fe478722d274aa2e8a5/doc/examples/hwloc-hello.c#L107

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