Hi,
I am running Rstutio in Ubuntu Linux and I am trying to run a process that requires more RAM than I have. I have 32GB and to increase it I was allocating 12GB in swap memory. However, while I can see the swap memory with free -m
in terminal, Rstudio does not seem to be using this and crashes soon after the RAM reaches usage 30Gb.
The Rstudio memory usage report shows this:
Does anyone know how can I make it use swap memory?
The way I increased my swap memory was this:
# Swap memory change - linux ubuntu
# following https://www.linuxtechi.com/extend-swap-space-using-swap-file-in-linux/
# check space
free -m
swapon -s
# create 10G swap file
sudo fallocate -l 10G /swap_file
# secure swap file
sudo chmod 600 /swap_file
# enable swap area on file
sudo mkswap /swap_file
# Extend Swap Space
sudo swapon /swap_file
# check space
free -m
swapon -s
Rstudio version
mode
[1] "desktop"
$version
[1] ‘2022.2.3.492’
$long_version
[1] "2022.02.3+492"
$release_name
[1] "Prairie Trillium"
R version
platform x86_64-pc-linux-gnu
arch x86_64
os linux-gnu
system x86_64, linux-gnu
status
major 4
minor 2.1
year 2022
month 06
day 23
svn rev 82513
language R
version.string R version 4.2.1 (2022-06-23)
nickname Funny-Looking Kid
OS version
NAME="Ubuntu"
VERSION="20.04.4 LTS (Focal Fossa)"
ID=ubuntu