Motr  M0
m0_fs_stats Struct Reference

#include <spiel.h>

Collaboration diagram for m0_fs_stats:
Collaboration graph

Data Fields

m0_bcount_t fs_free_seg
 
m0_bcount_t fs_total_seg
 
m0_bcount_t fs_free_disk
 
m0_bcount_t fs_avail_disk
 
m0_bcount_t fs_total_disk
 
uint32_t fs_svc_total
 
uint32_t fs_svc_replied
 

Detailed Description

Motr filesystem stats. The stats are collected from all processes of the nodes the filesystem builds on. Space counters include respective counts from all BE segments mdservice operates on, including seg0, as well as spaces from all storage devices ioservice operates on. Total space includes all total spaces no matter what state the storage device is in. Unlike to total, free space includes counts only from storage devices currently known as on-line devices.

The stats are collected only from the processes which are known to be online to the moment of m0_spiel_filesystem_stats_fetch() call. The implication is that the sum of IOS, MDS, and CAS instances present in configuration under the profile is reported in m0_fs_stats::fs_svc_total, while the number of polled and replied services is reported in m0_fs_stats::fs_svc_replied. So the fact of having some processes in the cluster being offline, or failed to respond correctly, can be detected by the difference between 'service total' and 'service replied' counters.

Definition at line 1321 of file spiel.h.

Field Documentation

◆ fs_avail_disk

m0_bcount_t fs_avail_disk

available bytes on drives

Definition at line 1325 of file spiel.h.

◆ fs_free_disk

m0_bcount_t fs_free_disk

free bytes on drives

Definition at line 1324 of file spiel.h.

◆ fs_free_seg

m0_bcount_t fs_free_seg

free bytes in BE segments

Definition at line 1322 of file spiel.h.

◆ fs_svc_replied

uint32_t fs_svc_replied

how many of them have replied

Definition at line 1328 of file spiel.h.

◆ fs_svc_total

uint32_t fs_svc_total

total number of IOS, MDS, and CAS

Definition at line 1327 of file spiel.h.

◆ fs_total_disk

m0_bcount_t fs_total_disk

total bytes on drives

Definition at line 1326 of file spiel.h.

◆ fs_total_seg

m0_bcount_t fs_total_seg

total bytes in BE segments

Definition at line 1323 of file spiel.h.


The documentation for this struct was generated from the following file: