Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

ps_system_memory

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()

ps

List, Query, Manipulate System Processes

v1.6.0
MIT + file LICENSE
Authors
Jay Loden [aut], Dave Daeschler [aut], Giampaolo Rodola' [aut], Gábor Csárdi [aut, cre], RStudio [cph]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.