Skip to content

Latest commit

 

History

History
57 lines (38 loc) · 1.84 KB

README.md

File metadata and controls

57 lines (38 loc) · 1.84 KB

sysstat - System performance tools for the Linux operating system(enable SPDK support in iostat)

Coverity Scan Build Status Build Status

Introduction

This sysstat package is the same as standard sysstat. In particularly, the iostat of this sysstat can also be used to monitor SPDK managed devices. It can report CPU statistics and input/outpurt statistics for both Kernel and SPDK managed devices.

Install

Clone SPDK repository with:

$ git clone https://github.com/spdk/spdk

Build the environment of SPDK and DPDK according to the SPDK guide.

Clone sysstat repository under the same folder as SPDK:

$ git clone https://github.com/YamboZhou/spdk-iostat-tool.git

Configure sysstat for your system:

$ cd sysstat
$ ./configure

Compile and install:

$ make
$ sudo make install

Use Guide

After starting your SPDK application successfully, please use SPDK RPC tool to enable bdev sampling for all bdevs you have.

For example, if you have two bdevs, Malloc0 and Nvme0n1, you could use the following commands:

$ /path/to/spdk/scripts/rpc.py set_bdev_qd_sampling_period Malloc0 1
$ /path/to/spdk/scripts/rpc.py set_bdev_qd_sampling_period Nvme0n1 1

Then you can use iostat to check device state as usual.

Note: the name of devices are the same as that specidied in SPDK configuration file. e.g., Nvme0n1, Malloc0

Note

Now, this is just a initialized version, more works need to be done.

To run the newly build sysstat, either explicitly run as ./iostat or add it in to $PATH to avoid invoke already installed version.

Please refer to https://github.com/sysstat/sysstat to get more information about sysstat.