总是遇到Win7 文件共享报错 提示一般是“存储空间不足,无法处理此命令”
然后网络共享就打不开了要想重新打开需要重新启动 Server服务
虽然一直对windows的cifs共享的可靠性不抱什么希望 不过频繁的断 还是令人刚到郁闷
今天搜索了几篇文章 照着修改了一下自己的系统好像有点效果 正在观察中。。。
现象
客户端提示“存储空间不足,无法处理此命令”
服务器端日志
“服务器无法通过系统非页面共享区来进行分配,因为共享区当前是空的。”
“服务器无法通过系统非页面共享区来进行分配,因为服务器已达非页面共享分配的配置极限。”
修改2个位置
HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory
Management\LargeSystemCache
LargeSystemCache 修改为1
HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters\Size
Size修改为3
官方解释键值作用
LargeSystemCache
Determines whether the system maintains a standard size or a
large size file system cache , and influences how often the system
writes changed pages to disk.
0
Establishes a standard size file-system cache of
approximately 8 MB. The system allows changed pages to remain in
physical memory until the number of available pages drops to
approximately 1,000. This setting is recommended for servers
running applications that do their own memory caching, such as
Microsoft SQL Server, and for applications that perform best with
ample memory, such as Internet Information Services.
1
Establishes a large system cache working set that
can expand to physical memory, minus 4 MB, if needed. The system
allows changed pages to remain in physical memory until the number
of available pages drops to approximately 250. This setting is
recommended for most computers running Windows 2000 Server on large
networks.
简单来说这个和 文件系统缓存有关 它涉及到FS CACHE和系统换页之间的平衡
对于数据库等应用 由于cache由应用自行管理 所以这个值建议不动
对于家用 现在大家内存都很大了 所以我个人认为 大家都应该 设置成1这样提高性能
当然 这个值我个人认为和网络共享好像没啥关系
第二个值的解释
Size entry (which is in the
HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters
subkey)
Option setting
Minimize memory
used1
Balance2
Maximize data throughput for file
sharing3
Maximize data throughput for network applications 3
这个值可能是官方偷懒没写具体机制也可能是我没有找到总之只有建议配置方法
没有详细解释
另外大家还有建议修改一个值
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters\IRPStackSize
我看了一下 这个值和Filesystem Driver 有关我觉得和这个问题没有关系所以没动这个值
=========转============
服务器无法通过系统非页面共享区来进行分配,因为服务器已达非页面共享分配的配置极限。
服务器无法通过系统非页面共享区来进行分配,因为服务器已达非页面共享分配的配置极限。
如何优化 Windows NT 服务器使用注册表
如果觉得《共享文件 服务器存储空间不足 Win7 文件共享报错 存储空间不足 无法处理此命令...》对你有帮助,请点赞、收藏,并留下你的观点哦!