From what I'm noticing, it looks like a running IIS7 w3wp will create a change notification for every directory that it is aware of within a site's physical hierarchy, based on incoming requests. This is most likely done to monitor for changes to web.config files. So, when the first request comes in to /app1 the server will monitor the directory for changes (regardless of existence of a web.config in that dir). Then if a request comes in to /app2 the same thing occurs. This is all well and good, but is relatively expensive in remote content over unc scenarios, especially when communication with the remote storage is done via SMB1 (think about a very active site with thousands and thousands of physical directories...)
I'm painfully aware of how to modify lanmanserver and lanmanworkstation parameters to increase the max mpx count and all that fun stuff. However, I'm wondering if there is a way modify the server's behavior in a similar manner to what this asp .net hotfix did (specifies FCNMode):
http://support.microsoft.com/kb/911272
This hotfix enables the following to be configured:
| Value | Behavior |
| Does not exist | This is the default behavior. For each subdirectory, the application will create an object that will monitor the subdirectory. |
| 0 or greater than 2 | This is the default behavior.
For each subdirectory, the application will create an object that will monitor the subdirectory. |
| 1 | The application will disable File Change
Notifications (FCNs). |
| 2 | The
application will create one object to monitor the main directory. The
application will use this object to monitor each subdirectory. |
Personally, I like option "2" as it consumes fewer work items to the storage infrastructure. Is it possible to modify IIS7's default behavior so the distributed configuration is less painful to implement when communicating SMB1? The only thing I know of that even relates to this is ConfigPollMilliseconds, but from what I've seen setting that value doesn't actually prevent the web server from making a NOTIFY_CHANGE call to the file server.
Any suggestions? Thanks
-Mike