New method to detect total available RAM on the building machine#1623
New method to detect total available RAM on the building machine#1623boegel merged 32 commits intoeasybuilders:developfrom
Conversation
|
Automatic reply from Jenkins: Can I test this? |
easybuild/tools/systemtools.py
Outdated
easybuild/tools/systemtools.py
Outdated
|
@boegel: Done. |
|
@valtandor: are you up for writing a simply unit test for this (in Just something that checks whether a non-zero memory size is returned on Linux, and raises the exception on Darwin? If not, that's fine, I can help with that. Where are you planning to use this? Maybe also add it to |
|
@boegel: This was used in the NWChem EasyBlock that I wrote. Part of the compilation involves trying to get the amount of available system memory. If Where do the unit tests go? |
|
In Unit tests for functions in Take a look at the |
|
Jenkins: ok to test |
|
EasyBuild framework unit test suite PASSed (see https://jenkins1.ugent.be/job/easybuild-framework-pr-builder/2730/console for more details). This pull request is now ready for review/testing. Please try and find someone who can tackle this; contact @boegel if you're not sure what to do. |
|
EasyBuild framework unit test suite PASSed (see https://jenkins1.ugent.be/job/easybuild-framework-pr-builder/2746/console for more details). This pull request is now ready for review/testing. Please try and find someone who can tackle this; contact @boegel if you're not sure what to do. |
|
EasyBuild framework unit test suite PASSed (see https://jenkins1.ugent.be/job/easybuild-framework-pr-builder/2765/console for more details). This pull request is now ready for review/testing. Please try and find someone who can tackle this; contact @boegel if you're not sure what to do. |
|
@valtandor: please take a look at valtandor#2, which updates this PR a bit (implement support for Darwin + enhances tests) |
| """ | ||
| Try to ascertain this node's total memory | ||
|
|
||
| @return: total memory as an integer, specifically a number of megabytes |
There was a problem hiding this comment.
If possible, it would be nice, if there was the ability to tune things from the outside about this, such as $BC_MEM_PER_NODE:
http://centers.hpc.mil/consolidated/bc/policies.php?choice=environment
The meaning of this is to be able to modify builds behavior dynamically, by adjusting such a variable.
There was a problem hiding this comment.
If we do that, we should do it consistently (also for other system features), and it should be well documented which environment variables EB picks up on...
So, not in this PR.
|
@valtandor ping on merging valtandor#2 in here? |
split up tests for get_total_memory, fix implementation on Darwin
|
EasyBuild framework unit test suite FAILed. See https://jenkins1.ugent.be/job/easybuild-framework-pr-builder/2868/console for more details. Please fix the reported issues by pushing additional commits to the branch corresponding with this pull request; contact @boegel if you're not sure what to do. |
|
EasyBuild framework unit test suite FAILed. See https://jenkins1.ugent.be/job/easybuild-framework-pr-builder/2869/console for more details. Please fix the reported issues by pushing additional commits to the branch corresponding with this pull request; contact @boegel if you're not sure what to do. |
|
Jenkins: test this please |
|
EasyBuild framework unit test suite FAILed. See https://jenkins1.ugent.be/job/easybuild-framework-pr-builder/2922/console for more details. Please fix the reported issues by pushing additional commits to the branch corresponding with this pull request; contact @boegel if you're not sure what to do. |
|
@valtandor broken test is fixed by valtandor#3, let's get this merged... |
fix mocking of 'sysctl -n hw.memsize' in systemtools tests
|
EasyBuild framework unit test suite PASSed (see https://jenkins1.ugent.be/job/easybuild-framework-pr-builder/2924/console for more details). This pull request is now ready for review/testing. Please try and find someone who can tackle this; contact @boegel if you're not sure what to do. |
|
Going in, thanks @valtandor! |
Required by easybuilders/easybuild-easyblocks#834