浏览代码

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 年之前
父节点
当前提交
79c71af151
共有 1 个文件被更改,包括 8 次插入0 次删除
  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