I would like to increase (or decrease) the amount of memory available to R. What are the methods for achieving this?
相关问题
- R - Quantstart: Testing Strategy on Multiple Equit
- What uses more memory in c++? An 2 ints or 2 funct
- Using predict with svyglm
- Reshape matrix by rows
- Extract P-Values from Dunnett Test into a Table by
相关文章
- How to convert summary output to a data frame?
- How to plot smoother curves in R
- Paste all possible diagonals of an n*n matrix or d
- ess-rdired: I get this error “no ESS process is as
- How to use doMC under Windows or alternative paral
- dyLimit for limited time in Dygraphs
- Saving state of Shiny app to be restored later
- How to insert pictures into each individual bar in
Microsoft Windows accepts any memory request from processes if it could be done.
There is no limit for the memory that can be provided to a process, except the Virtual Memory Size.
Virtual Memory Size is 4GB in 32bit systems for any processes, no matter how many applications you are running. Any processes can allocate up to 4GB memory in 32bit systems.
In practice, Windows automatically allocates some parts of allocated memory from RAM or page-file depending on processes requests and paging file mechanism.
But another limit is the size of paging file. If you have a small paging-file, you cannot allocated large memories. You could increase the size of paging file according to Microsoft to have more memory space.
Use
memory.limit()
. You can increase the default using this command,memory.limit(size=2500)
, where the size is in MB. You need to be using 64-bit in order to take real advantage of this.One other suggestion is to use memory efficient objects wherever possible: for instance, use a matrix instead of a data.frame.
From:
http://gking.harvard.edu/zelig/docs/How_do_I2.html (mirror)
which gives you the amount of available memory in MB. In previous versions of R you needed to use:
round(memory.limit()/2^20, 2)
.