Re: [R] Why was my R process killed spontaneously?

2012-08-24 Thread Jeff Newmiller
Yes, the resources operating systems usually kill for are memory. No, you have not provided a reproducible example. In general, you need to do something different, such as choose a different algorithm, run on a different computer, or split your problem into smaller pieces. --

Re: [R] Why was my R process killed spontaneously?

2012-08-24 Thread flora flora
Thanks for your reply. Does what you said by resources mean memory or something else? Inside my loop, I removed the objects that are created but not used by the next loop and did garbage collection as well. Do you have any idea how I should modify my code such that the system won't kill it? Thanks

Re: [R] Why was my R process killed spontaneously?

2012-08-23 Thread Jeff Newmiller
Yes. Operating systems kill processes that consume excessive resources. That excess may arise from one large computation or from a small one on top of many other allocations... the "straw that broke the camel's back" problem. ---

[R] Why was my R process killed spontaneously?

2012-08-23 Thread flora flora
I tried to use gpuCor function in the gputools package of R to calcuate the pairwise correlations of a matrix of 40,000 columns. Becuase there would be memory issues if I use the whole matrix at a time, I splitted the matrix into submatrix of 10,000 columns and then calculate the pairwise correlat