Quellcode durchsuchen

HPCC-12709 Allow huge pages to be separately configured for the master

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
Gavin Halliday vor 10 Jahren
Ursprung
Commit
d3c1187c06

+ 7 - 0
initfiles/componentfiles/configxml/thor.xsd.in

@@ -381,6 +381,13 @@
           </xs:appinfo>
         </xs:annotation>
       </xs:attribute>
+      <xs:attribute name="heapMasterUseHugePages" type="xs:boolean" use="optional">
+        <xs:annotation>
+          <xs:appinfo>
+            <tooltip>Allow heapUseHugePages to be overridden for the master.  Useful to disable if running on a single machine.</tooltip>
+          </xs:appinfo>
+        </xs:annotation>
+      </xs:attribute>
       <xs:attribute name="heapUseTransparentHugePages" type="xs:boolean" default="true">
         <xs:annotation>
           <xs:appinfo>

+ 1 - 0
thorlcr/master/thmastermain.cpp

@@ -683,6 +683,7 @@ int main( int argc, char *argv[]  )
                 mmemSize = gmemSize;
         }
         bool gmemAllowHugePages = globals->getPropBool("@heapUseHugePages", false);
+        gmemAllowHugePages = globals->getPropBool("@heapMasterUseHugePages", gmemAllowHugePages);
         bool gmemAllowTransparentHugePages = globals->getPropBool("@heapUseTransparentHugePages", true);
 
         // if @masterMemorySize and @globalMemorySize unspecified gmemSize will be default based on h/w