( ** Go back to PARENTPAGE ../Sampling-System-Cores-Statistics.html)
( ** Go back to HOMESITE https://www.tcnd.com)
( ** Go back to SetSphere https://www.setsphere.com)

Analyzing the Linux system statistics using ASPL

ASPL set variables can memorize the temporal changes in their data, hence they are called differential group variables. Here we sample the Linux system statistics from /proc/stat using the GG-function ggsysstat() in an iterative loop to create a differential group variable (representing the changes in the system over time). We show how to analyze the changes in the Linux system statistics by using ASPL differential operators, and we show how to realize the rate of changes in the statistics as the system is processing over time.

ASPL 1> stats = ggsysstat(grp1,ViennaStats,delay,1000)
get Linux system statistics in the variable stats

ASPL 2> ?7,0 stats
interrogate stats seven times with zero delay; owever, the delay is already implied in ggsysstat() with 1000 millis or 1 second

ASPL 3> dm 5
set display mode to 5

ASPL 4> @ stats
print the differential group variable stats

ASPL 5> playchanges stats
show the changes in stats, also show rate of change between the last two instances (since intermittence is 0)

ASPL 6> intermittentarc 1
set intermittence to 1

ASPL 7> playchanges stats
show the changes in stats, also show rate of change considering all instances saved stats

ASPL 8> playsim stats
show rate of dissimilarity in stats

ASPL 9> ks user nice system iowait aelm
set ks vector to user nice system iowait aelm

ASPL 10> playchanges stats
show the changes in stats, also show rate of change considering all instances saved stats

ASPL 11> ks user nice system idle iowait irq softirq aelm
set ks vector to user nice system idle iowait irq softirq aelm

ASPL 12> playchanges stats
show the changes in stats, also show rate of change considering all instances saved stats

ASPL 13> differentialallarc 1
set differentialallarc to 1

ASPL 14> g@,`ks~ stats
apply the differential group operator g@ to show the differences in all instances saved in the differential group variable stats

ASPL 15> playop gU,`ks= stats
playop on the labinated group union where ks didn't change

ASPL 16> ks iowait aelm
set ks vector to iowait only aelm is auxiliary and does not play a role in the operations

ASPL 17> playop gU,`ks~ stats
playop on the labinated group union where iowait changed

ASPL 18> playop gU,`ks= stats
playop on the labinated group union where iowait didn't change

ASPL 19> playop gU, stats
playop on the labinated group union

ASPL 20> bye