R: Statistics about system memory usage

ps_system_memory {ps} | R Documentation

## Statistics about system memory usage

### Description

Statistics about system memory usage

### Usage

    ps_system_memory()

### Value

Named list. All numbers are in bytes:

- `total`: total physical memory (exclusive swap).

- `avail` the memory that can be given instantly to processes without the system going into swap. This is calculated by summing different memory values depending on the platform and it is supposed to be used to monitor actual memory usage in a cross platform fashion.

- `percent`: Percentage of memory that is taken.

- `used`: memory used, calculated differently depending on the platform and designed for informational purposes only. `total` - `free` does not necessarily match `used`.

- `free`: memory not being used at all (zeroed) that is readily available; note that this doesn’t reflect the actual memory available (use `available` instead). `total` - `used` does not necessarily match `free`.

- `active`: (Unix only) memory currently in use or very recently used, and so it is in RAM.

- `inactive`: (Unix only) memory that is marked as not used.

- `wired`: (macOS only) memory that is marked to always stay in RAM. It is never moved to disk.

- `buffers`: (Linux only) cache for things like file system metadata.

- `cached`: (Linux only) cache for various things.

- `shared`: (Linux only) memory that may be simultaneously accessed by multiple processes.

- `slab`: (Linux only) in-kernel data structures cache.

### See Also

Other memory functions: `ps_system_swap()`

### Examples

    ps_system_memory()

[Package ps version 1.5.0 Index]