win7 mount到Linux下无法分配内存的问题(Cannot allocate memory)

如题,我在win7系统下共享目录,mount到linux下,进行编译或者某些操作,出现Cannot allocate memory提示。

修改以下两个键值,然后重启server服务,可以解决这个问题:

打开注册表 regedit

(1)如果这个键值没有,则创建:

HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlSession ManagerMemory ManagementLargeSystemCache  为 “1″.

键值类型为DWORD

(2)
HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesLanmanServerParametersSize 为 “3″.

(3)services.msc,找到server服务,停止然后启动,即可生效。当然你重启机器也可以。

原文地址:https://www.cnblogs.com/solohac/p/4154169.html