Processing monitor data
The mon_fsstatd daemon writes physical file system size data for Linux® on z/VM® to the z/VM monitor stream.
The following is the format of the file system size data
that is passed to the z/VM monitor
stream. One sample monitor record is written for each physical file
system that is mounted at the time of the sample interval. The
monitor data in each record contains a header that consists of a time
stamp, the length of the data, and an offset. The header is followed
by the file system data (as obtained from statvfs). The file system
data fields begin with fs_
.
Type | Name | Description |
---|---|---|
__u64 | time_stamp | Time at which the file system data was sampled. |
__u16 | data_len | Length of data that follows the header. |
__u16 | data_offset | Offset from start of the header to the start of the file system data (that is, to the fields that begin with fs_). |
__u16 | fs_name_len | Length of the file system name. The file system name can be too long to fit in the monitor record. If so, this length is the portion of the name that is contained in the monitor record. |
char [fs_name_len] | fs_name | The file system name. If the name is too long to fit in the monitor record, the name is truncated to the length in the fs_name_len field. |
__u16 | fs_dir_len | Length of the mount directory name. The mount directory name can be too long to fit in the monitor record. If so, this length is the portion of the name that is contained in the monitor record. |
char[fs_dir_len] | fs_dir | The mount directory name. If the name is too long to fit in the monitor record, the name is truncated to the length in the fs_dir_len field. |
__u16 | fs_type_len | Length of the mount type. The mount type can be too long to fit in the monitor record. If so, this length is the portion that is contained in the monitor record. |
char[fs_type_len] | fs_type | The mount type (as returned by getmntent). If the type is too long to fit in the monitor record, the type is truncated to the length in the fs_type_len field. |
__u64 | fs_bsize | File system block size. |
__u64 | fs_frsize | Fragment size. |
__u64 | fs_blocks | Total data blocks in file system. |
__u64 | fs_bfree | Free blocks in fs. |
__u64 | fs_bavail | Free blocks avail to non-superuser. |
__u64 | fs_files | Total file nodes in file system. |
__u64 | fs_ffree | Free file nodes in fs. |
__u64 | fs_favail | Free file nodes available to non-superuser. |
__u64 | fs_flag | Mount flags. |
Use the time_stamp to correlate all file systems that were sampled in a given interval.