Windows IT Pro is the leading independent community for IT professionals deploying Microsoft Windows server and client applications and technologies.
  
  
  Advanced Search 


November 06, 2008

Winsat Command-Line Utility

Helps Diagnose Computer Performance Problems
RSS
Subscribe to Windows IT Pro | See More Performance Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!

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.

End of Article



Reader Comments
Where can we get a copy of your batch file?

bilj65 November 06, 2008 (Article Rating: )


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

David Chernicoff November 07, 2008 (Article Rating: )


You must be a registered user or online subscriber to comment on this article. Please log on before posting a comment. Are you a new visitor? Register now




Top Viewed ArticlesView all articles
Command Prompt Tricks

One reader shares his tip for setting up the command prompt to reflect a remote path. ...

WinInfo Short Takes: Week of November 23, 2009

An often irreverent look at some of the week's other news, including some post-PDC some soul searching, a Google Chrome OS announcement and a Microsoft response, Windows 7 off to a supposedly strong start, the Jonas Brothers and Xbox 360, and so much more ...

2009 Windows IT Pro Editors' Best and Community Choice Awards

Picking a favorite product from an impressive crowd of competitive offerings is never an easy task, and such was the case with our Editors' Best and Community Choice awards this year. ...


Scripting Whitepapers From Development to Production: Streamlining SharePoint Deployment with DocAve Deployment Manager

Related Events Deep Dive into Windows Server 2008 R2 presented by John Savill

Configuration Manager SP1 and R2 Overview

Check out our list of Free Email Newsletters!

Scripting eBooks Keeping Your Business Safe from Attack: Encryption and Certificate Services

Best Practices for Managing Linux and UNIX Servers

Building an Effective Reporting System

Related Scripting Resources Introducing Left-Brain.com, the online IT bookstore
Looking for books, CDs, toolkits, eBooks? Prime your mind at Left-Brain.com

Discover Windows IT Pro eLearning Series!
Clear & detailed technical information and helpful how-to's, all in our trademark no-nonsense format


Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro DevProConnections IT Job Hound
Left-Brain.com Technology Resource Directory asp.netPRO ITTV Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 © 2009 Penton Media, Inc. Terms of Use | Privacy Statement