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. November 15th, 2011 at 19:04 | #1

    Unbelievable! I was running into this issue using Mac OS X 10.7.2 (Lion) when copying files from my mac to my windows 7 PC. Finder gave me Error 36 all the time when copying big files!
    Check this Thread for detailed info!
    https://discussions.apple.com/message/16660147
    Thank you a 100 times!

  2. Mark
    November 15th, 2011 at 21:27 | #2

    +1… thanks!

  3. XSeb74
    November 25th, 2011 at 04:16 | #3

    Great thanks !

  4. November 28th, 2011 at 05:53 | #4

    We (have to) use this fix with every new install.

    Thanks a million!

  5. Doug
    November 30th, 2011 at 11:56 | #5

    Thank you, thank you. This issue hit me when I upgraded my home network to gigabit. Silly MS.

  6. December 12th, 2011 at 09:28 | #6

    Thanks a lot for the solution. It gave me headaches.
    Regards,

  7. Michael
    January 3rd, 2012 at 13:09 | #7

    OMG….THANK YOU! totally worked for me…now OSX 10.6.8 and 10.7.2 both see SMB network shares from Vista64 machines. I thought SMB was not included with Lion, but EVERYTHING WORKS!!!

  8. January 5th, 2012 at 15:03 | #8

    Excellent! Just what I needed. Thanks!

  9. Tom
    January 13th, 2012 at 10:39 | #9

    You the man!!!! Thanks for the timely tip – saved me hours of heartburn….Tom

  10. astromb
    January 15th, 2012 at 09:47 | #10

    Thanks a lot ! It’s works now !

  11. Sammaye
    January 21st, 2012 at 06:01 | #11

    This also works for: “(12)Cannot allocate memory: file permissions deny server access:”

    When sharing your Windows share with Apache as its DocumentRoot. Can’t believe Microsoft wouldn’t put those key values in by default.

    Thanks.

  12. January 23rd, 2012 at 15:10 | #12

    Cheers! Saved my sanity.

  13. Anand kumar
    January 28th, 2012 at 22:53 | #13

    Thanks for archiving the answer; it worked! In my case, I was running Snow Leopard inside VirtualBox from a Windows 7 host.

    For those of you too lazy like me to restart the computer for the registry to take effect, try this:
    After making the registry changes mentioned here just go to Start–>Administrative Tools–>Services
    From here restart the service called “Server”. It will ask you to confirm if you want to restart a bunch of other services. Just say ‘yes’ and, voila! Laziness lives another day!

  14. February 2nd, 2012 at 12:10 | #14

    Awesome post! I’m linking!

  15. February 2nd, 2012 at 14:13 | #15

    I hope this can work for my Win 7 pro trying to act as a file server but under the Memory Mnagement path there are only 2 entries: Perfect Paramets & Store Parameters. Do I need to creat LargeSystemCache entry myself? If what type?

  16. Jason D
    February 6th, 2012 at 10:01 | #16

    +1 SEO, because this is (so far) working for me (15/80GB done).

    Just for the flavor, I hit this for the 1st step of turning my ubuntu install into a VM. booted ubuntu live cd to do “dd if=/dev/sda1 of=/wherever/winderz_mount/part1.img”

  17. March 7th, 2012 at 03:34 | #17

    FANTABULOUS!

    I just received a brand new laptop / first time I have used Windows 7 and the first task was to back up a whole load of files from my workstation – Tried XCopy / no good, tried RoboCopy / same probs.. then, after a little googling came across your tip: MAGIC!

    Well Done!!

  18. March 13th, 2012 at 01:31 | #18

    +1 Thanks a lot i’ve been experiencing it for a week Then Hwala!! it works perfectly fine!

  19. Alfa55
    March 25th, 2012 at 12:29 | #19

    I’ve had these problems with Vista workstations with one used as a server, eversince 2-2009 and , used this fix with the Smb in the registry but with the settings on the client side:
    switching to SMB1.0

    sc config lanmanworkstation depend= bowser/mrxsmb10/nsi
    sc config mrxsmb20 start= disabled

    or switching to SMB2.0
    sc config lanmanworkstation depend= bowser/mrxsmb10/mrxsmb20/nsi
    sc config mrxsmb20 start= auto

    But now since 1-2012 I got the event 2012 and 2017 again. The effect was that when accessing a networkmap it all went right, however access via UNC-paths gave timeouts.
    After serveral minutes connection was enabled again. This could change several times a day and usually it cured itselfs after a few minutes.

    After reversing the settings to SMB2.0 all went as it schould!

    Also had a problem like this with a W2K8R1 server and W7 pro clients, with a even greater problem while one app with a ancient database refused to work with SMB2 and anotherone refusing to work with SMB1, this needed a complex cure while after adjusting the SMB the networkspeed decreased more than 10-fold.

  20. Ste R
    April 2nd, 2012 at 07:45 | #20

    Thanks for this fix – worked a treat to stop my iMac losing connection to my Windows 7 box when transferring a large number of files. However, I’m wondering if it’s possible to further tweak the registry to optimise it?

    Prior to making this change I was able to transfer between the two at approximately 50MB/s, but the connection would drop after a few minutes. Now, the connection is solid and I’ve not experienced the drop-out, however my transfer speed was topping out around 30MB/s and drops down to 6-8MB/s at times.

    Both NICs and my switch support jumbo frames so I’ve increased the MTU to 9K. I’m now playing around with the following registry key:

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\LanmanServer\Parameters\SizeReqBuf

    http://blogs.msdn.com/b/openspecification/archive/2009/04/10/smb-maximum-transmit-buffer-size-and-performance-tuning.aspx

    I’ve just added the key and set it to the default server OS value of ~16,000. This seems to have made transfer speed much more constant around the 35MB/s mark. I plan to increase it to the maximum ~65K (hex 0x0000ffff) to see if that brings a further improvement. I’ll report back :)

  21. gilbomat
    April 2nd, 2012 at 13:37 | #21

    Thanks a lot! I was about to smash everything… ;)

  22. tyabnet
    April 8th, 2012 at 00:13 | #22

    I have been running a home server for many ears. I ran into this issue back when it was XP, then when it was vista, and now with Win 7. I would run into this issue anytime I would try and xfer a large directory (over 1000 files) or when I would try and xfer a 2+gig file across the gigabit network. I just finished building a new home server (using win7 ultimate) with 8x3TB drives in a raid 6 using an LSI 9265-8i card and I still ran into it. Glad I found this link, for me it was the size parameter, setting that to 3 and those same directories/files now copy flawlessly. Previously I had to break up the file copy into chunks – drove me crazy.

  23. Trond Reitan
    April 10th, 2012 at 06:14 | #23

    We run into the problem at a medical office when installing a win7 (workstation as server for 3 PCs). One of the 3 PCs was running Win XP and caused big problems. The other 2 is running Win7 without trouble.
    After this fix alle the machines are now running perfectly!

    Thank You!

  24. April 12th, 2012 at 07:39 | #24

    i get this error, usually not during the day. there are no other computers on the network right now (i just moved furniture around) and still get that error. usually happens at night, in a group, like 35 errors in a row. the weird thing is, they do not limit my speed or access in any way. i still get 11 megs a second. no errors. im wondering how harmful this error is to the system health (it is the only error i get, uptime now 16 weeks :)

  25. Darkhalf
    April 24th, 2012 at 16:25 | #25

    You, sir, are my hero.

  26. Ebayzo
    May 3rd, 2012 at 10:17 | #26

    Hero! I experienced problems with my SMB shares constantly refusing to reconnect on my Mediaplayers (Apple and some other brand) with my Windows 7 fileshare. Sometimes it worked, sometimes it didnt and a reboot of the Windows 7 fixed it. After checking the eventlog finally i saw these errors and your post. Thumbs up!

  27. Remiz
    May 10th, 2012 at 10:10 | #27

    once again a blog post saves my day and avoided me tons of headaches… Maybe one day all the different OS will communicate without having to tweak the registry. Thanks for the tips, that was really annoying.

  28. Mike P
    May 15th, 2012 at 11:12 | #28

    Dude, thank you for your time and detail with this issue. If you are ever in Philly drinks are on me!

  29. dmx
    May 18th, 2012 at 07:09 | #29

    This also fixes OS X clients accessing Windows 7 64bit machines. (Maybe Windows 7 has this problem with all with SMB 1.0 clients?)

  30. May 22nd, 2012 at 17:38 | #30

    Worked a treat with Windows 7 and CentOs Virtual Machine.

  31. dr.slammer
    May 30th, 2012 at 07:09 | #31

    Copy the following text into notepad.
    Save as 2017-fix.reg …… make sure the extension is .reg
    Double-click, add to registry….. done..

    —————————————
    Windows Registry Editor Version 5.00

    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\LanmanServer\Parameters]
    “Size”=dword:00000003

    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management]
    “LargeSystemCache”=dword:00000001
    —————————————

  32. Drew Martell
    June 4th, 2012 at 06:49 | #32

    Copy dr.slammer’s reg file and run it. I just manually typed it all but almost didn’t notice the small ‘s’ on services which the author put as a capital.

  33. crodrigz
    July 16th, 2012 at 21:34 | #33

    Thanks a million..this explains why my WD Live TV streaming device would sometimes have problems finding the shared drive with my movies

  34. July 24th, 2012 at 03:23 | #34

    Many-many thanks….!

  35. Kerry Thompson
    July 31st, 2012 at 15:55 | #35

    In my poking around, I’ve seen evidence that the LargeSystemCache key is a placebo in Windows 7. See this link, for example, in which a Microsoft employee makes that assertion.

  36. Ajos1
    August 2nd, 2012 at 09:59 | #36

    Strangely this error has just started in the last week… now I am saved!

  37. Dean
    August 2nd, 2012 at 19:04 | #37

    Alan, I just had this problem, Google’d the event log description, found this page (top of list) and the solution worked PERFECTLY. You’re a champion!!!

  38. Aerus
    August 27th, 2012 at 10:53 | #38

    This worked! I can’t believe I stumbled around for two months looking for a solution before finding this page. Thank you so much!!!

  39. August 28th, 2012 at 06:39 | #39

    I’m anoher soul saved by your solution :)

  40. whoppe
    August 31st, 2012 at 12:01 | #40

    Wow, that’s powerful stuff. Thanks for sharing, found your article, performed regedit and restarted service in less than 5 minutes. Definitely one for the ever growing bag of tricks.

  41. September 3rd, 2012 at 01:25 | #41

    Thanks a mill for this. Been banging my head against the wall over this for weeks.
    Strangely, it is identical to another networking problem we had on our server, but I didn’t twig ‘cos the presenting symptoms were different (that one was open folders suddenly vanishing).
    But when I saw “2017” I thought “hmm, I remember that…”.
    Fixed.

  42. Jordan Dunne
    September 18th, 2012 at 21:02 | #42

    Perfect! Got my Apple TV 2 (ATV2) to work with XBMC to watch shows off my Seagate External Drive.

  43. b02z
    September 20th, 2012 at 02:30 | #43

    Thanks!!!!!!! I had the same Problem with access from winxp clients to the win7 share. After a while (one day or less) i could not access to the share. access wit win7 clients worked well. I saw these 2017 Errors on my win7 file server. Thanks to google and thanks to you!! after i changed the two registery key it worked again without a restart! Thaaaaankkss!!!!

  44. Rob
    September 26th, 2012 at 12:45 | #44

    Thank you for this. You’ve saved a lot of hassle and fixed an issue for us. Much appreciated.

  45. Rama
    October 19th, 2012 at 09:11 | #45

    THANK YOU so MUCH!!! This “fix” worked perfectly! I’m grateful that you posted it! Thanks again. This worked with Win 7 Pro owning shares and Win XP Pro accessing those shares.

  46. Foxdie
    October 22nd, 2012 at 12:34 | #46

    Just wanted to say another +thanks, this helped solve this same issue I had on my home media pc. Very grateful :)

  47. Samlej
    October 24th, 2012 at 14:38 | #47

    I can’t believe how much this saved me. My client got a Win7 box that I set up as a simple file server. Permissions were setup correctly but everyone kept getting disconnected from the mapped network share. The errors they were getting said “Not enough server storage is available to process this command”. I’ve been nearly fired and felt incompetent.

    With this fix (after checking the error logs on the server), I’m a hero again. Woohoo!

  48. October 30th, 2012 at 21:16 | #48

    Hey dude this worked for me. When connecting from Android and iPhone, Win 7 shares sometimes worked, sometimes not. With the fix you mentioned, its been smooth sailing so far. Thank you!

  49. Christian
    November 9th, 2012 at 10:15 | #49

    The registry tweak really works.
    Those registry key values are set that way by default in Win 2008 R2.
    THANK YOU for sharing the tip

  50. ctny
    November 9th, 2012 at 21:08 | #50

    I have used your tip for Windows 7 for a while. I am on Windows 8 now, do the same steps still apply? In fact, I can’t find this key in step 2.

    HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters\Size

Comment pages
  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
  30. June 14th, 2013 at 09:04 | #30
  31. July 14th, 2013 at 13:35 | #31
  32. September 6th, 2013 at 07:52 | #32
  33. September 6th, 2013 at 09:13 | #33
  34. October 28th, 2013 at 04:36 | #34
  35. January 16th, 2014 at 20:13 | #35
  36. February 19th, 2014 at 13:35 | #36
  37. February 21st, 2014 at 11:10 | #37
  38. September 9th, 2014 at 02:16 | #38
  39. September 20th, 2014 at 09:40 | #39