Returns output of vmstat(8). The procedure runs for > 0.1 seconds! Executes the following command and reads the last output values:
$ vmstat -H dummy 0.1 2
 procs    memory    page                    faults       cpu
 r  b  w  avm  fre  flt  re  pi  po   fr   sr   in   sy   cs us sy id
 1  0  0 607119396864 5717385216 2116   0   1   0 3283  279 1396 9058 9120  4  2 92
 0  0  0 607119396864 5717381120   30   0   0   0    0  300  120 1650 4000  0  3 96
The function returns the following error codes:
E_FORMAT if output format is unexpected.E_PLATFORM if current system is not FreeBSD.E_READ if reading failed or pipe returned no bytes.E_SYSTEM if system call failed.| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=i8), | intent(out) | :: | vmstat(FREEBSD_NVMSTAT) | Values. |