Setting the sampling interval

Red Hat Enterprise Linux 9.2 z/VM guest

You can set the time that lapses between consecutive data samples.

About this task

The time that you set is measured by the virtual CPU timer. Because the virtual timer slows down as the guest idles, the sampling interval in real time can be considerably longer than the value you set.

The value in /proc/sys/appldata/interval is the sample interval in milliseconds. The default sample interval is 10 000 ms.

Procedure

To read the current value, issue:
# cat /proc/sys/appldata/interval
To set the sample interval to a different value, write the new value (in milliseconds) to /proc/sys/appldata/interval. Issue a command of this form:
# echo <interval> > /proc/sys/appldata/interval
where <interval> is the new sample interval in milliseconds. The specification must be in the range 1 - 2147483647, where 2,147,483,647 = 2³¹ - 1.

Example

To set the sampling interval to 20 s (20000 ms), issue:
# echo 20000 > /proc/sys/appldata/interval