Skip to content

Routines for determining the memory usage #1258

@vsht

Description

@vsht

Mathics currently misses some useful functions that allow to estimate the amount of RAM
available on the current machine and the memory usage. These are: MemoryAvailable, MemoryInUse, MaxMemoryUsed and $SystemMemory (apparently not documented, here is the output for my machine with 32 GB RAM. It basically just returns the total amount of RAM in bytes)

In[1]:= ?$SystemMemory                                                                                                                       

Out[1]= System`$SystemMemory
        $SystemMemory = 32910770176


        Attributes[$SystemMemory]={Locked, Protected}

This is somewhat relevant for #1174 although not critical.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions