SlideShare a Scribd company logo
Performance and Statistics Collector (Perfstat 7-mode)
7.36 UNIX/Linux, 7.36 Windows
Windows
rsh may hang if there are no remaining ports on the filer for the stderr socket. The filer will indicate "couldn't
connect second port". Perfstat should detect and abort the command, but output from the command is lost, and in
rare circumstances the command may have to be killed by hand.
Aborted instances of rsh may cause console warnings about inaccessible files.
Windows disk performance counters are assumed to be enabled. Older versions of windows may require explicit
activation with diskperf -y and a reboot.
Perfstat on Windows XP Service Pack 2 will display "Terminal read..." errors. This is a problem in rsh.exe - see
Microsoft KB article: KB892099.

Perfstat: Version 7.36 4-2011
- perfstat.exe is a tool for capturing performance
and configuration statistics.
- Output from perfstat is sent to standard out and
is typically captured in an output file for
later analysis.
- perfstat.exe is capable of capturing info from one Windows host and
multiple NetApp storage controllers simultaneously.
- For controller data capture, the user must have RSH or
SSH privileges to the controller. Unless instructed otherwise,
perfstat will use 'root' as the default username to communicate
remotely with storage controllers.



Usage: (basic options list)
perfstat [-f controllername] [-t time] > perfstat.out
perfstat –f akfiler7.ak.providence.org -t 5 -I 5 -I > perfstat"Date_%date:~4,2%%date:~7,2%%date:~10,4%Time_%time:~0,2%h%time:~3,2%m%time:~6,2%s"

H:NAUtilyperfstat7_20110411.exe -f NAS2854 -t 5 -I 5 -I > perfstat"NAS2854_Date_%date:~4,2%%date:~7,2%%date:~10,4%Time_%time:~0,2%h%time:~3,2%m%time:~6,2%s"
where:
-f controllername - host name or IP address of target controller
-t time - collect performance data for 'time' minutes
Simple Example:
Capture data on local host and one controller for 5 minutes:
perfstat -f controller1 -t 5 > perfstat.out
Capture data on multiple hosts and controllers for 10 minutes:
perfstat -f controller1,controller2 -t 10 > perfstat.out
Capture data for five 1 minute iterations, with 10 minutes between
successive iterations:
perfstat -f controller1 -t 1 -i 5,10 > perfstat.out
Usage: (more
perfstat
[-f
[-t
[-i

complete options list)

controllername[,controllername1,controllername2,...]]
time] (sample time per iteration, default 2)
n[,m]] (repeat n times with m minutes between samples,
defaults: n=1,m=0)
[-I] (force perfstat to execute all iterations)
[-l login[:password]] (rsh/ssh login and password for rsh only)
[-F] (do not capture information from local host)
[-V] (do not capture vfiler data)
[-p] (capture performance data only, no config info
[-c] (capture config info only, no performance data
[-L] (capture logs - beware verbose output
[-E cmd[,cmd2,cmd3]... (exclude commands)
[-P domain1[,domain2,domain3...] (capture profiles,
use "-P flat" to capture complete profile)
[-v] (print version info only)
[-q] (quiet mode - suppress all console input)
[-x] (print what commands will be issued without actually
issuing them
[-d] (debug mode - beware verbose output)
[-m msinfo_path] (path to msinfo32.exe)
[-S pw:|kf:] (use ssh instead of rsh)
[-k] (disable collection of "stutter" statit; i.e.,
collect 1 statit report that covers the entire
iteration)
[-K] (collect only "stutter" statit reports over
the entire iteration)
[-T default | sk_mod,level[,sk_mod2,level,...]] (collect sktrace)
[-B sk_buffer_size] (specify sktrace buffer size)
[-C seconds] (the number of seconds to wait on command processesdefault is 70 seconds)
[-w minutes] (total number of minutes to wait for perfstat
execution to complete. Default will be 5 minutes)

Notes:
-P saves profiling data in a subdirectory 'gmon' of the current working
directory and deletes any existing gmon files on the controller
-E exludes all foreground commands that have at least the cmd as a
substring; E.g.
-E snap,vol
- excludes all 'snap*' and 'vol*' commands
-E "snap list -v" - excludes only the command 'snap list -v'
-S requires the plink ssh client to be available in the working path
To authenticate with a password, use the syntax -S pw:
For public key authentication, use the syntax -S kf:,
where keyfile is a Putty private keyfile created with puttygen.
plink and puttygen are available for free download at
http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
Additionally, the -l option can be used to specify usernames for
controller login. E.g.,
perfstat.exe -S -l user
-T used to toggle sktrace collection and specify sk modules and the
levels at which trace data should be collected for those modules.
Some valid sk modules include SK, WAFL, DISK, and SCSITARGET. For
default values of 'SK 7 WAFL 4', specify '-T default'. sktrace data
will be copied off of the controller(s) and into the current working
directory from where perfstat was invoked.
values of 'SK 7 WAFL 4', specify '-T default'. sktrace data will be
copied off of the controller(s) and into the current working directory
from where perfstat was invoked.
-B used to manually set the sktrace buffer size. By default, perfstat
will use a default value of '40m' (40MB). Please note that it is
required that the units be specified with the size in the format:
k (KB), m (MB), or g (GB). This value should only be changed if
specifically advised by global support.
Early termination of execution: as of v7.00 perfstat will terminate
iterations early if a calculated max runtime is met or exceeded.
If it is required that perfstat must execute all iterations regardless
of the total runtime, please use the '-I' option.
Monitoring for 24 hour periods
A common practice is to capture perfstat data 24 hours a day and archive some number of data samples (e.g. 1
week worth). The recommended method for doing this is to capture multiple small samples throughout the day,
rather than one 24 hour sample. Many customers script this or place it in the cron job log.
Here are some typical examples:
perfstat -f filer1 -t 30 -i 46 > perfstat.$date.out
NOTE: For Windows users the example below shows a nice way to format perfstat output file names with date and
time information:
perfstat -f filer1 -t 30 -i 46 > perfstat-"Date_%date:~4,2%%date:~7,2%%date:~10,4%Time_%time:~0,2%h%time:~3,2%m%time:~6,2%s"
Both examples above will capture 46 samples of 30 minute intervals. This is a total of 23 hours. Since perfstat
uses a lot of rsh commands and the time to complete the rsh's can vary, it often runs for slightly longer than the
specified time. To compensate for this (and not have 2 perfstat tools running concurrently), we recommend a 23
hour run to cover a 24 hour period.
H:NAUtily>perfstat7_20110411.exe -f NAS2854 -t 5 -I 5 -I > perfstat-"NAS2854_D
ate_%date:~4,2%%date:~7,2%%date:~10,4%-Time_%time:~0,2%h%time:~3,2%m%time:~6,2%s
"
Perfstat v7.36 (4-2011)
RSH to filer NAS2854 fails! Quitting.

H:NAUtily>perfstat7_20110411.exe -f NAS2854.providence.org -t 5 -I 5 -I > perf
stat-"NAS2854_Date_%date:~4,2%%date:~7,2%%date:~10,4%-Time_%time:~0,2%h%time:~3,
2%m%time:~6,2%s"
Perfstat v7.36 (4-2011)
RSH to filer NAS2854.providence.org fails! Quitting.

H:NAUtily>perfstat7_20110411.exe -f 170.220.66.13 -t 5 -I 5 -I > perfstat-"NAS
2854_Date_%date:~4,2%%date:~7,2%%date:~10,4%-Time_%time:~0,2%h%time:~3,2%m%time:
~6,2%s"
Perfstat v7.36 (4-2011)
RSH to filer 170.220.66.13 fails! Quitting.

H:NAUtily>perfstat7_20110411.exe -f akfiler5.ak.providence.org -t 5 -I 5 -I >
perfstat-"NAS2854_Date_%date:~4,2%%date:~7,2%%date:~10,4%-Time_%time:~0,2%h%time
:~3,2%m%time:~6,2%s"
Perfstat v7.36 (4-2011)
RSH to filer akfiler5.ak.providence.org fails! Quitting.

H:NAUtily>

More Related Content

DOCX
Tier 2 net app baseline design standard revised nov 2011
PPT
101 1.3 runlevels , shutdown, and reboot
PDF
Linux System Monitoring basic commands
PPTX
Linux Process & CF scheduling
PPT
101 4.2 maintain the integrity of filesystems
PPT
Linux monitoring and Troubleshooting for DBA's
ODP
Linux monitoring
PPT
Process and Threads in Linux - PPT
Tier 2 net app baseline design standard revised nov 2011
101 1.3 runlevels , shutdown, and reboot
Linux System Monitoring basic commands
Linux Process & CF scheduling
101 4.2 maintain the integrity of filesystems
Linux monitoring and Troubleshooting for DBA's
Linux monitoring
Process and Threads in Linux - PPT

What's hot (20)

PPTX
Linux process management
PDF
The Linux Kernel Implementation of Pipes and FIFOs
PDF
FreeBSD Jail Complete Example
PPT
Linux commands
PDF
Introduction to eBPF and XDP
PDF
Building Network Functions with eBPF & BCC
PPTX
Data Structures used in Linux kernel
PDF
Kernel Recipes 2015: Linux Kernel IO subsystem - How it works and how can I s...
PDF
Linux Security Quick Reference Guide
ODP
Performance: Observe and Tune
PPTX
Lecture 4 FreeBSD Security + FreeBSD Jails + MAC Security Framework
PPTX
Modern Linux Tracing Landscape
PDF
Lecture1 Introduction
PPT
ARM Linux Embedded memory protection techniques
PPT
Bootloader and MMU (english)
PPTX
Linux Run Level
PDF
Module 13 - Troubleshooting
PPTX
Berkeley Packet Filters
PPTX
eBPF Basics
ODP
Firewalld : A New Interface to Your Netfilter Stack
Linux process management
The Linux Kernel Implementation of Pipes and FIFOs
FreeBSD Jail Complete Example
Linux commands
Introduction to eBPF and XDP
Building Network Functions with eBPF & BCC
Data Structures used in Linux kernel
Kernel Recipes 2015: Linux Kernel IO subsystem - How it works and how can I s...
Linux Security Quick Reference Guide
Performance: Observe and Tune
Lecture 4 FreeBSD Security + FreeBSD Jails + MAC Security Framework
Modern Linux Tracing Landscape
Lecture1 Introduction
ARM Linux Embedded memory protection techniques
Bootloader and MMU (english)
Linux Run Level
Module 13 - Troubleshooting
Berkeley Packet Filters
eBPF Basics
Firewalld : A New Interface to Your Netfilter Stack
Ad

Similar to Perf stat windows (20)

PDF
Introduction to Perf
PDF
Linux Performance Tools 2014
PDF
Essential Linux Commands for DBAs
PDF
Linux Profiling at Netflix
PDF
Linux Systems Performance 2016
PDF
LISA2019 Linux Systems Performance
PDF
PDF
Hotsos Advanced Linux Tools
PDF
Linux Server Deep Dives (DrupalCon Amsterdam)
PDF
Linux Performance Tools
PDF
Kernel Recipes 2017: Using Linux perf at Netflix
PDF
Kernel Recipes 2017 - Using Linux perf at Netflix - Brendan Gregg
PDF
Velocity 2015 linux perf tools
PPTX
Designing Tracing Tools
PDF
YOW2020 Linux Systems Performance
PPTX
Always-on Profiling of All Linux Threads, On-CPU and Off-CPU, with eBPF & Con...
PDF
MeetBSD2014 Performance Analysis
PDF
Designing Tracing Tools
PDF
Kernel Recipes 2017: Performance Analysis with BPF
PDF
Kernel Recipes 2017 - Performance analysis Superpowers with Linux BPF - Brend...
Introduction to Perf
Linux Performance Tools 2014
Essential Linux Commands for DBAs
Linux Profiling at Netflix
Linux Systems Performance 2016
LISA2019 Linux Systems Performance
Hotsos Advanced Linux Tools
Linux Server Deep Dives (DrupalCon Amsterdam)
Linux Performance Tools
Kernel Recipes 2017: Using Linux perf at Netflix
Kernel Recipes 2017 - Using Linux perf at Netflix - Brendan Gregg
Velocity 2015 linux perf tools
Designing Tracing Tools
YOW2020 Linux Systems Performance
Always-on Profiling of All Linux Threads, On-CPU and Off-CPU, with eBPF & Con...
MeetBSD2014 Performance Analysis
Designing Tracing Tools
Kernel Recipes 2017: Performance Analysis with BPF
Kernel Recipes 2017 - Performance analysis Superpowers with Linux BPF - Brend...
Ad

More from Accenture (20)

PDF
Certify 2014trends-report
PDF
Calabrio analyze
DOCX
Performance problems on ethernet networks when the e0m management interface i...
DOCX
NetApp system installation workbook Spokane
DOCX
Migrate volume in akfiler7
DOCX
Migrate vol in akfiler7
DOCX
Data storage requirements AK
DOCX
C mode class
DOCX
Akfiler upgrades providence july 2012
DOC
NA notes
PPTX
Reporting demo
PPTX
Net app virtualization preso
PPT
Providence net app upgrade plan PPMC
PDF
WSC Net App storage for windows challenges and solutions
PDF
50,000-seat_VMware_view_deployment
PDF
Tr 3998 -deployment_guide_for_hosted_shared_desktops_and_on-demand_applicatio...
PDF
Tr 3749 -net_app_storage_best_practices_for_v_mware_vsphere,_dec_11
PDF
Snap mirror source to tape to destination scenario
PDF
Ref arch for ve sg248155
PDF
PAM g.tr 3832
Certify 2014trends-report
Calabrio analyze
Performance problems on ethernet networks when the e0m management interface i...
NetApp system installation workbook Spokane
Migrate volume in akfiler7
Migrate vol in akfiler7
Data storage requirements AK
C mode class
Akfiler upgrades providence july 2012
NA notes
Reporting demo
Net app virtualization preso
Providence net app upgrade plan PPMC
WSC Net App storage for windows challenges and solutions
50,000-seat_VMware_view_deployment
Tr 3998 -deployment_guide_for_hosted_shared_desktops_and_on-demand_applicatio...
Tr 3749 -net_app_storage_best_practices_for_v_mware_vsphere,_dec_11
Snap mirror source to tape to destination scenario
Ref arch for ve sg248155
PAM g.tr 3832

Recently uploaded (20)

PPTX
Chapter 5: Probability Theory and Statistics
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Heart disease approach using modified random forest and particle swarm optimi...
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
project resource management chapter-09.pdf
PDF
1 - Historical Antecedents, Social Consideration.pdf
PPTX
TLE Review Electricity (Electricity).pptx
PDF
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
PPTX
1. Introduction to Computer Programming.pptx
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PPTX
Tartificialntelligence_presentation.pptx
PDF
Mushroom cultivation and it's methods.pdf
PDF
Zenith AI: Advanced Artificial Intelligence
PDF
Hindi spoken digit analysis for native and non-native speakers
PDF
WOOl fibre morphology and structure.pdf for textiles
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
PDF
Web App vs Mobile App What Should You Build First.pdf
PDF
Approach and Philosophy of On baking technology
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
Chapter 5: Probability Theory and Statistics
Programs and apps: productivity, graphics, security and other tools
Heart disease approach using modified random forest and particle swarm optimi...
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
project resource management chapter-09.pdf
1 - Historical Antecedents, Social Consideration.pdf
TLE Review Electricity (Electricity).pptx
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
1. Introduction to Computer Programming.pptx
MIND Revenue Release Quarter 2 2025 Press Release
Tartificialntelligence_presentation.pptx
Mushroom cultivation and it's methods.pdf
Zenith AI: Advanced Artificial Intelligence
Hindi spoken digit analysis for native and non-native speakers
WOOl fibre morphology and structure.pdf for textiles
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
Web App vs Mobile App What Should You Build First.pdf
Approach and Philosophy of On baking technology
Building Integrated photovoltaic BIPV_UPV.pdf

Perf stat windows

  • 1. Performance and Statistics Collector (Perfstat 7-mode) 7.36 UNIX/Linux, 7.36 Windows Windows rsh may hang if there are no remaining ports on the filer for the stderr socket. The filer will indicate "couldn't connect second port". Perfstat should detect and abort the command, but output from the command is lost, and in rare circumstances the command may have to be killed by hand. Aborted instances of rsh may cause console warnings about inaccessible files. Windows disk performance counters are assumed to be enabled. Older versions of windows may require explicit activation with diskperf -y and a reboot. Perfstat on Windows XP Service Pack 2 will display "Terminal read..." errors. This is a problem in rsh.exe - see Microsoft KB article: KB892099. Perfstat: Version 7.36 4-2011 - perfstat.exe is a tool for capturing performance and configuration statistics. - Output from perfstat is sent to standard out and is typically captured in an output file for later analysis. - perfstat.exe is capable of capturing info from one Windows host and multiple NetApp storage controllers simultaneously. - For controller data capture, the user must have RSH or SSH privileges to the controller. Unless instructed otherwise, perfstat will use 'root' as the default username to communicate remotely with storage controllers.  Usage: (basic options list) perfstat [-f controllername] [-t time] > perfstat.out perfstat –f akfiler7.ak.providence.org -t 5 -I 5 -I > perfstat"Date_%date:~4,2%%date:~7,2%%date:~10,4%Time_%time:~0,2%h%time:~3,2%m%time:~6,2%s" H:NAUtilyperfstat7_20110411.exe -f NAS2854 -t 5 -I 5 -I > perfstat"NAS2854_Date_%date:~4,2%%date:~7,2%%date:~10,4%Time_%time:~0,2%h%time:~3,2%m%time:~6,2%s" where: -f controllername - host name or IP address of target controller -t time - collect performance data for 'time' minutes Simple Example: Capture data on local host and one controller for 5 minutes: perfstat -f controller1 -t 5 > perfstat.out Capture data on multiple hosts and controllers for 10 minutes: perfstat -f controller1,controller2 -t 10 > perfstat.out Capture data for five 1 minute iterations, with 10 minutes between successive iterations: perfstat -f controller1 -t 1 -i 5,10 > perfstat.out
  • 2. Usage: (more perfstat [-f [-t [-i complete options list) controllername[,controllername1,controllername2,...]] time] (sample time per iteration, default 2) n[,m]] (repeat n times with m minutes between samples, defaults: n=1,m=0) [-I] (force perfstat to execute all iterations) [-l login[:password]] (rsh/ssh login and password for rsh only) [-F] (do not capture information from local host) [-V] (do not capture vfiler data) [-p] (capture performance data only, no config info [-c] (capture config info only, no performance data [-L] (capture logs - beware verbose output [-E cmd[,cmd2,cmd3]... (exclude commands) [-P domain1[,domain2,domain3...] (capture profiles, use "-P flat" to capture complete profile) [-v] (print version info only) [-q] (quiet mode - suppress all console input) [-x] (print what commands will be issued without actually issuing them [-d] (debug mode - beware verbose output) [-m msinfo_path] (path to msinfo32.exe) [-S pw:|kf:] (use ssh instead of rsh) [-k] (disable collection of "stutter" statit; i.e., collect 1 statit report that covers the entire iteration) [-K] (collect only "stutter" statit reports over the entire iteration) [-T default | sk_mod,level[,sk_mod2,level,...]] (collect sktrace) [-B sk_buffer_size] (specify sktrace buffer size) [-C seconds] (the number of seconds to wait on command processesdefault is 70 seconds) [-w minutes] (total number of minutes to wait for perfstat execution to complete. Default will be 5 minutes) Notes: -P saves profiling data in a subdirectory 'gmon' of the current working directory and deletes any existing gmon files on the controller -E exludes all foreground commands that have at least the cmd as a substring; E.g. -E snap,vol - excludes all 'snap*' and 'vol*' commands -E "snap list -v" - excludes only the command 'snap list -v' -S requires the plink ssh client to be available in the working path
  • 3. To authenticate with a password, use the syntax -S pw: For public key authentication, use the syntax -S kf:, where keyfile is a Putty private keyfile created with puttygen. plink and puttygen are available for free download at http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html Additionally, the -l option can be used to specify usernames for controller login. E.g., perfstat.exe -S -l user -T used to toggle sktrace collection and specify sk modules and the levels at which trace data should be collected for those modules. Some valid sk modules include SK, WAFL, DISK, and SCSITARGET. For default values of 'SK 7 WAFL 4', specify '-T default'. sktrace data will be copied off of the controller(s) and into the current working directory from where perfstat was invoked. values of 'SK 7 WAFL 4', specify '-T default'. sktrace data will be copied off of the controller(s) and into the current working directory from where perfstat was invoked. -B used to manually set the sktrace buffer size. By default, perfstat will use a default value of '40m' (40MB). Please note that it is required that the units be specified with the size in the format: k (KB), m (MB), or g (GB). This value should only be changed if specifically advised by global support. Early termination of execution: as of v7.00 perfstat will terminate iterations early if a calculated max runtime is met or exceeded. If it is required that perfstat must execute all iterations regardless of the total runtime, please use the '-I' option. Monitoring for 24 hour periods A common practice is to capture perfstat data 24 hours a day and archive some number of data samples (e.g. 1 week worth). The recommended method for doing this is to capture multiple small samples throughout the day, rather than one 24 hour sample. Many customers script this or place it in the cron job log. Here are some typical examples: perfstat -f filer1 -t 30 -i 46 > perfstat.$date.out NOTE: For Windows users the example below shows a nice way to format perfstat output file names with date and time information: perfstat -f filer1 -t 30 -i 46 > perfstat-"Date_%date:~4,2%%date:~7,2%%date:~10,4%Time_%time:~0,2%h%time:~3,2%m%time:~6,2%s" Both examples above will capture 46 samples of 30 minute intervals. This is a total of 23 hours. Since perfstat uses a lot of rsh commands and the time to complete the rsh's can vary, it often runs for slightly longer than the specified time. To compensate for this (and not have 2 perfstat tools running concurrently), we recommend a 23 hour run to cover a 24 hour period.
  • 4. H:NAUtily>perfstat7_20110411.exe -f NAS2854 -t 5 -I 5 -I > perfstat-"NAS2854_D ate_%date:~4,2%%date:~7,2%%date:~10,4%-Time_%time:~0,2%h%time:~3,2%m%time:~6,2%s " Perfstat v7.36 (4-2011) RSH to filer NAS2854 fails! Quitting. H:NAUtily>perfstat7_20110411.exe -f NAS2854.providence.org -t 5 -I 5 -I > perf stat-"NAS2854_Date_%date:~4,2%%date:~7,2%%date:~10,4%-Time_%time:~0,2%h%time:~3, 2%m%time:~6,2%s" Perfstat v7.36 (4-2011) RSH to filer NAS2854.providence.org fails! Quitting. H:NAUtily>perfstat7_20110411.exe -f 170.220.66.13 -t 5 -I 5 -I > perfstat-"NAS 2854_Date_%date:~4,2%%date:~7,2%%date:~10,4%-Time_%time:~0,2%h%time:~3,2%m%time: ~6,2%s" Perfstat v7.36 (4-2011) RSH to filer 170.220.66.13 fails! Quitting. H:NAUtily>perfstat7_20110411.exe -f akfiler5.ak.providence.org -t 5 -I 5 -I > perfstat-"NAS2854_Date_%date:~4,2%%date:~7,2%%date:~10,4%-Time_%time:~0,2%h%time :~3,2%m%time:~6,2%s" Perfstat v7.36 (4-2011) RSH to filer akfiler5.ak.providence.org fails! Quitting. H:NAUtily>