R does not use more than 4 GB of memory

I am running 64bit R on Ubuntu 12.10 AMD64. I recently added an additional 8 GB of memory for my system, which is 12 GB. But I notice that R gives me an error whenever the memory usage (of a single R session) exceeds 4 GB. When I started 6 R sessions in parallel, each of which consumed ~ 3 GB of memory, my total memory usage increased to 11 GB. But one R session cannot use more than 4 GB! I need to train a random forest model on a large dataset, and I need> 4 GB with one R session.

Update:

R> sessionInfo()

R version 2.15.1 (2012-06-22)
Platform: x86_64-pc-linux-gnu (64-bit)

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C              
 [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8    
 [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8   
 [7] LC_PAPER=C                 LC_NAME=C                 
 [9] LC_ADDRESS=C               LC_TELEPHONE=C            
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods  
[7] base     

loaded via a namespace (and not attached):
[1] tools_2.15.1

Update 2:

$ ulimit -a
core file size          (blocks, -c) 0
data seg size           (kbytes, -d) unlimited
scheduling priority             (-e) 0
file size               (blocks, -f) unlimited
pending signals                 (-i) 92787
max locked memory       (kbytes, -l) 64
max memory size         (kbytes, -m) unlimited
open files                      (-n) 1024
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
real-time priority              (-r) 0
stack size              (kbytes, -s) 8192
cpu time               (seconds, -t) unlimited
max user processes              (-u) 92787
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited
+5
source share
2 answers

I suspect you have process limits limiting any given process to 4G.

ulimit -a , .

, /etc/security/limits.conf /etc/security/limits.d/ .

, :

data
as

. man limits.conf , PAM.

+1

Windows R 32, 64- . , , Linux . IDE, RStudio, , , 32- . Rstudio.

0

All Articles