C RFC: wrote a tool to display jails resource usage

Greetings, All! This evening I felt in a creative mood, and sit, and wrote a small, rudimentary tool to display per-jail resource usage.

Here is a sample run:
Code:
# ./jruls -d1
jid  name                  cpu%     mem    r/s    read    w/s  writtn
  1  www                      0   8936K      0       0      0       0
  2  tm                       0   14.0M      0       0      0       0
  3  pms                      0  164.7M      0       0      0       0
  4  imap                     0   11.6M      0       0      0       0
  5  homebridge               0   5324K      0       0      0       0
  6  fever                    0   86.3M      0       0      0       0
  7  develop                172   69.4M     12   1536K      2     164
  8  chitanka                 0  101.6M      0       0      0       0
  9  cdns                     0   68.7M      0       0      0       0
#

Named it jruls (after jails resource usage list) and posted its source code on GitHub. Care to share any feedback?
 
Back
Top