amber/deno/system_memory_info

Types

pub type SystemMemoryInfo {
  SystemMemoryInfo(
    total: Int,
    free: Int,
    available: Int,
    buffers: Int,
    cached: Int,
    swap_total: Int,
    swap_free: Int,
  )
}

Constructors

  • SystemMemoryInfo(
      total: Int,
      free: Int,
      available: Int,
      buffers: Int,
      cached: Int,
      swap_total: Int,
      swap_free: Int,
    )

    Arguments

    • total

      Total installed memory in bytes.

    • free

      Unused memory in bytes.

    • available

      Estimation of how much memory, in bytes, is available for starting new applications, without swapping. Unlike the data provided by the cache or free fields, this field takes into account page cache and also that not all reclaimable memory will be reclaimed due to items being in use.

    • buffers

      Memory used by kernel buffers.

    • cached

      Memory used by the page cache and slabs.

    • swap_total

      Total swap memory.

    • swap_free

      Unused swap memory.

Search Document