Sample scheduler, memory, paging, I/O, and CPU pressure
Build a paste-ready command, then review its compatibility and effects before running it.
vmstat -w <seconds> <count>Complete required fields to copy the generated command.
read-onlyno known side effects Compatibility
LinuxVerified for Linux using bash, zsh syntax.
Operational knowledgereview due 2027-01-19
Requirementsvmstatvmstat must be installed and available on PATH.
Version supportvmstat Current supported releasesVerified for linux using bash, zsh syntax; consult compatibility notes for platform-specific differences.
Expected signalsprocs -----------------------memory---------------------- ---swap-- -----io---- -system-- --------cpu--------Representative successful output; values vary with the selected target and system state.
Known errorsvmstat: command not foundvmstat is missing or is not available on PATH.
Verifyvmstat -w {{seconds}} {{count}}The output matches the expected target and exits without an error.Rollback noteNot required: this command is read-only and does not change system state.
Command breakdown
01vmstatCommandRuns the vmstat stage of this one-liner.
02-wOptionConfigures vmstat with the -w option.
03<seconds>ParameterA value supplied in the Fill parameters section.
04<count>ParameterA value supplied in the Fill parameters section.
This advanced community-curated one-liner combines several stages. Review every option and placeholder before running it.
Example input
vmstat -w 1 5
Example output
procs -----------------------memory---------------------- ---swap-- -----io---- -system-- --------cpu--------
r b swpd free buff cache si so bi bo in cs us sy id wa st
2 0 0 1827440 201920 5421160 0 0 12 44 1092 2184 18 5 76 1 0
Illustrative output — exact values vary by system and data.
Official sources