-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Smb hashmap/v9 #12036
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Smb hashmap/v9 #12036
Changes from all commits
927e1b3
4f4726f
f901bd9
8331313
77b38d6
770e59b
64e314d
fe9a98f
2bcb393
e79c820
2684860
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1686,6 +1686,37 @@ the limits are exceeded, and an event will be raised. | |
| `max-write-queue-size` and `max-write-queue-cnt` are as the READ variants, | ||
| but then for WRITEs. | ||
|
|
||
| Cache limits | ||
| ^^^^^^^^^^^^ | ||
|
|
||
| The SMB parser uses several per flow caches to track data between different records | ||
| and transactions. | ||
|
|
||
| :: | ||
|
|
||
| smb: | ||
| max-guid-cache-size: 1024 | ||
| max-rec-offset-cache-size: 128 | ||
| max-tree-cache-size: 512 | ||
| max-dcerpc-frag-cache-size: 128 | ||
| max-session-cache-size: 512 | ||
|
|
||
| The `max-guid-cache-size` setting controls the size of the hash that maps the GUID to | ||
| filenames. These are added through CREATE commands and removed by CLOSE commands. | ||
|
|
||
| `max-rec-offset-cache-size` controls the size of the hash that maps the READ offset | ||
| from READ commands to the READ responses. | ||
|
|
||
| The `max-tree-cache-size` option contols the size of the SMB session to SMB tree hash. | ||
|
|
||
| `max-dcerpc-frag-cache-size` controls the size of the hash that tracks partial DCERPC | ||
| over SMB records. These are buffered in this hash to only parse the DCERPC record when | ||
| it is fully reassembled. | ||
|
|
||
| The `max-session-cache-size` setting controls the size of a generic hash table that maps | ||
| SMB session to filenames, GUIDs and share names. | ||
|
Comment on lines
+1694
to
+1717
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Any additional comments here on the suitability of the defaults would be great.. Conservative? Good for average use? etc. Why they were chosen?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fairly random. I don't have a good env to test this stuff with. Want to make some ways to observe the sizes. |
||
|
|
||
|
|
||
| Configure HTTP2 | ||
| ~~~~~~~~~~~~~~~ | ||
|
|
||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.