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

Support Kernel Samepage Merging (KSM)

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P4 P4
    • 10
    • 7
    • hotspot
    • x86
    • linux_ubuntu

      A DESCRIPTION OF THE REQUEST :
      Since linux kernel version 2.6.32, major distribution have added support to Kernel Samepage Merging (KSM), a way to notify the linux kernel that some memory pages may be shared by different processes.
      While this is reported to be very effective on virtualization environments [1], it may as well bring some benefit on java processes

      [1] http://kernelnewbies.org/Linux_2_6_32#head-d3f32e41df508090810388a57efce73f52660ccb

      JUSTIFICATION :
      KSM support may be justified in the following scenarios:
      - when sysadmins prefer to run each webapp with a separate java process each, in order to better control things like memory leaks and by avoid a domino effect when one webapp crashes
      - when developers run multiple instances of the same IDE (I run two: one for the ruby front-end, one for the java backend)



      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Incase of the same IDE, two different instances should report to consume (for example) 1GB of ram each, while the total amount of memory actually occupied by both should be lower

            Unassigned Unassigned
            alexp Alexander Potochkin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: