Skip to content

This is a customized iostat tool for SPDK application.

License

Notifications You must be signed in to change notification settings

hyswtj/spdk-iostat-tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

This is a customized iostat tool for SPDK application.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published