Subscribe to Windows IT Pro

 

Get Newsletters

  • Get the Latest News
  • Product Updates
  • Helpful Tricks
  • Productivity Tips

Subscribe Now!

November 06, 2008 12:00 AM

Winsat Command-Line Utility

Helps Diagnose Computer Performance Problems
Windows IT Pro
InstantDoc ID #100730
Rating: (4)

A common phone call I get from my small business customers is the “my system performance isn’t what I expected” complaint, with the refrain, “It must be Windows Vista.” But in almost every case, it’s not Vista’s fault. Most of these businesses made the most of their limited hardware budgets and often bought the computers as a package deal. This often means that the computer hardware lacks enough memory or has slow components. The easy way out is to tell the customer to max out the memory on the computer in question. However, if that doesn’t solve the problem, I’ll usually visit the customer and assess the situation with a little tool in Vista: the Windows System Assessment Tool.

Most people think of this tool in conjunction with the Windows Experience Index (WEI) screen, a piece of frippery that gives the user a quick rating of the computer’s ability to run Vista (which is already installed on the computer). While a low WEI number pretty much guarantees poor Vista performance, a high number doesn’t guarantee great performance, and the meaning of numbers in the middle can be hard to pin down. So why would I suggest this as a useful tool in diagnosing performance problems with Vista?

I suggest the Windows System Assessment Tool because of its winsat command-line utility. Winsat is the underlying technology for the WEI, but as a command-line tool it lets the user get detailed performance information on such things as disk, graphics, and memory performance. Winsat.exe can be complex to use, but fortunately, it’s completely scriptable. For my own basic assessment of a client machine, I have a series of winsat commands queued in a batch file and use output redirection to pipe the output to a text file to peruse. Since winsat is already on the computer, I can email the batch file to a customer, they execute it, then email me the results file so I can do a little system-performance evaluation without having to be on site. (To get basic information about using the tool, type “winsat –?” at a command prompt. To get detailed instructions about using commands for your diagnostic needs, go to http://technet.microsoft.com/en-us/library/cc770542.aspx.)

Here’s an example of the type of output I use. I know that one of the most common causes (after too little memory) for slower-than-expected system performance is the use of slower hard drives in discounted system configurations. In the sample below, the first drive is a high capacity (1TB) 5400rpm SATA included in a discount configuration. I’ve used winsat to do a sequential read test off the drive, as that’s representative of what happens when you open files or applications:
winsat disk -seq -read -drive o
Windows System Assessment Tool
> Running: Feature Enumeration v1.0.0.0 ''
> Run Time 00:00:00.56
> Running: Storage Performance Assessment via Profiling v1.0.0.0 '-seq -read -drive D'
> Run Time 00:00:32.92
> Disk Performance 27.27 MB/s
> Total Run Time 00:00:33.82

The read performance is just over 27MB/s, which seems sufficient but is actually pretty slow. Replacing the drive with a 500GB 7200rpm SATA drive yields the following:
winsat disk -seq -read -drive D
Windows System Assessment Tool > Running: Feature Enumeration v1.0.0.0 ''
> Run Time 00:00:00.53
> Running: Storage Performance Assessment via Profiling v1.0.0.0 '-seq -read –drive D'
> Run Time 00:00:20.19
> Disk Performance 63.58 MB/s
> Total Run Time 00:00:21.05

The replacement drive more than doubled the read performance. The user noticed visible improvement in system usability.

Related Content:

ARTICLE TOOLS

Comments
  • kumar
    2 years ago
    Jul 29, 2010

    Is winsat is re-distributable? Is there in licensing part involved since our end-points are Windows XP

  • David Chernicoff
    4 years ago
    Nov 07, 2008

    This is the contents of the batch file. that I send out. It's output file has to be parsed manually, mainly because I never made a "pretty" version.

    The file checks boot disk read/write. basic video capability, and memory and cpu performance.

    It shuld be self explanatory, just use the contents in your own batchfile , minus the last two lines --

    winsat features>c:\\diagnostics.txt

    winsat disk -seq -read -drive c>>c:\\diagnostics.txt

    winsat disk -ran -write -drive c>>c:\\diagnostics.txt

    winsat dwm -normalw 8 -glassw 3 -time 6 -fullscreen>>c:\\diagnostics.txt

    winsat mem>>c:\\diagnostics.txt

    winsat cpu -encryption2>>c:\\diagnostics.txt

    winsat cpu -compression2>>c:\\diagnostics.txt

    echo Email the file c:\\diagnostics.txt back to David

    pause

  • Brad
    4 years ago
    Nov 06, 2008

    Where can we get a copy of your batch file?

You must log on before posting a comment.

Are you a new visitor? Register Here

advertisement

advertisement

White Papers

Get your Windows 7 deployment off to the right start by implementing PC lockdown. A locked-down environment is easier and cheaper to support since users are less likely to make unnecessary changes to the core system configuration - read more here!

Essential Guides

Is your iSCSI "lossy"? The reality is that most off-the-shelf Ethernet hardware deployed for iSCSI can lose packets, resulting in slow performance or application downtime. Learn how to assess your current iSCSI infrastructure and engineer an advanced iSCSI SAN infrastructure.

Web Seminars

What's the best way to keep your network safe from malware? In this web seminar, security expert Greg Shields suggests an alternative method to the traditional blacklisting approach that is common with anti-virus and anti-malware solutions.

eLearning Series

We bring the experts direct to you to share their real-world perspective and expertise. During each event, three sessions stream in real time, so you can learn, ask questions, and get solutions.
Upcoming event: Getting the Most with Exchange 2010 with Paul Robichaux

Subscribe to Windows IT Pro!

Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.