Przeglądaj źródła

Merge pull request #5356 from AttilaVamos/HPCC-10791-fix

HPCC-10791 The default system will not start on a ChromeBook

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 11 lat temu
rodzic
commit
79c71af151
1 zmienionych plików z 8 dodań i 0 usunięć
  1. 8 0
      thorlcr/master/thmastermain.cpp

+ 8 - 0
thorlcr/master/thmastermain.cpp

@@ -640,6 +640,14 @@ int main( int argc, char *argv[]  )
             	// 32 bit OS doesn't handle whole physically installed RAM
                 maxMem = 2048;
             }
+#ifdef __ARM_ARCH_7A__
+            // For ChromeBook with 2GB RAM
+            if (maxMem <= 2048)
+            {
+                // Decrease max memory to 2/3 
+                maxMem = maxMem * 2 / 3; 
+            }
+#endif            
 #endif
 #endif
             gmemSize = maxMem * 3 / 4; // default to 75% of total