Skip to content

dos_mem

Dale Fugier edited this page Jul 1, 2026 · 1 revision

Returns a list containing information about current available memory. The function returns information about both physical and virtual memory. Use the rtos function to convert the return values to strings.

Syntax

(dos_mem)

Returns

A list of numbers describing the current state of memory if successful. The return values are as follows:

Value Description
Memory Load The percent of memory in use (integer).
Total Physical Total bytes of physical memory.
Available Physical Available bytes of free physical memory.
Total Page File Total bytes of the paging file.
Available Page File Available bytes in the paging file.
Total Virtual Total user bytes of address space.
Available Virtual Available, free user bytes of address space.

nil on error.

Example

Command: (dos_mem)
(27 5.3633e+008 3.90562e+008 1.30926e+009 1.18208e+009 2.14735e+009 2.06644e+009)

Clone this wiki locally