mount CIFS return ERR -12 and report Cannot allocate memory

When I mount CIFS on board, it encountered error as below:

# mount -t cifs //192.168.1.28/98share /tmp -o user=name,pass=code
CIFS VFS: Send error in SessSetup = -12
mount: mounting //192.168.1.28/98share on /tmp failed: Cannot allocate memory

The OS of remote PC is WIN7.

Get the solution from internet,  it says:

Modify the register:

Set “HKLM_LOCAL_MACHINESYSTEMCurrentControlSetControlSession ManagerMemory ManagementLargeSystemCache” to “1″.
Set “HKLM_LOCAL_MACHINESYSTEMCurrentControlSetServicesLanmanServerParametersSize” to “3″.

And then restart the PC.

You'll find it works.

原文地址:https://www.cnblogs.com/yxwkf/p/5215146.html