What is Change Notify and why is there a high packet trace response time?
Applies to
- ONTAP 9
- Data ONTAP 7-Mode
- CIFS/SMB
Answer
- The response time is the delta between watched folder changes, but it is not required to per SMB spec so the updates only happen when a change actually occurs
- Change Notify is a function of CIFS/SMB which sends any folder updates to the client
- Example: If two users have the same folder open, and one users deletes a file, a change notify update is sent to the second user of the deleted file
- This saves client CPU cycles because the user doesn't have to refresh the whole folder if a large one, just the changes
- Change Notify only updates when the folder being monitored (for example when Windows Explorer is open on a share) has a file update
Additional Information
- The SMB2 Change Notify specification points to this separate specific part on waiting:
- "Wait until the following conditions are satisfied:
- There are one or more elements in ChangeNotifyEntry.NotifyEventList.
- This change notification request is the oldest outstanding request on this Open. This means multiple change notification requests on the same Open are completed sequentially and in first-in-first-out (FIFO) order.
- The operation is canceled as specified in section 2.1.5.19."
- "Wait until the following conditions are satisfied: