Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-9419

Log a warning if GPU isolation is enabled but LinuxContainerExecutor is disabled

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.3.0, 3.2.2
    • None
    • None
    • Reviewed

    Description

      A WARN log should be added at least (logged once on startup) that notifies the user about a potentially offending configuration: GPU isolation is enabled but LCE is disabled.

      I think this is a dangerous, yet valid configuration: As LCE is the only container executor that utilizes cgroups, no real HW-isolation happens if LCE is disabled. 

      Let's suppose we have 2 GPU devices in 1 node:

      1. NM reports 2 devices (as a Resource) to RM
      2. RM assigns GPU#1 to container#2 that requests 1 GPU device
      3. When container#2 is also requesting 1 GPU device, RM is going to assign either GPU#1 or GPU#2, so there's no guarantee that GPU#2 will be assigned. If GPU#1 is assigned to a second container, nasty things could happen.

      Attachments

        1. YARN-9419.001.patch
          3 kB
          Andras Gyori
        2. YARN-9419.002.patch
          3 kB
          Andras Gyori
        3. YARN-9419.003.patch
          3 kB
          Andras Gyori
        4. YARN-9419.branch-3.2.001.patch
          3 kB
          Andras Gyori

        Activity

          People

            gandras Andras Gyori
            snemeth Szilard Nemeth
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: