<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>alan.lamielle.net &#187; file server</title>
	<atom:link href="http://alan.lamielle.net/tags/file-server/feed" rel="self" type="application/rss+xml" />
	<link>http://alan.lamielle.net</link>
	<description>Alan LaMielle</description>
	<lastBuildDate>Fri, 16 Sep 2011 16:50:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Windows 7 Nonpaged Pool Srv Error 2017</title>
		<link>http://alan.lamielle.net/2009/09/03/windows-7-nonpaged-pool-srv-error-2017</link>
		<comments>http://alan.lamielle.net/2009/09/03/windows-7-nonpaged-pool-srv-error-2017#comments</comments>
		<pubDate>Thu, 03 Sep 2009 15:57:30 +0000</pubDate>
		<dc:creator>Alan LaMielle</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[cifs]]></category>
		<category><![CDATA[event id 2017]]></category>
		<category><![CDATA[file server]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[media center]]></category>
		<category><![CDATA[mount]]></category>
		<category><![CDATA[mount error]]></category>
		<category><![CDATA[nonpaged pool]]></category>
		<category><![CDATA[registry]]></category>
		<category><![CDATA[samba]]></category>
		<category><![CDATA[smb]]></category>
		<category><![CDATA[srv]]></category>
		<category><![CDATA[windows 7]]></category>
		<category><![CDATA[windows 7 media center]]></category>

		<guid isPermaLink="false">http://alan.lamielle.net/?p=444</guid>
		<description><![CDATA[I&#8217;m using my Windows 7 machine as a file server in addition to it being my Media Center. I&#8217;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 [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m using my Windows 7 machine as a file server in addition to it being my Media Center. I&#8217;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.<br />
<span id="more-444"></span><br />
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:</p>
<p><code>mount error(12): Cannot allocate memory<br />
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)</code></p>
<p>After checking the Event Viewer System log, I found the following error:</p>
<p><code>Source: srv<br />
Event ID: 2017<br />
Level: Error<br />
The server was unable to allocate from the system nonpaged pool because the server reached the configured limit for nonpaged pool allocations.</code></p>
<p>Some research led me to find this <a class="vt-p" href="http://groups.google.com/group/microsoft.public.windows.vista.networking_sharing/browse_thread/thread/345de3116d959664/ea091e5eb4a647ba?lnk=raot">Google Groups discussion</a> about the problem and this <a class="vt-p" href="http://technet.microsoft.com/en-us/sysinternals/bb897446.aspx">Microsoft Technet article</a> 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 &#8217;1&#8242;:</p>
<p><code>HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\LargeSystemCache</code></p>
<p>and set the following registry key to &#8217;3&#8242;:</p>
<p><code>HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters\Size</code></p>
<p>After making these changes and restarting, I haven&#8217;t seen this issue arise again.  Fixed!</p>
<p><strong>Update </strong>(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: <a class="vt-p" href="http://www.decuslib.com/decus/vmslt99a/nt/tips.txt">http://www.decuslib.com/decus/vmslt99a/nt/tips.txt</a></p>
]]></content:encoded>
			<wfw:commentRss>http://alan.lamielle.net/2009/09/03/windows-7-nonpaged-pool-srv-error-2017/feed</wfw:commentRss>
		<slash:comments>144</slash:comments>
		</item>
	</channel>
</rss>

