简体   繁体   English

为什么我的程序在64 GB RAM系统上占用的RAM不超过2 GB?

[英]Why my program does not take more than 2 GB RAM on 64 GB RAM System?

I am trying to train a Dlib's train_shape_predictor_ex.cpp with Halen dataset. 我正在尝试使用Halen数据集训练Dlib的train_shape_predictor_ex.cpp I compiled the code with Visual Studio in release mode for 64-bit plateform as console application . 我在release mode使用Visual Studio将代码编译为64-bit plateform作为console application

When I run the train_shape_predictor_ex.exe in command prompt, the executed process started and I saw in Task Manager that memory consumption by this process was increasing but it was stopped till around 1.9 GB and gave a Run-time Exception: bad allocation . 当我在命令提示符下运行the train_shape_predictor_ex.exe时,已执行的进程开始了,我在Task Manager中看到该进程的内存消耗正在增加,但直到1.9 GB左右才停止,并给出了运行时异常: 分配错误 It is unable to take more RAM than around around 1.9 GB RAM even My system is 64 GB RAM 即使我的系统是64 GB RAM ,也无法占用超过1.9 GB RAM左右的更多RAM。

Can anybody help me getting solve this problem? 有人可以帮我解决这个问题吗? Thanks in advance ! 提前致谢 !

To build C++ Application which can consume Physical memory than normal 32-Bit application(means 2GB), It is needed to built the application in 64-bit mode. 要构建比普通的32位应用程序(平均2GB)消耗更多物理内存的C ++应用程序,需要以64位模式构建该应用程序。

  • Enable the /LARGEADDRESSAWARE flag to true 启用/ LARGEADDRESSAWARE标志为true
  • Build application for 65-bit target CPU. 为65位目标CPU生成应用程序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM