Skip to content

Job number calculation should take into account the amount of swap space #72

@vgurevich

Description

@vgurevich

The builds became a lot slower on my system after #38 , because now it calculates max jobs to be 3 on my system with 4 CPUs and 16GB of memory.

This would've been the right thing to do if my system lacked swap space (indeed, the build would not even complete), but I did add the swap space and it would be nice to continue using all 4 CPUs by default (it definitely works when building the standard SDE).

The proposal is to read not only to read MemTotal from /proc/meminfo, but also SwapTotal and change the heuristic.

Also, it would probably be better to look for MemTotal explicitly instead of assuming that it is always the first line in /proc/meminfo

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions