Struct rustis::commands::MemoryStats

source ·
pub struct MemoryStats {
Show 27 fields pub peak_allocated: usize, pub total_allocated: usize, pub startup_allocated: usize, pub replication_backlog: usize, pub clients_slaves: usize, pub clients_normal: usize, pub cluster_links: usize, pub aof_buffer: usize, pub lua_caches: usize, pub functions_caches: usize, pub overhead_total: usize, pub keys_count: usize, pub keys_bytes_per_key: usize, pub dataset_bytes: usize, pub dataset_percentage: f64, pub peak_percentage: f64, pub allocator_allocated: usize, pub allocator_active: usize, pub allocator_resident: usize, pub allocator_fragmentation_ratio: f64, pub allocator_fragmentation_bytes: isize, pub allocator_rss_ratio: f64, pub allocator_rss_bytes: isize, pub rss_overhead_ratio: f64, pub rss_overhead_bytes: isize, pub fragmentation: f64, pub fragmentation_bytes: isize,
}
Expand description

Result for the memory_stats command.

Fields§

§peak_allocated: usize

Peak memory consumed by Redis in bytes (see INFO’s used_memory_peak)

§total_allocated: usize

Total number of bytes allocated by Redis using its allocator (see INFO’s used_memory)

§startup_allocated: usize

Initial amount of memory consumed by Redis at startup in bytes (see INFO’s used_memory_startup)

§replication_backlog: usize

Size in bytes of the replication backlog (see INFO’s repl_backlog_active)

§clients_slaves: usize

The total size in bytes of all replicas overheads (output and query buffers, connection contexts)

§clients_normal: usize

The total size in bytes of all clients overheads (output and query buffers, connection contexts)

§cluster_links: usize

Memory usage by cluster links (Added in Redis 7.0, see INFO’s mem_cluster_links).

§aof_buffer: usize

The summed size in bytes of AOF related buffers.

§lua_caches: usize

the summed size in bytes of the overheads of the Lua scripts’ caches

§functions_caches: usize

the summed size in bytes of the overheads of the functions’ caches

§overhead_total: usize

The sum of all overheads, i.e. startup.allocated, replication.backlog, clients.slaves, clients.normal, aof.buffer and those of the internal data structures that are used in managing the Redis keyspace (see INFO’s used_memory_overhead)

§keys_count: usize

The total number of keys stored across all databases in the server

§keys_bytes_per_key: usize

The ratio between net memory usage (total.allocated minus startup.allocated) and keys.count

§dataset_bytes: usize

The size in bytes of the dataset, i.e. overhead.total subtracted from total.allocated (see INFO’s used_memory_dataset)

§dataset_percentage: f64

The percentage of dataset.bytes out of the net memory usage

§peak_percentage: f64

The percentage of peak.allocated out of total.allocated

§allocator_allocated: usize§allocator_active: usize§allocator_resident: usize§allocator_fragmentation_ratio: f64§allocator_fragmentation_bytes: isize§allocator_rss_ratio: f64§allocator_rss_bytes: isize§rss_overhead_ratio: f64§rss_overhead_bytes: isize§fragmentation: f64

See INFO’s mem_fragmentation_ratio

§fragmentation_bytes: isize

Trait Implementations§

source§

impl Debug for MemoryStats

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for MemoryStats

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V

source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

source§

impl<T> Response for T