1 Quick start for Rcollectl

library("Rcollectl")

Collectl is a unix-based tool that will perform measurements on system resource consumption of various types. We provide a demonstration output with the package:

lk = cl_parse(system.file("demotab/demo_1123.tab.gz", package="Rcollectl"))
dim(lk)
#> [1] 478  71
attr(lk, "meta")
#>  [1] "################################################################################"
#>  [2] "# Collectl:   V4.3.1-1  HiRes: 1  Options: -scdnm -P -f./col2.txt "              
#>  [3] "# Host:       stvjc-XPS-13-9300  DaemonOpts: "                                   
#>  [4] "# Booted:     1606052236.57 [20201122-08:37:16]"                                 
#>  [5] "# Distro:     debian bullseye/sid, Ubuntu 20.04.1 LTS  Platform: "               
#>  [6] "# Date:       20201123-144054  Secs: 1606160454 TZ: -0500"                       
#>  [7] "# SubSys:     cdnm Options:  Interval: 1 NumCPUs: 8 [HYPER] NumBud: 0 Flags: i"  
#>  [8] "# Filters:    NfsFilt:  EnvFilt:  TcpFilt: ituc"                                 
#>  [9] "# HZ:         100  Arch: x86_64-linux-gnu-thread-multi PageSize: 4096"           
#> [10] "# Cpu:        GenuineIntel Speed(MHz): 1745.513 Cores: 4  Siblings: 8 Nodes: 1"  
#> [11] "# Kernel:     5.4.0-54-generic  Memory: 15969160 kB  Swap: 2097148 kB"           
#> [12] "# NumDisks:   1 DiskNames: nvme0n1"                                              
#> [13] "# NumNets:    4 NetNames: lo:?? enxc03ebaccccfd:100 docker0:?? wlp0s20f3:??"     
#> [14] "################################################################################"
lk[1:5,1:5]
#>      #Date     Time CPU_User% CPU_Nice% CPU_Sys%
#> 1 20201123 14:40:56         2         0        1
#> 2 20201123 14:40:57         1         0        0
#> 3 20201123 14:40:58         1         0        0
#> 4 20201123 14:40:59         2         0        0
#> 5 20201123 14:41:00         3         0        1
plot_usage(lk)