vmstatd - a dynamic kernel memory profiler

SYNOPSIS

vmstatd(1) The vmstatd utility polls the kernel for dynamic memory usage (from the malloc(9) family) and maintains a trace file.
rrdvmstat(1) The rrdvmstat utility takes a vmstatd(1) trace file and generates a graphical plot with rrdtool(1).
vmstatd(5) The vmstatd file contains a history of the kernels dynamic memory usage as created by vmstatd(1).

LAST UPDATED

The current version is 0.3.0, released 11-05-2008. There are no known outstanding bugs. This release has support for mult-NetBSD (only releases, snapshots and devel, following 11-05-2008). Outstanding features are still monitoring pool(9) as well as malloc(9), and real-time monitoring for rrdvmstat(1).

OVERVIEW

The vmstatd suite, vmstatd(1) and rrdvmstat(1), trace and plot dynamic memory usage in the kernel. At this time, these traces are limited to in-kernel allocations with the malloc(9) functions. These tools work with the fine NetBSD and OpenBSD operating systems on any architecture.
The suite is divided into front-end and back-end tools. The only back-end tool is vmstatd(1), which polls the kernel for dynamic memory statistics. In order to collect statistics, the vmstatd(1) must be running. Plots of kernel memory statistics are produced by front-end tools, which interact with the trace file of vmstatd(1), usually at /var/db/vmstatd.db. At this time this is limited to the rrdvmstat(1) tool, which uses rrdtool(1) to produce meaningful plots.

GALLERY


UVM amap

temp

vnodes (alternate template)

DEPENDENCIES

You'll need a recent version of OpenBSD or NetBSD. vmstatd doesn't run on any other system. vmstatd(1) has no dependencies, but rrdvmstat(1) requires the rrdtool package. In order to build the web sources, you'll need libxml and ImageMagick (not a dependency for OpenBSD/NetBSD ports). In order to build the document PDF files, you'll need to have teTeX_base installed (also not a dependency).

DOWNLOAD

Source Package: vmstatd-0.3.0.tgz (vmstatd-0.3.0.md5)
OpenBSD Port: vmstatd-0.3.0-obsd.tgz (vmstatd-0.3.0.md5)
NetBSD Port*: vmstatd-0.3.0-nbsd.tgz (vmstatd-0.3.0.md5)

*NetBSD port works automatically under mult-NetBSD.

AUTHORS

Kristaps Džonsons, kristaps at domain kth.se, wrote the vmstatd tools. Please contact him with bug reports and so on. Many thanks go to the BSD.lv Project.