[R] Server hanging despite efforts to correct memory limits
Thomas Lumley
tlumley at u.washington.edu
Tue Jan 19 17:05:26 CET 2010
You should be able to set limits on memory use for a process in the operating system, eg with limits or ulimits under Unix-alike shells.
-thomas
On Tue, 19 Jan 2010, Nathan Stephens wrote:
> My group is working with datasets between 100 Mb and 1 GB in size, using
> multiple log ins. From the documentation, it appears that vsize is limited
> to 2^30-1, which tends to prove too restrictive for our use. When we drop
> that restriction (set vsize = NA) we end up hanging the server, which
> requires a restart. Is there any way to increase the memory limits on R
> while keeping our jobs from hanging? Having to restart the server is a
> major inconvenience, second only to memory limitations in R.
>
>> mem.limits()
> nsize vsize
> 100000000 NA
>
>> mem.limits(vsize=2^30)
> nsize vsize
> 100000000 1073741824
>
>> mem.limits(vsize=2^31)
> nsize vsize
> 100000000 1073741824
> Warning message:
> In structure(.Internal(mem.
> limits(as.integer(nsize), as.integer(vsize))), :
> NAs introduced by coercion
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
Thomas Lumley Assoc. Professor, Biostatistics
tlumley at u.washington.edu University of Washington, Seattle
More information about the R-help
mailing list