<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How does SMB Credits actually work on ONTAP in Network and Storage Protocols</title>
    <link>https://community.netapp.com/t5/Network-and-Storage-Protocols/How-does-SMB-Credits-actually-work-on-ONTAP/m-p/153116#M9349</link>
    <description>&lt;P&gt;Interestingly, on the samba.org, the definitions for both are&amp;nbsp; same:&lt;BR /&gt;&lt;A href="https://www.samba.org/samba/docs/current/man-html/smb.conf.5.html" target="_blank"&gt;https://www.samba.org/samba/docs/current/man-html/smb.conf.5.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;smb2 max credits:&lt;/STRONG&gt;&lt;BR /&gt;This option controls the &lt;U&gt;maximum number of outstanding simultaneous SMB2 operations&lt;/U&gt; that Samba tells the client it will allow. This is similar to the max mux parameter for SMB1. You should never need to set this parameter.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The default is 8192 credits, which is the same as a Windows 2008R2 SMB2 server.&lt;BR /&gt;Default: smb2 max credits = 8192&lt;/P&gt;
&lt;P&gt;NetApp equivalent : -max-credit&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;smb1 max mux:&lt;/STRONG&gt;&lt;BR /&gt;This option controls the &lt;U&gt;maximum number of outstanding simultaneous SMB operations&lt;/U&gt; that Samba tells the client it will allow. You should never need to set this parameter.&lt;BR /&gt;Default: max mux = 50&lt;/P&gt;
&lt;P&gt;NetApp equivalent : cifs.max_mpx&lt;/P&gt;</description>
    <pubDate>Tue, 17 Dec 2019 15:59:23 GMT</pubDate>
    <dc:creator>Ontapforrum</dc:creator>
    <dc:date>2019-12-17T15:59:23Z</dc:date>
    <item>
      <title>How does SMB Credits actually work on ONTAP</title>
      <link>https://community.netapp.com/t5/Network-and-Storage-Protocols/How-does-SMB-Credits-actually-work-on-ONTAP/m-p/153113#M9347</link>
      <description>&lt;P&gt;Dear Community,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since ONTAP 9.4 [1] there is this new CIFS option "-max-credits" with a default of 128.&lt;/P&gt;
&lt;P&gt;According to Microsoft [2] on Windows Servers this defaults to 8192.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The basic of SMB Credits as far as I know is, the server grants the client x-amount of credits, which the client can spend for requests to the server. By limiting the credits it should be possible to cap rouge clients. But how does this work?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What does the configured credit amount actually mean?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is this for a specific timeframe? Is the amount for each client or for the whole Server?&lt;/P&gt;
&lt;P&gt;Will the server grant the credits on client request? What does affect the grant of these credits?&lt;/P&gt;
&lt;P&gt;How can this be monitored?&lt;/P&gt;
&lt;P&gt;How to find out, if the configured max-credits are too high or too low?&lt;/P&gt;
&lt;P&gt;Why has MS set the default to 8192 and NetApp only to 128?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards&lt;/P&gt;
&lt;P&gt;Oliver&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[1] &lt;A href="http://docs.netapp.com/ontap-9/index.jsp?topic=%2Fcom.netapp.doc.cdot-famg-cifs%2FGUID-EC0BFDD6-C1BC-4673-96AB-94D765FE762A.html&amp;amp;resultof=%22-max-credits%22%20" target="_blank" rel="noopener"&gt;http://docs.netapp.com/ontap-9/index.jsp?topic=%2Fcom.netapp.doc.cdot-famg-cifs%2FGUID-EC0BFDD6-C1BC-4673-96AB-94D765FE762A.html&amp;amp;resultof=%22-max-credits%22%20&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[2] &lt;A href="https://docs.microsoft.com/en-us/windows-server/administration/performance-tuning/role/file-server/smb-file-server" target="_blank" rel="noopener"&gt;https://docs.microsoft.com/en-us/windows-server/administration/performance-tuning/role/file-server/smb-file-server&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 12:06:17 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Network-and-Storage-Protocols/How-does-SMB-Credits-actually-work-on-ONTAP/m-p/153113#M9347</guid>
      <dc:creator>OliverD</dc:creator>
      <dc:date>2025-06-04T12:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: How does SMB Credits actually work on ONTAP</title>
      <link>https://community.netapp.com/t5/Network-and-Storage-Protocols/How-does-SMB-Credits-actually-work-on-ONTAP/m-p/153115#M9348</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's a interesting one, I have never tweaked this value, perhaps I didn't even know that it could be useful in certain performance related instances.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From NetApp &amp;amp; MS KBs, I see that similar option was available in SMB_1 as well (max sessions per tcp connection) and in SMB_2, the word 'credit' is coined.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;credit: A value that is granted to an SMB 2 Protocol client by an SMB_2 Protocol server that limits the number of outstanding requests that a client can send to a server.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For SMB_2 : -max-credit&lt;BR /&gt;For SMB_1 : cifs.max_mpx&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The only logic that I can come up with in respect to different 'default' values is : SMB_2 for Microsoft is a native implementation, and therefore the number they have come up with is wrt to their Windows Server platform. Any 3-party implementation of SMB_2 such as NetApp, EMC, IBM etc would probably need to keep it low, as it is not just a single protocol dedicated box and therefore it may be advisable to start low ? I am sure this value grabs resources on both client &amp;amp; server side.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's just my theory, I am curious to know more on this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 17 Dec 2019 13:58:52 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Network-and-Storage-Protocols/How-does-SMB-Credits-actually-work-on-ONTAP/m-p/153115#M9348</guid>
      <dc:creator>Ontapforrum</dc:creator>
      <dc:date>2019-12-17T13:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: How does SMB Credits actually work on ONTAP</title>
      <link>https://community.netapp.com/t5/Network-and-Storage-Protocols/How-does-SMB-Credits-actually-work-on-ONTAP/m-p/153116#M9349</link>
      <description>&lt;P&gt;Interestingly, on the samba.org, the definitions for both are&amp;nbsp; same:&lt;BR /&gt;&lt;A href="https://www.samba.org/samba/docs/current/man-html/smb.conf.5.html" target="_blank"&gt;https://www.samba.org/samba/docs/current/man-html/smb.conf.5.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;smb2 max credits:&lt;/STRONG&gt;&lt;BR /&gt;This option controls the &lt;U&gt;maximum number of outstanding simultaneous SMB2 operations&lt;/U&gt; that Samba tells the client it will allow. This is similar to the max mux parameter for SMB1. You should never need to set this parameter.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The default is 8192 credits, which is the same as a Windows 2008R2 SMB2 server.&lt;BR /&gt;Default: smb2 max credits = 8192&lt;/P&gt;
&lt;P&gt;NetApp equivalent : -max-credit&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;smb1 max mux:&lt;/STRONG&gt;&lt;BR /&gt;This option controls the &lt;U&gt;maximum number of outstanding simultaneous SMB operations&lt;/U&gt; that Samba tells the client it will allow. You should never need to set this parameter.&lt;BR /&gt;Default: max mux = 50&lt;/P&gt;
&lt;P&gt;NetApp equivalent : cifs.max_mpx&lt;/P&gt;</description>
      <pubDate>Tue, 17 Dec 2019 15:59:23 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Network-and-Storage-Protocols/How-does-SMB-Credits-actually-work-on-ONTAP/m-p/153116#M9349</guid>
      <dc:creator>Ontapforrum</dc:creator>
      <dc:date>2019-12-17T15:59:23Z</dc:date>
    </item>
  </channel>
</rss>

