Windows 7 Nonpaged Pool Srv Error 2017
I’m using my Windows 7 machine as a file server in addition to it being my Media Center. I’m mounting a Samba (smb) share using CIFS from my Linux server so I can synchronize files using rsync. However, I ran into a problem after using the mounted share for a small amount of time. I found a simple solution after a bit of research.
After running rsync for a short amount of time, I discovered that I was getting memory allocation errors related to the Windows share. After unmounting, I attempted to remount the share and received the error:
mount error(12): Cannot allocate memory
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
After checking the Event Viewer System log, I found the following error:
Source: srv
Event ID: 2017
Level: Error
The server was unable to allocate from the system nonpaged pool because the server reached the configured limit for nonpaged pool allocations.
Some research led me to find this Google Groups discussion about the problem and this Microsoft Technet article discussing the solution (look at the bottom of the page). Apparently you need to tell Windows that you want to use the machine as a file server and that it should allocate resources accordingly. Set the following registry key to ’1′:
HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\LargeSystemCache
and set the following registry key to ’3′:
HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters\Size
After making these changes and restarting, I haven’t seen this issue arise again. Fixed!
Update (2011/9/16): I had no idea this fix would end up being so popular when I wrote it up. It is easily the most visited page on this site. The original Technet article seems to be gone now, but a commenter has pointed me to a text file that contains the same content. Here is the link: http://www.decuslib.com/decus/vmslt99a/nt/tips.txt

HEy thanks for this. had the same problem trying to back up my webserver using rsync.
I’m afraid this didn’t solve it for me. I have an iMac and brand new 15-inch MacBook Pro. Both consistently disconnect from my Windows Server. I checked the two registry settings mentioned here and both were already set to the suggested values.
I’m not ruling out issues with my Wireless Access Point just yet, but I’ve seen the same issue when connected through an Ethernet connection.
So frustrated.
This looks promising:
http://www.figured-it-out.com/figured-out.php?sid=6
Wow. This problem was making me pull my hair out. Luckily with the help of google, I came across your thread along with a few others. We’ll see what happens in 5 days when normally my Win 7 machine would not let XP comps get to it’s shared files
Worked for me (CentOS 6.3 to Win7 Enterprise SP1). Kudos to you for you detective work!
Worked like a charm (from Mac OS 1.4 to Win7), also I only needed to restart the “Server” service, not the entire machine. Thanks a lot!
Excellent help, thanks a lot!!!
I have the same error but different cause. I don’t use rsync and I don’t have other machines accessing shares over a network.
I see this error when I am *seriously* loading up my machine with disk IO. If I am running *lots* of virtual machines in vmware workstation, rebooting too many of them at the same time can cause this error for me. The disk array queue length peaks and stays there for a long while and this error gets logged.
I’m kinda hoping that making these reg edits will increase my performance during high disk IO, even if it’s only a little bit.
Thanks for this thread!
Works like a charm. It seems like a completely normal parameter to adjust … once you know how. Thanks so much posting this helpful fix.
Thanks for the tip. I was recently forced to use a Windows 7 server for a small office and the non-paged pool resource error was an ugly problem. I appreciate your fix! Cheers!
Thanks! Your article helps to me!
I do not seem to have a LargeSystemCache folder??? I have a PerfetchParameters and a StoreParameters.
HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\LargeSystemCache
Thanks for your help.
@Tom Claunch
Never Mind. I got it worked out.
This registry hack worked perfectly.
Thank you very much!
THANK YOU!!!!!
Saved me hours of tinkering with network configurations and a huge headache!
this is a nice fixed, it actually turn a window7 machine into a realy file server. I’ve compared the reg key with a windows 2008 r2 with file shareing turn on, it has the same key.
Thanks for sharing…