MemoryStat Class

Represents memory statistics for a cgroup.

public sealed class MemoryStat

Remarks

Every property is nullable because the set of keys memory.stat emits varies by kernel version and configuration. null means the running kernel did not report the value, which is distinct from it reporting zero.

Constructors

NameDescription
MemoryStat()

MemoryStat()

public MemoryStat()

No documentation is available.

Properties

NameDescription
ActiveAnonActive anonymous memory (bytes).
ActiveFileActive file-backed memory (bytes).
AnonMemory used in anonymous mappings (bytes).
FileMemory used to cache filesystem data (bytes).
FileDirtyCached filesystem data that was modified but not yet written back (bytes).
FileMappedCached filesystem data mapped with mmap (bytes).
FileWritebackCached filesystem data being written back to disk (bytes).
InactiveAnonInactive anonymous memory (bytes).
InactiveFileInactive file-backed memory (bytes).
KernelTotal kernel memory (bytes).
KernelStackMemory allocated to kernel stacks (bytes).
PageFaultNumber of page faults.
PageMajorFaultNumber of major page faults.
PageSwapInNumber of pages swapped in.
PageSwapOutNumber of pages swapped out.
PageTablesMemory allocated for page tables (bytes).
PerCpuMemory used for storing per-cpu kernel data structures (bytes).
SlabTotal slab memory (bytes).
SlabReclaimableReclaimable slab memory (bytes).
SlabUnreclaimableUnreclaimable slab memory (bytes).
SockMemory used in network transmission buffers (bytes).
SwapCachedMemory cached in swap (bytes).
UnevictableUnevictable memory (bytes).

ActiveAnon

MemoryStat.cs

Active anonymous memory (bytes).

public long? ActiveAnon { get; }

Property value

long?

ActiveFile

MemoryStat.cs

Active file-backed memory (bytes).

public long? ActiveFile { get; }

Property value

long?

Memory used in anonymous mappings (bytes).

public long? Anon { get; }

Property value

long?

Memory used to cache filesystem data (bytes).

public long? File { get; }

Property value

long?

FileDirty

MemoryStat.cs

Cached filesystem data that was modified but not yet written back (bytes).

public long? FileDirty { get; }

Property value

long?

FileMapped

MemoryStat.cs

Cached filesystem data mapped with mmap (bytes).

public long? FileMapped { get; }

Property value

long?

FileWriteback

MemoryStat.cs

Cached filesystem data being written back to disk (bytes).

public long? FileWriteback { get; }

Property value

long?

InactiveAnon

MemoryStat.cs

Inactive anonymous memory (bytes).

public long? InactiveAnon { get; }

Property value

long?

InactiveFile

MemoryStat.cs

Inactive file-backed memory (bytes).

public long? InactiveFile { get; }

Property value

long?

Total kernel memory (bytes).

public long? Kernel { get; }

Property value

long?

KernelStack

MemoryStat.cs

Memory allocated to kernel stacks (bytes).

public long? KernelStack { get; }

Property value

long?

PageFault

MemoryStat.cs

Number of page faults.

public long? PageFault { get; }

Property value

long?

PageMajorFault

MemoryStat.cs

Number of major page faults.

public long? PageMajorFault { get; }

Property value

long?

PageSwapIn

MemoryStat.cs

Number of pages swapped in.

public long? PageSwapIn { get; }

Property value

long?

PageSwapOut

MemoryStat.cs

Number of pages swapped out.

public long? PageSwapOut { get; }

Property value

long?

PageTables

MemoryStat.cs

Memory allocated for page tables (bytes).

public long? PageTables { get; }

Property value

long?

Memory used for storing per-cpu kernel data structures (bytes).

public long? PerCpu { get; }

Property value

long?

Total slab memory (bytes).

public long? Slab { get; }

Property value

long?

SlabReclaimable

MemoryStat.cs

Reclaimable slab memory (bytes).

public long? SlabReclaimable { get; }

Property value

long?

SlabUnreclaimable

MemoryStat.cs

Unreclaimable slab memory (bytes).

public long? SlabUnreclaimable { get; }

Property value

long?

Memory used in network transmission buffers (bytes).

public long? Sock { get; }

Property value

long?

SwapCached

MemoryStat.cs

Memory cached in swap (bytes).

public long? SwapCached { get; }

Property value

long?

Unevictable

MemoryStat.cs

Unevictable memory (bytes).

public long? Unevictable { get; }

Property value

long?