Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vdo-monitor

A terminal UI for monitoring a Linux VDO (dm-vdo) volume — the device-mapper target that does transparent deduplication and compression.

vdo-monitor against a VDO volume under load

The recording above is generated in a self-contained VM; see demo/ to regenerate it.

How it reads stats

Statistics come straight from the kernel dm-vdo target: the tool opens /dev/mapper/control and issues a DM_TARGET_MSG stats ioctl, then parses the reply. Dirty/writeback context is read from /proc/meminfo and /proc/sys/vm/dirty_{ratio,background_ratio}.

Requirements

  • Linux with the dm-vdo target (mainlined in kernel 6.9) and a VDO volume.
  • root — issuing the device-mapper ioctl requires access to /dev/mapper/control. Without it, the tool shows "Waiting for vdo stats…".

Build

cargo build --release
sudo ./target/release/vdo-monitor <device>

Usage

vdo-monitor [--mount <path>] [--interval <seconds>] <device>

<device> is the device-mapper basename of the VDO volume (for example vdo0, or an LVM name like vg-name-vpool). --mount adds filesystem usage for a mounted path. Find VDO device names with dmsetup ls --target vdo.

Option Description
<device> dm-mapper basename of the VDO volume (required)
--mount <path> Also show filesystem usage for this mount point
--interval <seconds> Refresh interval (default: 5)

Keys

Key Action
q / Q / Esc / Ctrl-C Quit

License

Licensed under the GNU General Public License, version 2 or later (GPL-2.0-or-later). See LICENSE.

About

A TUI for monitoring a dm-vdo deduplication and compression volume.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages