How ONTAP implements SMB crediting
Applies to
- ONTAP 9.4 and later
- SMB2 and higher
Answer
- In ONTAP 9.4, throttling of SMB credits was implemented via a maximum credits configuration
- Prior to 9.4, SMB clients were granted as many credits as they requested
- By default, ONTAP 9.4 grants 128 credits per connection
- Display the current
max-credits
value:
cluster1::*> set -privilege advanced
cluster1::*> vserver cifs options show -vserver svm1 -fields max-credits
- Modify
max-credits
value:
cluster1::*> vserver cifs options modify -vserver svm1 -max-credits 512
Additional Information
- Modified credit value will only take effect on new cifs sessions
- SMB credits determine the number of outstanding simultaneous requests that the client can have on a particular connection.
- The allowed range is between 2 and 8192
- Default value does not need to be changed unless issue is confirmed to be root cause or vendor states a specific number of credits are needed.
- Follow client vendor recommendations if it differs from the default
- While it is possible to set number of credits to 2, there have been reports that some clients start to misbehave with such a low setting
- Changing the max-credits value is not expected to cause any issues
- Recommendation: Test changes on a test SVM with test clients prior to making the change on a production SVM.
- To troubleshoot, slowly increase the value until the issue is resolved
- Default value does not need to be changed unless issue is confirmed to be root cause or vendor states a specific number of credits are needed.
- As documented in this Microsoft Docs page, Performance tuning for SMB file servers, Windows now defaults to 512 credits.
- For assistance with disabling SMB crediting, contact NetApp Technical Support and reference this article.