Learn R Programming

gdalraster (version 1.11.1)

get_usable_physical_ram: Get usable physical RAM reported by GDAL

Description

get_usable_physical_ram() returns the total physical RAM, usable by a process, in bytes. It will limit to 2 GB for 32 bit processes. Starting with GDAL 2.4.0, it will also take into account resource limits (virtual memory) on Posix systems. Starting with GDAL 3.6.1, it will also take into account RLIMIT_RSS on Linux. Wrapper of CPLGetUsablePhysicalRAM() in the GDAL Common Portability Library.

Usage

get_usable_physical_ram()

Arguments

Value

Numeric scalar, number of bytes as bit64::integer64 type (or 0 in case of failure).

Examples

Run this code
get_usable_physical_ram()

Run the code above in your browser using DataLab