/ .net

ReadyBoost Monitor Gadget

If you connected that high speed flash memory to your Vista pc to enable the ReadyBoost cache, you might wonder how efficient it is. Well... I did.

To monitor its efficiency you can launch the Performance Monitor in Vista, elevate credentials, scroll down to the ReadyBoost category and add a some counters to display. Or you could write a gadget that instantly displays how efficient ReadyBoost really is.

One problem is that the Sidebar process is not elevated by default, so unless you elevate it manually or disable UAC and log in as administrator, the gadget can't read the ReadyBoost performance counter data (PCD).

So the data has to come from somewhere else. I wrote a small Windows Service that runs with localsystem credentials and reads the PCD. A small calculation is performed, the data is averaged and published as a WCF web service by the service itself.

The gadget then uses XMLHTTPRequest to get the data from the service and displays it in a nice graph.

Source is included of course. Open the readme.txt in the zip archive for installation instructions.