Documentation
¶
Overview ¶
Package xfs provides access to statistics exposed by the XFS filesystem.
Index ¶
- type AttributeOperationStats
- type BTreeStats
- type BlockMappingStats
- type BufferStats
- type DirectoryOperationStats
- type ExtendedPrecisionStats
- type ExtentAllocationStats
- type FS
- type InodeClusteringStats
- type InodeOperationStats
- type LogOperationStats
- type ReadWriteStats
- type Stats
- type TransactionStats
- type VnodeStats
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AttributeOperationStats ¶
AttributeOperationStats contains statistics regarding manipulation of XFS extended file attributes.
type BTreeStats ¶
type BTreeStats struct { Lookups uint32 Compares uint32 RecordsInserted uint32 RecordsDeleted uint32 }
BTreeStats contains statistics regarding an XFS internal B-tree.
type BlockMappingStats ¶
type BlockMappingStats struct { Reads uint32 Writes uint32 Unmaps uint32 ExtentListInsertions uint32 ExtentListDeletions uint32 ExtentListLookups uint32 ExtentListCompares uint32 }
BlockMappingStats contains statistics regarding XFS block maps.
type BufferStats ¶
type BufferStats struct { Get uint32 Create uint32 GetLocked uint32 GetLockedWaited uint32 BusyLocked uint32 MissLocked uint32 PageRetries uint32 PageFound uint32 GetRead uint32 }
BufferStats contains statistics regarding XFS read/write I/O buffers.
type DirectoryOperationStats ¶
type DirectoryOperationStats struct { Lookups uint32 Creates uint32 Removes uint32 Getdents uint32 }
DirectoryOperationStats contains statistics regarding XFS directory entries.
type ExtendedPrecisionStats ¶
ExtendedPrecisionStats contains high precision counters used to track the total number of bytes read, written, or flushed, during XFS operations.
type ExtentAllocationStats ¶
type ExtentAllocationStats struct { ExtentsAllocated uint32 BlocksAllocated uint32 ExtentsFreed uint32 BlocksFreed uint32 }
ExtentAllocationStats contains statistics regarding XFS extent allocations.
type FS ¶
type FS struct {
// contains filtered or unexported fields
}
FS represents the pseudo-filesystems proc and sys, which provides an interface to kernel data structures.
func NewDefaultFS ¶ added in v0.0.2
NewDefaultFS returns a new XFS handle using the default proc and sys mountPoints. It will error if either of the mounts point can't be read.
func NewFS ¶
NewFS returns a new XFS handle using the given proc and sys mountPoints. It will error if either of the mounts point can't be read.
type InodeClusteringStats ¶
InodeClusteringStats contains statistics regarding XFS inode clustering operations.
type InodeOperationStats ¶
type InodeOperationStats struct { Attempts uint32 Found uint32 Recycle uint32 Missed uint32 Duplicate uint32 Reclaims uint32 AttributeChange uint32 }
InodeOperationStats contains statistics regarding XFS inode operations.
type LogOperationStats ¶
type LogOperationStats struct { Writes uint32 Blocks uint32 NoInternalBuffers uint32 Force uint32 ForceSleep uint32 }
LogOperationStats contains statistics regarding the XFS log buffer.
type ReadWriteStats ¶
ReadWriteStats contains statistics regarding the number of read and write system calls for XFS filesystems.
type Stats ¶
type Stats struct { // The name of the filesystem used to source these statistics. // If empty, this indicates aggregated statistics for all XFS // filesystems on the host. Name string ExtentAllocation ExtentAllocationStats AllocationBTree BTreeStats BlockMapping BlockMappingStats BlockMapBTree BTreeStats DirectoryOperation DirectoryOperationStats Transaction TransactionStats InodeOperation InodeOperationStats LogOperation LogOperationStats ReadWrite ReadWriteStats AttributeOperation AttributeOperationStats InodeClustering InodeClusteringStats Vnode VnodeStats Buffer BufferStats ExtendedPrecision ExtendedPrecisionStats }
Stats contains XFS filesystem runtime statistics, parsed from /proc/fs/xfs/stat.
The names and meanings of each statistic were taken from http://xfs.org/index.php/Runtime_Stats and xfs_stats.h in the Linux kernel source. Most counters are uint32s (same data types used in xfs_stats.h), but some of the "extended precision stats" are uint64s.
type TransactionStats ¶
TransactionStats contains statistics regarding XFS metadata transactions.