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

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!
+1… thanks!
Great thanks !
We (have to) use this fix with every new install.
Thanks a million!
Thank you, thank you. This issue hit me when I upgraded my home network to gigabit. Silly MS.
Thanks a lot for the solution. It gave me headaches.
Regards,
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!!!
Excellent! Just what I needed. Thanks!
You the man!!!! Thanks for the timely tip – saved me hours of heartburn….Tom
Thanks a lot ! It’s works now !
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.
Cheers! Saved my sanity.
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!
Awesome post! I’m linking!
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?
+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”
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!!
+1 Thanks a lot i’ve been experiencing it for a week Then Hwala!! it works perfectly fine!
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.
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
Thanks a lot! I was about to smash everything…
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.
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!
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
You, sir, are my hero.
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!
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.
Dude, thank you for your time and detail with this issue. If you are ever in Philly drinks are on me!
This also fixes OS X clients accessing Windows 7 64bit machines. (Maybe Windows 7 has this problem with all with SMB 1.0 clients?)
Worked a treat with Windows 7 and CentOs Virtual Machine.
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
—————————————
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.
Thanks a million..this explains why my WD Live TV streaming device would sometimes have problems finding the shared drive with my movies
Many-many thanks….!
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.
Strangely this error has just started in the last week… now I am saved!
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!!!
This worked! I can’t believe I stumbled around for two months looking for a solution before finding this page. Thank you so much!!!
I’m anoher soul saved by your solution
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.
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.
Perfect! Got my Apple TV 2 (ATV2) to work with XBMC to watch shows off my Seagate External Drive.
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!!!!
Thank you for this. You’ve saved a lot of hassle and fixed an issue for us. Much appreciated.
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.
Just wanted to say another +thanks, this helped solve this same issue I had on my home media pc. Very grateful
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!
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!
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
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