Skip to content

GAP can't fork on systems without overcommit #3509

Closed
@ChrisJefferson

Description

For the purposes of this issue, there are two important memory values in GAP:

  • SyAllocPool, set with '-s', sets how much memory space GAP asks the OS for.
  • SyStorMax, set with '-o', sets at what amount of memory we warn about excess memory usage and print a warning.

At the moment GAP always sets SyAllocPool is >= SyStorMax.

This gives a problem since we changed SyStorMax to be 3/4 of physical memory, which sets SyAllocPool to 3/4 of physical memory.

This doesn't mean we actually use 3/4 of physical memory, just we tell the OS we might use it. Then when we fork, we are technically using 1.5x physical memory, except again we aren't because (a) most of it is identical and the OS doesn't duplicate identical pages, and (b) most of it is unused.

HOWEVER, you an enable an option which ensures the OS never promises memory it can't give out later, and if you enable that GAP can't fork, which means it can't run external processes.

Travis seems to have some kind of limit against excessive overcommit, from what we can tell, which is causing some travis tests to fail.

My tempted fix to this is to stop making SyAllocPool be >= SyStorMax, and set it back by default to 2g, which was it's default in previous versions. This should, I believe, not make any significant difference to users.

However, I thought I'd write down the issue and see if anyone had any comments.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    kind: enhancementLabel for issues suggesting enhancements; and for pull requests implementing enhancementstopic: kernel

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions