Use -K option to restrict the amount of memory used in tests #959
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
At the moment, the default value of
-K
option, which limits the amount of memory available to GAP, is zero. This means that it is limited only by the operating system (more precisely, whether the build is 32 or 64-bit).Dealing with #896, I observed that this has the following effect on regression tests. The tests are started with
-o 1g
option, which specifies when to trigger the break loop withError, reached the pre-set memory limit (change it with the -o command line option)
message. When GAP continues to the next command, the workspace grows, and in a case of a test where this may happen several times, this becomes a problem which we observe on our Jenkins slaves (for example, running 4 tests concurrently on a slave with 12 GB RAM).This pull requests will make use of
-K 2g
option in all tests invoked viamake test<something>
. This will be enough to not to interrupt the test completely when the limit of 1g is hit, but will prevent test workspaces from growing to giant sizes.