TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Linux Performance Measurements using vmstat

69 pointsby simonreedover 11 years ago

5 comments

zurnover 11 years ago
It would be high time for some capable &amp; easy to use IO instrumentation in Linux. This (vmstat) has been the state of the art for ~ 20 years and you often long for something better. Not to mention it&#x27;s pretty inaccurate sometimes - reports these huge bursts of IO between periods of idleness even though the disk is munching constantly. Especially with write loads.<p>My ideal tool would let me switch a knob to turn on io profiling and then would let me drill down into the trace, show what processes caused the io, was the io like (contiguous vs seek heavy, fsyncs, etc). A second need is report what kind of io a process incurred during its runtime, a bit like &quot;time&quot;.<p>I guess much like &quot;perf&quot; now but for io.<p>For all I know all the kernel pieces are there already. We do have some newer tools like iotop&#x2F;iostat that are small steps forward. But it&#x27;s pretty quiet.
评论 #6370235 未加载
评论 #6369245 未加载
评论 #6369789 未加载
评论 #6368975 未加载
评论 #6370107 未加载
评论 #6370290 未加载
评论 #6370324 未加载
plqover 11 years ago
Also have a look at &quot;dstat - versatile tool for generating system resource statistics&quot;.<p>It uses colors, so it&#x27;s a bit easier to interpret at first sight.<p>It&#x27;s a simple &quot;emerge dstat&quot; away in Gentoo.
babuskovover 11 years ago
Nice. I would just add one comment. vmstat is very useful if you run VPS. It can be used to easily detect when your hosting provider is overselling the hardware and other users are killing the I&#x2F;O (which happens to be the biggest bottleneck in VPS as CPU and RAM can be easily shared and sliced)
mprovostover 11 years ago
I spent years typing vmstat into Solaris machines after reading Cockroft&#x27;s &quot;Sun Performance and Tuning&quot; book. You would think there would be something better these days, Solaris at least moved on to dtrace. Now I use atop on Linux which isn&#x27;t as low level as dtrace but is much nicer than vmstat.
NatWover 11 years ago
On a mac, you can try: vm_stat (with an underscore)<p><a href="https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/vm_stat.1.html" rel="nofollow">https:&#x2F;&#x2F;developer.apple.com&#x2F;library&#x2F;mac&#x2F;documentation&#x2F;Darwin...</a>