zsim shmget出现shmget:Invalid argument错误的解决办法
2014-11-20 14:17
507 查看
zsim的问题
最近在弄模拟器,有的模拟器会在初始化时初始一段共享内存,而有的时候这个共享内存区域比较大,为1024MB
出现这个问题的原因是内核SHMMAX变量太小了。
echo 1073741824 > /proc/sys/kernel/shmmax
最近在弄模拟器,有的模拟器会在初始化时初始一段共享内存,而有的时候这个共享内存区域比较大,为1024MB
<span style="font-family: Arial, Helvetica, sans-serif; background-color: rgb(255, 255, 255);">这时由于我的ubuntu机器的限制,就不能够申请成功,返回值是shmget: Invalid argument</span>
出现这个问题的原因是内核SHMMAX变量太小了。
echo 1073741824 > /proc/sys/kernel/shmmax
相关文章推荐
- 消息队列函数 msgsnd 出现Invalid argument错误的解决办法
- shmget出现Invalid argument错误
- adobe reader运行时出现“Invalid plugin detected”错误的解决办法
- [BAT] 执行xcopy命令后出现Invalid num of parameters错误的解决办法
- 关于VS2008发布网站出现错误HRESULT:0x80070057 (E_INVALIDARG)的解决办法
- 执行xcopy命令后出现Invalid num of parameters错误的解决办法
- silverlight API的网络分析出现错误(invalid context)的解决办法
- Oracle客户端工具出现“Cannot access NLS data files or invalid environment specified”错误的解决办法
- 执行xcopy命令后出现Invalid num of parameters错误的解决办法
- Oracle客户端工具出现“Cannot access NLS data files or invalid environment specified”错误的解决办法
- opencv中关于图像图像处理时出现Bad argument (Array should be the cvMat or IplImage) in unknown function ……错误的解决办法
- VC命令行编译中出现Invalid switch错误的解决办法
- Android开发中遇到的问题(五)——Eclipse导入Android项目出现"Invalid project description overlaps the location of another project"错误的解决办法
- 真机测试时出现The executable was signed with invalid entitlements.错误,解决办法
- 安卓真机调试出现Installation failed due to invalid APK file!错误的解决办法
- shmget出现Invalid argument错误
- Android开发中遇到的问题(五)——Eclipse导入Android项目出现"Invalid project description overlaps the location of another project"错误的解决办法
- uWsgi 出现emperor-tyrant invalid permissions for vassal xxx.ini 错误解决办法
- 关于delphi软件运行出现Invalid floating point operation的错误的解决办法
- VC命令行编译中出现Invalid switch错误的解决办法