Brandon Live!

Desktop Search FAQ   |   Start++   |   Contact Me

FAQ: Why does WDS / Windows Vista use so many processes?

June 20, 2007 at 9:25 pm
Desktop Search, WDS FAQ

The three processes used by the Windows Search service are SearchIndexer.exe, SearchProtocolHost.exe, and SearchFilterHost.exe.  Sometimes you may even see multiple instances of the latter two running simultaneously (especially if multiple users are logged in).

So why are they divided up in this way?  To find out, let’s look at what each of the processes does.

SearchIndexer.exe

This process runs as a system service under the SYSTEM account.  It is responsible for maintaining the index, servicing queries, as well as deciding what to crawl and when.

SearchProtocolHost.exe

This process sometimes runs under the SYSTEM account, and other times runs in the context of the current user.  It hosts a Protocol Handler responsible for enumerating items in a specific store (such as the File System, Outlook, UNC shares, Lotus, etc).

Why is it seperate?

SearchFilterHost.exe

This process hosts the actual IFilters. These filters are responsible for processing individual items, such as files, in a data store.

Why is it seperate?






9 Responses to “FAQ: Why does WDS / Windows Vista use so many processes?”

  1. rtk Says:

    Makes perfect sense, thanks for the explanation.

  2. Eric Says:

    Brandon,

    I never really thought through what each of those processes do or why they’re separated but it does make a lot of sense, especially restricting SearchFilterHost.exe so much. Interesting stuff to say the least.

    Slightly related but I’m working on a property handler for media files (AVI is most important format but others too) using XMP. It’s basically alpha quality. If it interests you, you can check it out a http://sourceforge.net/projects/vistaprophand . Sorry to talk about this in a comment but I couldn’t figure out a way to email you directly.

  3. Kevin Says:

    Hi Brandon,

    Why do I keep getting a message from searchprotocolhost.exe saying “Database login failed: Catastrophic failure.” It is running under the User, not the System. Am I missing an update?
    Any help would be appreciated.

  4. Guy Swarbrick Says:

    I can see why they need to be separate processes. What I’m struggling with is why searchprotocolhost.exe feels the need to grab 40% of my CPU capacity when there are other apps active, preventing me from doing anything productive…

  5. foad420 Says:

    the problem with my SearchProtocolHost.exe is that is constantly reading random music files all day long after disabling all mediacenter sharing, zune sharing, and others. Its alwasy slowing me down to 15 fps during games becasue I can disabled it all day long in services.msc and other places…but it always seems to run no matter what I tell Vista..

  6. Maddy Says:

    Hello, thanks for such a nice review and explanation for the three mysterious looking processes.
    But what I am troubled about is the CPU/Memory use these process are making and that too unwanted.
    On my XP machine these processes came only after I installed Win Desktop Search 3.1, is there any way to keep these proces s disabled preferably or keeping low memory…..
    Regards,
    MADHUR

  7. Luqman Says:

    Disable XML indexing by going to control panel, Indexing Options and unchecking XML as an extension (its under the advanced button). There appears to be a bug in indexing XML files. WDS should drop its CPU usage considerably. I personally recommend limiting the number and type of files indexed. I have unchecked my music files (I use itunes, so no need to index) and graphics/file formats I don’t use (3gp etc). I also have unchecked .zip and .rar files. I keep all those files in one spot anyway.

  8. damnprinter Says:

    I really hate Vista Search they took a good idea and just ruined it with poor execution. The indexer is slow, hard to configure and uses a ton of resources.
    ….
    I can’t pause it, I can’t schedule it, I cannot get it to just index groups. On day one of setting up Vista all I really want is all the filenames to be indexed like Avafind and then do the content indexing at night when I’m asleep (or not at all). I also only want to include certain groups like documents, music and movies in the “content” index, basically an opt in setup. However someone at Microsoft decided that people should be forced an agonizing setup ordeal one file extension at a time.

    The only thing I really like about Vista Search is that it has a field in the Start Menu.

  9. Richard Threlkeld Says:

    I run ZoneAlarm and searchprotocolhost comes up in bursts where it will access the internet 20 times 5 seconds apart. This annoys me enough I will not click “remember this” to give it permanent permission. Why does it hit the internet so much and so often? It is supposed to be indexing stuff on my system. I can see a once a day attempt to get updates, but this is way too much.

Leave a Reply


[powered by WordPress.]

Hi. I'm Brandon. I'm a geek, and I work on Search technology for Windows at Microsoft. This is my blog.

RSS Button

Picture

categories:

archives:

June 2007
M T W T F S S
« May   Jul »
 123
45678910
11121314151617
18192021222324
252627282930  

search this site:

The views expressed within my blog are my own - and are not in any way indicative of those of the company I work for, Microsoft, or it's employees. No warranties or other guarantees will be offered as to the quality of the opinions or anything else offered here.

Xbox Live GamerCard