memory.size {utils} | R Documentation |
memory.size
reports the current or maximum memory allocation of
the malloc
function used in this version of R.
memory.limit
reports or increases the limit in force
on the total allocation.
memory.size(max = FALSE) memory.limit(size = NA)
max |
logical. If true the maximum amount of memory obtained from the OS is reported, otherwise the amount currently in use. |
size |
numeric. If NA report the memory size, otherwise
request a new limit, in Mb. Values of up to 4096 are allowed, but
see Details. |
Command-line flag --max-mem-size
sets the maximum value of
obtainable memory (including a very small amount of housekeeping
overhead). This cannot exceed 3Gb on Windows, and most versions of
Windows are limited to 2Gb.
Memory limits can only be increased.
Size in bytes.
Memory-limits for other limits.
The rw-FAQ for more details and references.
memory.size() memory.size(TRUE) round(memory.limit()/1048576.0, 2)