Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6850720

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 7
    • 6
    • 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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: