Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/deno/cli/dts/lib.deno.ns.d.ts>Deno.SystemMemoryInfo

A modern runtime for JavaScript and TypeScript.
Go to Latest
interface Deno.SystemMemoryInfo
import { type Deno } from "https://deno.land/x/deno@v1.28.0/cli/dts/lib.deno.ns.d.ts";
const { SystemMemoryInfo } = Deno;

Information returned from a call to Deno.systemMemoryInfo.

Properties

total: number

Total installed memory in bytes.

free: number

Unused memory in bytes.

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: number

Memory used by kernel buffers.

cached: number

Memory used by the page cache and slabs.

swapTotal: number

Total swap memory.

swapFree: number

Unused swap memory.