Collecting System Performance Status

Getting ready

$ vagrant up
$ vagrant ssh

How to do it

Use Free with Command line for memory usage or space

Form the man pp



CPU Details

Getting ready

$ vagrant up
$ vagrant ssh

How to do it

From the man pages lscpu, it display information about the CPU architecture.

$ lscpu
Architecture:          x86_64
CPU op-mode(s):        32-bit, 64-bit
Byte Order:            Little Endian
CPU(s):                1
On-line CPU(s) list:   0
Thread(s) per core:    1
Core(s) per socket:    1
Socket(s):             1
NUMA node(s):          1
Vendor ID:             GenuineIntel
CPU family:            15
Model:                 6
Model name:            Common KVM processor
Stepping:              1
CPU MHz:               2594.106
BogoMIPS:              5188.21
Hypervisor vendor:     KVM
Virtualization type:   full
L1d cache:             32K
L1i cache:             32K
L2 cache:              4096K
NUMA node0 CPU(s):     0
Use command collectl to collect system performance

From the man pages collectctl, it Collects data that describes the current system status. Download the epel repository

$ wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-6.noarch.rpm
$ rpm -ivh epel-release-7-6.noarch.rpm

Install the collectl

$ yum install collectl collectd

use help command for collectl

# collectl --help

collectl key option for basic

$ collectl --help
This is a subset of the most common switches and even the descriptions are
abbreviated.  To see all type 'collectl -x', to get started just type 'collectl'

usage: collectl [switches]
  -c, --count      count      collect this number of samples and exit
  -f, --filename   file       name of directory/file to write to
  -i, --interval   int        collection interval in seconds [default=1]
  -o, --options    options    misc formatting options, --showoptions for all
                                d|D - include date in output
                                  T - include time in output
                                  z - turn off compression of plot files
  -p, --playback   file       playback results from 'file' (be sure to quote
                  if wild carded) or the shell might mess it up
  -P, --plot                  generate output in 'plot' format
  -s, --subsys     subsys     specify one or more subsystems [default=cdn]
      --verbose               display output in verbose format (automatically
                              selected when brief doesn't make sense)

Various types of help
  -h, --help                  print this text
  -v, --version               print version
  -V, --showdefs              print operational defaults
  -x, --helpextend            extended help, more details descriptions too
  -X, --helpall               shows all help concatenated together

  --showoptions               show all the options
  --showsubsys                show all the subsystems
  --showsubopts               show all subsystem specific options
  --showtopopts               show --top options

  --showheader                show file header that 'would be' generated
  --showcolheaders            show column headers that 'would be' generated
  --showslabaliases           for SLUB allocator, show non-root aliases
  --showrootslabs             same as --showslabaliases but use 'root' names

simple collectl command

$ collectl
waiting for 1 second sample...
#<--------CPU--------><----------Disks-----------><----------Network---------->
#cpu sys inter  ctxsw KBRead  Reads KBWrit Writes   KBIn  PktIn  KBOut  PktOut 
   0   0    39     88      0      0      0      0      0      1      0       1 
   0   0    47    107     72      2      0      0      0      1      0       1 
   0   0    38     86      0      0      0      0      0      1      0       1 
   0   0    48    115      0      0     55      7      0      1      0       1 
   0   0    38     92      0      0      0      0      0      1      0       1 
   1   1    40     86      0      0      0      0      0      1      0       1 
   0   0    39     86      0      0      0      0      0      1      0       1 
   0   0    37     83      0      0      0      0      0      1      0       1 
   0   0    39     86      0      0      0      0      0      1      0       1 
   0   0    39     89      0      0      0      0      0      1      0       1 
   0   0    41     90      0      0      0      0      0      1      0       1 
   0   0    38     85      0      0      0      0      0      1      0       1 
   0   0    39     88      0      0      0      0      0      1      0       1 
   0   0    40     87      0      0      0      0      0      1      0       1 
   0   0    40     90      0      0      0      0      0      1      0       1 
   0   0    38     86      0      0      0      0      0      1      0       1 
   1   1    40     93      0      0      0      0      0      1      0       1 
   0   0    40     86      0      0      0      0      0      1      0       1 
   0   0    40     88      0      0      0      0      0      1      0       1 
   0   0    39     86      0      0      0      0      0      1      0       1 
   0   0    42     93      0      0      0      0      0      1      0       1 
   0   0    39     85      0      0      0      0      0      1      0       1

Collect all the perfomance

$ collectl --all
-sx disabled because 'lspci' not in /usr/bin/lspci or '/usr/sbin' or '/usr/bin'
If somewhere else, move it or define in collectl.conf
waiting for 1 second sample...
#<--------CPU--------><Int-><-----------------Memory-----------------><----------Disks-----------><----------Network----------><-------TCP--------><------Sockets-----><----Files---><------NFS Totals------>
#cpu sys inter  ctxsw Cpu0 Free Buff Cach Inac Slab  Map   Fragments KBRead  Reads KBWrit Writes   KBIn  PktIn  KBOut  PktOut   IP  Tcp  Udp Icmp  Tcp  Udp  Raw Frag Handle Inodes  Reads Writes Meta Comm 
   0   0    18     44   18  80M    0 180M  87M  42M 183M jhddjfeb864      0      0      0      0      0      1      0       1    0    0    0    0  180    0    0    0   1152  15481      0      0    0    0 
   0   0    31     65   31  80M    0 180M  87M  42M 183M jhddjfeb864      0      0      8      2      0      1      0       1    0    0    0    0  180    0    0    0   1152  15481      0      0    0    0 
   0   0    20     49   20  80M    0 180M  87M  42M 183M jhddjfeb864      0      0      0      0      0      1      0       1    0    0    0    0  180    0    0    0   1152  15481      0      0    0    0 
   0   0    25     49   25  80M    0 180M  87M  42M 183M jhddjfeb864      0      0      0      0      0      1      0       1    0    0    0    0  180    0    0    0   1152  15481      0      0    0    0 
   1   1    18     41   18  80M    0 180M  87M  42M 183M jhddjfeb864      0      0      0      0      0      1      0       1    0    0    0    0  180    0    0    0   1152  15481      0      0    0    0 
   0   0    20     51   20  80M    0 180M  87M  42M 183M jhddjfeb864      0      0      0      0      0      1      0       1    0    0    0    0  180    0    0    0   1152  15481      0      0    0    0 
   0   0    23     53   23  80M    0 180M  87M  42M 183M jhddjfeb864      0      0     12      3      0      1      0       1    0    0    0    0  180    0    0    0   1152  15481      0      0    0    0 
   0   0    23     50   23  80M    0 180M  87M  42M 183M jhddjfeb864      0      0      0      0      0      1      0       1    0    0    0    0  180    0    0    0   1152  15481      0      0    0    0 
   1   0    19     42   19  80M    0 180M  87M  42M 183M jhddjfeb864      0      0      0      0      0      1      0       1    0    0    0    0  180    0    0    0   1152  15481      0      0    0    0 
   0   0    27     49   27  80M    0 180M  87M  42M 183M jhddjfeb864      0      0      0      0      0      2      0       2    0    0    0    0  180    0    0    0   1152  15481      0      0    0    0 
   0   0    19     43   19  80M    0 180M  87M  42M 183M jhddjfeb864      0      0      0      0      0      1      0       1    0    0    0    0  180    0    0    0   1152  15481      0      0    0    0

Collect cpu usage

$ collectl -sc
waiting for 1 second sample...
#<--------CPU-------->
#cpu sys inter  ctxsw 
   0   0    42     91 
   0   0    43     92 
   0   0    41     91 
   0   0    37     86 
   0   0    44     96 
   0   0    36     82 
   0   0    42     89 
   0   0    35     81 
   0   0    54    114 
   0   0    38     82 
   0   0    40     88 
   0   0    36     80 
   0   0    40     90 
   0   0    72    115 
   0   0    39     89 
   0   0    38     88 
   0   0    41     89 
   0   0    35     81 
   0   0    41     90 
   0   0    34     79 
   0   0    40     90 
   0   0    35     80 
#<--------CPU-------->
#cpu sys inter  ctxsw 
   0   0    40     89 
   0   0    39     83

Process of cpu management

$ collectl -scdn
waiting for 1 second sample...
#<--------CPU--------><----------Disks-----------><----------Network---------->
#cpu sys inter  ctxsw KBRead  Reads KBWrit Writes   KBIn  PktIn  KBOut  PktOut 
   0   0    25     52      0      0      0      0      0      1      0       1 
   0   0    21     53      0      0      0      0      0      1      0       1 
   0   0    21     48      0      0      0      0      0      1      0       1 
   0   0    19     48      0      0      0      0      0      1      0       1 
   0   0    22     52      0      0      0      0      0      1      0       1 
   0   0    15     40      0      0      0      0      0      1      0       1 
   0   0    22     53      0      0      0      0      0      1      0       1 
   0   0    16     43      0      0      0      0      0      1      0       1 
   0   0    23     51      0      0      0      0      0      1      0       1 
   0   0    15     41      0      0      0      0      0      1      0       1 
   0   0    19     45      0      0      0      0      0      1      0       1 
   0   0    21     51      0      0      0      0      0      1      0       1 
   0   0    19     48      0      0      0      0      0      1      0       1 
   0   0    20     46      0      0      0      0      0      1      0       1 
   0   0    17     43      0      0      0      0      0      1      0       1

collect memory performance data

$ collectl -sm
waiting for 1 second sample...
#<-----------Memory----------->
#Free Buff Cach Inac Slab  Map 
  61M    0 180M  77M  42M 202M 
  61M    0 180M  77M  42M 202M 
  61M    0 180M  77M  42M 202M 
  61M    0 180M  77M  42M 202M 
  61M    0 180M  77M  42M 202M 
  61M    0 180M  77M  42M 202M 
  61M    0 180M  77M  42M 202M 
  61M    0 180M  77M  42M 202M 
  61M    0 180M  77M  42M 202M 
  61M    0 180M  77M  42M 202M 
  61M    0 180M  77M  42M 202M

collect performance of protocol

$ collectl -st
waiting for 1 second sample...
#<-------TCP-------->
#  IP  Tcp  Udp Icmp 
    0    0    0    0 
    0    0    0    0 
    0    0    0    0 
    0    0    0    0 
    0    0    0    0 
    0    0    0    0 
    0    0    0    0 
    0    0    0    0 
    0    0    0    0 
    0    0    0    0 
    0    0    0    0

Check performance both cpu and protocol

$ collectl -stc
waiting for 1 second sample...
#<--------CPU--------><-------TCP-------->
#cpu sys inter  ctxsw   IP  Tcp  Udp Icmp 
   0   0    18     45    0    0    0    0 
   0   0    20     53    0    0    0    0 
   0   0    21     47    0    0    0    0 
   0   0    13     37    0    0    0    0 
   0   0    27     63    0    0    0    0 
   0   0    14     41    0    0    0    0 
   0   0    20     48    0    0    0    0 
   0   0    13     40    0    0    0    0 
   0   0    23     52    0    0    0    0 
   0   0    15     42    0    0    0    0 
   0   0    23     57    0    0    0    0 
   0   0    14     42    0    0    0    0 
   0   0    18     45    0    0    0    0

collect disk performance

$ collectl -sd
waiting for 1 second sample...
#<----------Disks----------->
#KBRead  Reads KBWrit Writes 
      0      0      0      0 
      0      0      0      0 
      0      0      0      0 
      0      0      0      0 
      0      0      0      0 
      0      0      0      0 
      0      0      0      0 
      0      0      0      0 
      0      0      0      0

Collect performance from individual disk

$  collectl -sD
waiting for 1 second sample...

# DISK STATISTICS (/sec)
#          <---------reads---------><---------writes---------><--------averages--------> Pct
#Name       KBytes Merged  IOs Size  KBytes Merged  IOs Size  RWSize  QLen  Wait SvcTim Util
sda              0      0    0    0       0      0    0    0       0     0     0      0    0
dm-0             0      0    0    0       0      0    0    0       0     0     0      0    0
dm-1             0      0    0    0       0      0    0    0       0     0     0      0    0
sda              0      0    0    0       0      0    0    0       0     0     0      0    0
dm-0             0      0    0    0       0      0    0    0       0     0     0      0    0
dm-1             0      0    0    0       0      0    0    0       0     0     0      0    0
sda              0      0    0    0       0      0    0    0       0     0     0      0    0
dm-0             0      0    0    0       0      0    0    0       0     0     0      0    0
dm-1             0      0    0    0       0      0    0    0       0     0     0      0    0
sda              0      0    0    0       1      0    2    1       0     1    20     20    3
dm-0             0      0    0    0       0      0    0    0       0     0     0      0    0
dm-1             0      0    0    0       1      0    1    2       1     1    40     40    3
sda              0      0    0    0       0      0    0    0       0     0     0      0    0
dm-0             0      0    0    0       0      0    0    0       0     0     0      0    0
dm-1             0      0    0    0       0      0    0    0       0     0     0      0    0

Collect Network performance

$  collectl -sN
waiting for 1 second sample...

# NETWORK STATISTICS (/sec)
#Num     Name   KBIn  PktIn SizeIn  MultI   CmpI  ErrsI  KBOut PktOut  SizeO   CmpO  ErrsO
   0   enp0s3      0      1     60      0      0      0      0      1     82      0      0
   1       lo      0      0      0      0      0      0      0      0      0      0      0
   0   enp0s3      0      1     60      0      0      0      0      1    178      0      0
   1       lo      0      0      0      0      0      0      0      0      0      0      0
   0   enp0s3      0      1     60      0      0      0      0      1     98      0      0
   1       lo      0      0      0      0      0      0      0      0      0      0      0
   0   enp0s3      0      0     60      0      0      0      0      0     82      0      0
   1       lo      0      0      0      0      0      0      0      0      0      0      0
   0   enp0s3      0      1     60      0      0      0      0      1     98      0      0
   1       lo      0      0      0      0      0      0      0      0      0      0      0
   0   enp0s3      0      1     60      0      0      0      0      1     82      0      0
   1       lo      0      0      0      0      0      0      0      0      0      0      0
   0   enp0s3      0      1     60      0      0      0      0      1     82      0      0
   1       lo      0      0      0      0      0      0      0      0      0      0      0
   0   enp0s3      0      1     60      0      0      0      0      1     82      0      0
   1       lo      0      0      0      0      0      0      0      0      0      0      0

collect system performance slab details

$ sudo  collectl -sY
waiting for 60 second sample...

### RECORD    1 >>> localhost <<< (1464781401.001) (Wed Jun  1 07:43:21 2016) ###

# SLAB DETAIL
#                           <-----------Objects----------><---------Slab Allocation------><---Change-->
#Name                       InUse   Bytes   Alloc   Bytes   InUse   Bytes   Total   Bytes   Diff    Pct
Acpi-Namespace                612   24480     612   24480       6   24576       6   24576      0    0.0
Acpi-ParseExt                1680  120960    1680  120960      30  122880      30  122880      0    0.0
RAW                           152  145920     152  145920      19  155648      19  155648      0    0.0
TCP                            24   46080      24   46080       3   49152       3   49152      0    0.0
TCPv6                           8   16384       8   16384       1   16384       1   16384      0    0.0
UDP                            24   24576      24   24576       3   24576       3   24576      0    0.0
UDP-Lite                        0       0       0       0       0       0       0       0      0    0.0
UDPLITEv6                       0       0       0       0       0       0       0       0      0    0.0
UDPv6                          14   16128      14   16128       1   16384       1   16384      0    0.0
anon_vma                     2368  151552    2368  151552      37  151552      37  151552      0    0.0
bdev_cache                     19   15808      19   15808       1   16384       1   16384      0    0.0
blkdev_ioc                     78    8112      78    8112       2    8192       2    8192      0    0.0
blkdev_queue                    8   15360       8   15360       1   16384       1   16384      0    0.0
blkdev_requests              1750  672000    1750  672000     175  716800     175  716800      0    0.0
bsg_cmd                         0       0       0       0       0       0       0       0      0    0.0
buffer_head                 14400 1497600   15249 1585896     391 1601536     391 1601536      0    0.0
cfq_queue                     119   27608     119   27608       7   28672       7   28672      0    0.0
configfs_dir_cache              0       0       0       0       0       0       0       0      0    0.0
dentry                      33432 6418944   33432 6418944    1592 6520832    1592 6520832      0    0.0
dm_rq_target_io                 0       0       0       0       0       0       0       0      0    0.0
dm_uevent                       0       0       0       0       0       0       0       0      0    0.0
dma-kmalloc-1024                0       0       0       0       0       0       0       0      0    0.0
dma-kmalloc-128                 0       0       0       0       0       0       0       0      0    0.0
dma-kmalloc-16                  0       0       0       0       0       0       0       0      0    0.0
dma-kmalloc-192                 0       0       0       0       0       0       0       0      0    0.0
dma-kmalloc-2048                0       0       0       0       0       0       0       0      0    0.0
dma-kmalloc-256                 0       0       0       0       0       0       0       0      0    0.0
dma-kmalloc-32                  0       0       0       0       0       0       0       0      0    0.0
dma-kmalloc-4096                0       0       0       0       0       0       0       0      0    0.0
dma-kmalloc-512                 8    4096       8    4096       1    4096       1    4096      0    0.0
dma-kmalloc-64                  0       0       0       0       0       0       0       0      0    0.0
dma-kmalloc-8                   0       0       0       0       0       0       0       0      0    0.0
dma-kmalloc-8192                0       0       0       0       0       0       0       0      0    0.0
dma-kmalloc-96                  0       0       0       0       0       0       0       0      0    0.0
dquot                           0       0       0       0       0       0       0       0      0    0.0
files_cache                    48   30720      48   30720       4   32768       4   32768      0    0.0
fsnotify_event                204   24480     204   24480       6   24576       6   24576      0    0.0
fsnotify_event_holder      115260 2766240  115260 2766240     678 2777088     678 2777088      0    0.0
hugetlbfs_inode_cache          13    7904      13    7904       1    8192       1    8192      0    0.0
idr_layer_cache               135  285120     135  285120       9  294912       9  294912      0    0.0
iint_cache                      0       0       0       0       0       0       0       0      0    0.0
inode_cache                 10582 6264544   10582 6264544     814 6668288     814 6668288      0    0.0
ip_fib_trie                    73    4088      73    4088       1    4096       1    4096      0    0.0
kcopyd_job                      0       0       0       0       0       0       0       0      0    0.0
kmalloc-1024                  892  913408     912  933888     114  933888     114  933888      0    0.0
kmalloc-128                  1344  172032    1344  172032      42  172032      42  172032      0    0.0
kmalloc-16                  46336  741376   46336  741376     181  741376     181  741376      0    0.0
kmalloc-192                  1644  315648    1869  358848      89  364544      89  364544      0    0.0
kmalloc-2048                  206  421888     208  425984      26  425984      26  425984      0    0.0
kmalloc-256                  2655  679680    3248  831488     203  831488     203  831488      0    0.0
kmalloc-32                 158358 5067456  159360 5099520    1245 5099520    1245 5099520      0    0.0
kmalloc-4096                  185  757760     224  917504      28  917504      28  917504      0    0.0
kmalloc-512                   378  193536     440  225280      55  225280      55  225280      0    0.0
kmalloc-64                  34617 2215488   34688 2220032     542 2220032     542 2220032      0    0.0
kmalloc-8                   76800  614400   76800  614400     150  614400     150  614400      0    0.0
kmalloc-8192                   24  196608      40  327680      10  327680      10  327680      0    0.0
kmalloc-96                   3822  366912    3822  366912      91  372736      91  372736      0    0.0
kmem_cache                     96   24576      96   24576       6   24576       6   24576      0    0.0
kmem_cache_node               128    8192     128    8192       2    8192       2    8192      0    0.0
mm_struct                      60   96000      60   96000       6   98304       6   98304      0    0.0
mqueue_inode_cache              9    8064       9    8064       1    8192       1    8192      0    0.0
net_namespace                   0       0       0       0       0       0       0       0      0    0.0
nf_conntrack_ffffffff819a      65   20280      65   20280       5   20480       5   20480      0    0.0
numa_policy                    15    3960      15    3960       1    4096       1    4096      0    0.0
pid_namespace                   0       0       0       0       0       0       0       0      0    0.0
posix_timers_cache              0       0       0       0       0       0       0       0      0    0.0
proc_inode_cache             1369  898064    1392  913152     116  950272     116  950272      0    0.0
radix_tree_node              3458 2019472    3458 2019472     247 2023424     247 2023424      0    0.0
scsi_cmd_cache                 36   16128      36   16128       4   16384       4   16384      0    0.0
selinux_inode_security      23001 1840080   23001 1840080     451 1847296     451 1847296      0    0.0
shared_policy_node           2125  102000    2125  102000      25  102400      25  102400      0    0.0
shmem_inode_cache             744  505920     744  505920      62  507904      62  507904      0    0.0
sighand_cache                 105  221760     105  221760       7  229376       7  229376      0    0.0
signal_cache                  119  137088     126  145152       9  147456       9  147456      0    0.0
sigqueue                       25    4000      25    4000       1    4096       1    4096      0    0.0
sock_inode_cache              216  138240     216  138240      18  147456      18  147456      0    0.0
sysfs_dir_cache             10476 1173312   10476 1173312     291 1191936     291 1191936      0    0.0
task_struct                   141  410592     154  448448      14  458752      14  458752      0    0.0
task_xstate                    98   56448      98   56448       7   57344       7   57344      0    0.0
taskstats                      12    3936      12    3936       1    4096       1    4096      0    0.0
tw_sock_TCP                    32    8192      32    8192       2    8192       2    8192      0    0.0
tw_sock_TCPv6                   0       0       0       0       0       0       0       0      0    0.0
vm_area_struct               4446  960336    4446  960336     247 1011712     247 1011712      0    0.0
xfs_btree_cur                  19    3952      19    3952       1    4096       1    4096      0    0.0
xfs_da_state                    8    3904       8    3904       1    4096       1    4096      0    0.0
xfs_efd_item                   30   12000      30   12000       3   12288       3   12288      0    0.0
xfs_icr                         0       0       0       0       0       0       0       0      0    0.0
xfs_ili                      4524  687648    4524  687648     174  712704     174  712704      0    0.0
xfs_inode                   10088  10088K   10104  10104K    1263  10104K    1263  10104K      0    0.0
xfs_log_ticket                 22    4048      22    4048       1    4096       1    4096      0    0.0

results matching ""

    No results matching ""