8

I experience a huge slow-down on server. And the more I inspect, the less I find out what's going on wrong there.

I think it might be related to I/O. On local PC, I can open Task Manager, and see the disk usage:

enter image description here

However, on server I can't find a (preferably easy) way to see how much is disk in usage and if it's become the bottleneck or not.

enter image description here

How do you see disk usage on Windows Server 2012?

  • 1
    Downvoter, this is an objective question and I really need this and I'm not a professional server administrator. So, please add a comment explaining why. – Saeed Neamati Nov 24 '15 at 14:44
  • 1
    Downvotes are not required to be accompanied by a comment. Absent a comment, you can assume that a downvote is due to one of the reasons stated in the down arrow hover text. – EEAA Nov 24 '15 at 14:51
  • Look into Windows Performance Counters. – EEAA Nov 24 '15 at 15:01
  • 1
    Also, "I really need this" isn't a valid reason for asking a question. I really need a pony, but I'm not about to ask for one on ServerFault. – womble Nov 29 '15 at 1:27
  • 1
    Be polite to mark answer to your question, please! – Luke Mar 28 '18 at 7:22
8

By default Windows hide the entry because of a noted significant performance impact in collecting Disk metrics on a Server:

enter image description here

You need to register the Disk Perfcounter before you see this entry.

  1. close Taskmanager
  2. open a cmd.exe as admin
  3. run diskperf -Y
  4. close cmd.exe and run Taskmgr

Now you see the entry:

enter image description here

To analyze disk activity deeper, install the WPT, run this xperf command and capture 1 minute of the activity:

xperf -on PROC_THREAD+LOADER+CSWITCH+DISPATCHER+DISK_IO+DISK_IO_INIT+FILENAME+FILE_IO+FILE_IO_INIT+PROFILE -stackwalk CSwitch+ReadyThread+FileCreate+FileCleanup+FileClose+FileRead+FileWrite+FileSetInformation+FileDelete+FileRename+DiskReadInit+DiskWriteInit+DiskFlushInit+Profile -buffersize 2048 -MaxFile 2048 -FileMode Circular && timeout -1 && xperf -d C:\diagDISKFILEIO.etl

and analyze the trace file in WPA.exe for DiskIO and FileIO.

  • You'll need to disable the Paging Executive before running this. – joeqwerty Nov 24 '15 at 18:56
  • @joeqwerty for xperf and stackwalking yes. Win8 has it enabled by default. You need to do this in 7/2008R2 – magicandre1981 Nov 24 '15 at 19:01
  • This is a very useful answer. Then how to understand which process is the culprit? For me, the Disk column chooser in Processes tab of Task Manager is grayed out. – Saeed Neamati Nov 24 '15 at 21:01
  • click on "Open Resource Monitor" in the disk tab of Taskmgr. this opens a much better disk activity view here you can sort and filter for processes – magicandre1981 Nov 25 '15 at 5:17
  • is your question answered? Do you see the graph? if yes, "close" the question by marking the answer. – magicandre1981 Mar 5 '16 at 20:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.