Ende.SystemMemoryInfo

interface

interface Ende.SystemMemoryInfo

Information returned from a call to Ende.systemMemoryInfo.

Properties

total

total: number

Total installed memory in bytes.

free

free: number

Unused memory in bytes.

available

available: number

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

buffers: number

Memory used by kernel buffers.

cached

cached: number

Memory used by the page cache and slabs.

swapTotal

swapTotal: number

Total swap memory.

swapFree

swapFree: number

Unused swap memory.

Ende.systemMemoryInfo

function ยท requires --allow-sys

function Ende.systemMemoryInfo(): SystemMemoryInfo

Displays the total amount of free and used physical and swap memory in the system, as well as the buffers and caches used by the kernel.

This is similar to the free command in Linux

console.log(Ende.systemMemoryInfo());

Requires allow-sys permission.