Home > Tech, Windows > Windows 7 Nonpaged Pool Srv Error 2017

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

  1. thksdude
    November 11th, 2012 at 17:22 | #1

    HEy thanks for this. had the same problem trying to back up my webserver using rsync.

  2. November 17th, 2012 at 14:50 | #2

    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.

  3. November 17th, 2012 at 14:58 | #3
  4. December 3rd, 2012 at 14:31 | #4

    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 :)

  5. anon
    December 14th, 2012 at 12:21 | #5

    Worked for me (CentOS 6.3 to Win7 Enterprise SP1). Kudos to you for you detective work!

  6. Thomas
    January 2nd, 2013 at 04:39 | #6

    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!

  7. Jim
    January 14th, 2013 at 12:59 | #7

    Excellent help, thanks a lot!!!

  8. Bill
    January 16th, 2013 at 03:17 | #8

    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!

  9. John Molenaar
    January 21st, 2013 at 15:33 | #9

    Works like a charm. It seems like a completely normal parameter to adjust … once you know how. Thanks so much posting this helpful fix.

  10. February 12th, 2013 at 15:05 | #10

    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!

  11. tumcoat
    February 23rd, 2013 at 03:12 | #11

    Thanks! Your article helps to me!

  12. Tom Claunch
    March 6th, 2013 at 09:32 | #12

    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.

  13. Tom Claunch
    March 6th, 2013 at 10:05 | #13

    @Tom Claunch

    Never Mind. I got it worked out.

  14. bogg
    March 26th, 2013 at 13:35 | #14

    This registry hack worked perfectly.

    Thank you very much!

  15. Rick
    March 27th, 2013 at 15:11 | #15

    THANK YOU!!!!!
    Saved me hours of tinkering with network configurations and a huge headache!

  16. joe_li26
    April 5th, 2013 at 14:23 | #16

    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.

  17. Shawn
    April 22nd, 2013 at 17:40 | #17

    Thanks for sharing…

Comment pages
1 2 3 4 444
  1. July 21st, 2010 at 13:24 | #1
  2. August 3rd, 2010 at 03:46 | #2
  3. August 5th, 2010 at 17:33 | #3
  4. October 16th, 2010 at 14:21 | #4
  5. November 13th, 2010 at 12:39 | #5
  6. December 13th, 2010 at 06:46 | #6
  7. January 12th, 2011 at 10:38 | #7
  8. January 14th, 2011 at 06:41 | #8
  9. January 27th, 2011 at 02:16 | #9
  10. January 27th, 2011 at 19:40 | #10
  11. February 6th, 2011 at 08:50 | #11
  12. March 3rd, 2011 at 07:11 | #12
  13. April 10th, 2011 at 11:22 | #13
  14. April 20th, 2011 at 05:34 | #14
  15. July 10th, 2011 at 17:13 | #15
  16. October 2nd, 2011 at 08:21 | #16
  17. November 7th, 2011 at 14:30 | #17
  18. January 21st, 2012 at 09:02 | #18
  19. February 15th, 2012 at 09:31 | #19
  20. February 26th, 2012 at 08:34 | #20
  21. March 20th, 2012 at 05:45 | #21
  22. June 27th, 2012 at 09:58 | #22
  23. July 7th, 2012 at 23:53 | #23
  24. July 23rd, 2012 at 07:22 | #24
  25. October 27th, 2012 at 10:54 | #25
  26. November 23rd, 2012 at 01:40 | #26
  27. February 12th, 2013 at 23:07 | #27
  28. March 9th, 2013 at 04:56 | #28
  29. April 21st, 2013 at 09:45 | #29