(process) Use clone(CLONE_VM), not fork, on Linux to avoid swap exhaustion

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 7
    • Affects Version/s: 6
    • Component/s: core-libs
    • None
    • b62
    • unknown
    • linux

      On Linux it is possible to use clone with CLONE_VM, but not CLONE_THREAD,
      which is like fork() but much cheaper and avoids swap exhaustion due to momentary
      overcommit of swap space. One has to be very careful in this case to not mutate global
      variables such as environ, but it's worth it.

            Assignee:
            Michael McMahon
            Reporter:
            Michael McMahon
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: