1
Windows Operating System Internals - by David A. Solomon and Mark E. Russinovich with Andreas Polze
Unit OS11: Performance Evaluation
11.1. System Performance
3
Roadmap for Section 11.1 Performance Evaluation and Prediction - - PDF document
Unit OS11: Performance Evaluation 11.1. System Performance Windows Operating System Internals - by David A. Solomon and Mark E. Russinovich with Andreas Polze Roadmap for Section 11.1 Performance Evaluation and Prediction Tools for Monitoring
Windows Operating System Internals - by David A. Solomon and Mark E. Russinovich with Andreas Polze
3
4
5
6
7
Many tools available to dig into Windows internals Helps to see internals behavior “in action”
Support Tools Resource Kit Tools Debugging Tools Sysinternals.com
Platform Software Development Kit (SDK) Device Driver Development Kit (DDK)
8
Tool Image Name Origin
File Monitor FILEMON www.sysinternals.com Global Flags GFLAGS Support Tools Handle Viewer HANDLE www.sysinternals.com Kernel debuggers WINDBG, KD Debugging tools, Platform SDK, Windows DDK Live Kernel Debugging LIVEKD www.sysinternals.com Open Handles OH Resource kits Page Fault Monitor PFMON Support Tools, Resource kits, Platform SDK Pending File Moves PENDMOVES www.sysinternals.com Performance tool PERFMON.MSC Windows built-in tool Pool Monitor POOLMON Support Tools, Windows DDK Process Explorer PROCEXP www.sysinternals.com Process Statistics PSTAT Support Tools, Windows 2000 Resource kits, Platform SDK, www.reskit.com Quick Slice QSLICE Windows 2000 resource kits Task (Process) List TLIST Debugging tools Task Manager TASKMGR Windows built-in tool TDImon TDIMON www.sysinternals.com
9
…plus full image path, command line, environment variables, parent process, security access token, open handles, loaded DLLs & mapped files
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Internet Information Service
Active Server Pages FTP Service Web Service Internet Information Services Global
Indexing Service
Indexing Service Indexing Service Filter HTTP Indexing Service
Message Queuing
MSMQ Session MSMQ IS MSMQ Queue MSMQ Service Quality of Service (QoS) Admission
Control
ACS/RSVP Service ACS/RSVP Interfaces ACS/RSVP Policy
Routing and Remote Access (RRAS)
RAS Port RAS Total
File Replication Service
FileReplicaConn FileReplicaSet
Terminal Service
Terminal Services Session
Active Directory™
NTDS
25
26
27
ETW library is implemented in \Windows\System32\Ntdll.dll If file logging is configured the WMI driver creates a system thread in system process that creates a log file Alternatively, logging may use an in-memory buffer
File logging thread wakes up once per second to dump the contents
Trace records generated for the kernel logger have a standard ETW trace event header
Header records timestamp, process, and thread IDs, info on event class Event classes can provide additional data specific to their events
28
29
30
31
32