Skip to content
Prev 59174 / 63424 Next

[External] Re: .Internal(quit(...)): system call failed: Cannot allocate memory

On Thu, 26 Nov 2020, Jan Gorecki wrote:

            
I'm not convinced anything useful can be done that would work well for
your application without working badly for others.

If you want to drive this close to your memory limits you are probably
going to have to take responsibility for some tuning at your end. One
option in ?Memory you might try is the R_MAX_VSIZE environment
variable. On my 16Gb machine with R_MAX_VSIZE=16Gb your example fails
very quickly with

Error: vector memory exhausted (limit reached?)

rather than churning for an hour trying to make things work. Setting
memory and/or virtual memory limits in your shell is another option.

Best,

luke