Damn you Kernel Mode Caching!

Microsoft's IIS 6.0 comes with kernel mode caching for helping to speed up web page load times. Unfortunately, the kernel mode caching seems to have some side effects that are affecting my index.xml RSS feed that many of my blog readers subscribe to. You may have noticed that my blog web pages had blog entries that didn't show up in my index.xml feed until hours later. The kernel mode cache was designed to take heavily accessed files and stick them in the kernel for faster retrieval.

According to Microsoft:
"The IIS 6.0 kernel-mode cache is designed speed up static file performance significantly by bypassing the need to do a kernel-to-usermode transition to generate and serve the response," says Eric Deilly, IIS 6.0 program manager with Microsoft. "Instead, the kernel mode listener is able to receive the connection request, receive the new connection, check the kernel-mode cache, and serve the response from the cache on a cache hit."

During some troubleshooting I noticed that if I open the XML file locally on the Windows IIS server, the file is current. However, if I go to another PC which has never loaded the index.xml feed (not cached by the browser), it often loads an older version of the file. The only way I can see that happening is if the kernel is holding the file in memory using Microsoft's new kernel mode caching.

If I manually stop and start (restart) IIS, then the correct, most up-to-date index.xml file loads.

Even stranger, I can DELETE the index.xml file fom the IIS server and IIS will continue to "serve" the file as though it still exists. Weird, eh? I should get a 404 error on my browser after deleting.

If I then stop/start IIS then I get a file not found error on my browser. (or if I didn't delete the file, restarting IIS makes sure the most recent XML file is served)

I assume since the kernel cache caches heavily accessed files, such as my blog's RSS feed, that the kernel is keeping the file in memory and thus serving it from the kernel instead of the hard disk. However, it's supposed to detect changes in the file and then let the most recent version be loaded into the cache. I certainly can't restart IIS after after blog entry, so I will have to continue to work on this problem. Damn you Microsoft and damn your kernel mode caching!

| 4 Comments | 0 TrackBacks

Listed below are links to sites that reference Damn you Kernel Mode Caching!:

Damn you Kernel Mode Caching! TrackBack URL : http://blog.tmcnet.com/mt/mt-tb.cgi/18233

4 Comments

I have same problem with IIS, however sometimes restarting the service doesn't fix it. I have to restart the whole OS

http://support.microsoft.com/?id=820129

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\HTTP\Parameters

UriEnableCache=0

have a nice day!

| Reply

Yeah I tried this reg entry and it didn't work.

Leave a comment

Recent Activity

Friday

  • Tom Keating posted VoIP in Google ChromeOS
  • Tom Keating tweeted, "VoIP in Google ChromeOS: Google released their ChromeOS operating system yesterday. So naturally, as a VoIP fan I w... http://bit.ly/3T68Ox"

Thursday

More...

Recent Comments

  • precoz: I am wondering, if the VOIP market is still increasing read more
  • Dustin: But that's not the point at all. The majority of read more
  • commangerYEK: Nicely done! read more
  • bstella: How did you get an email address to write to read more
  • Paul: Hi Mike, For Cisco (and normal SIP) passive VoIP recording read more
  • redshirt6: Yes, dying to know if it worked! rs6 read more
  • bruno.clermont: SkypeOut work only if I added their phone number as read more
  • bruno.clermont: I just installed it and try to do some call. read more
  • Kris: Tom, I'm curious. Did you ever get any resolution on read more
  • dsi r4: This is the age of smart phone.Nimbuzz launches it's phone read more

Subscribe to Blog

Recent Entry Images

  • google-chromos-flaphone-voip.jpg
  • startech-conxit-tool.jpg
  • thanksgiving-turkey.jpg
  • verizon-island-of-misfit-toys.jpg
  • mindtouch-cloud.jpg
  • microsoft-windows-20-history.jpg
  • taylor-randall-the-price-is-right.jpg
  • fring-google-android-skype.png
  • gotomeeting-logo.gif

Entry Archives

Around TMCnet Blogs

Latest Whitepapers

TMCnet Videos