TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Linux Performance Measurements using vmstat

69 点作者 simonreed超过 11 年前

5 条评论

zurn超过 11 年前
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 未加载
plq超过 11 年前
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.
babuskov超过 11 年前
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)
mprovost超过 11 年前
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.
NatW超过 11 年前
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>