Dear Dirk,

I hope I did nothing wrong removing your address and
<[email protected]> from the CC list.

Am Donnerstag, den 28.07.2011, 17:25 -0500 schrieb Dirk Eddelbuettel:

> On 28 July 2011 at 23:22, Paul Menzel wrote:
> | Package: r-base
> | Version: 2.13.1-1
> | Severity: important
> | 
> | Dear Debian folks,
> | 
> | 
> | The following command reliably freezes my system after one or two
> | seconds and the only way to recover is to cold reset the system.
> | 
> |     > n = 10000
> |     > length = 10000
> |     > R = matrix(sample(c(-1,1),length*n,replace=T),nrow=n)
> 
> Do you have 800mb free? Rule of thumb with R is that you need about 3 times
> as much RAM as the largest object, so are you on a 4gb machine?

No and no. The machine only has 2 GB of which the GNOME with Evolution
and Epiphany takes the most (41 %).

> | Trying this on a different system (totally different) running Debian
> | Squeeze, i. e. R version 2.11.1-6, I get an error message though.
> | 
> |     > n = 10000
> |     > length = 10000
> |     > R = matrix(sample(c(-1,1),length*n,replace=T),nrow=n)
> |     Error: cannot allocate vector of size 762.9 Mb
> | 
> | First I suspected RAM/memory problems because the RAM fills up pretty
> | quickly, but Memtest86+ did not reveal any errors. Additionally I am
> | still running `linux-image-2.6.32-5-amd64` (2.6.32-31) because of bug
> | #613979, but that should not cause any problems.
> | 
> | It would be great if you could advise me of how to continue to solve
> | this problem.
> 
> Get more ram,

As replied to Douglas I am still pretty sure that my machine freezes,
since the clock did not advance and the mouse pointer did not move at
all.

> or use a smaller problem.  It works like a charm here (on a
> "large" 64bit machine running 2.13.1):
> 
> edd@.......:~$ r -e "n <- 10000; R <-
> matrix(sample(c(-1L,1L),n*n,replace=T),nrow=n); print(dim(R))"
> [1] 10000 10000
> edd@.......:~$

I guess, I have to abstain from using matrices and use a for loop over
smaller matrices (or vectors).

> (r is from the littler package)

Thank you for telling me about `r`. This looks useful.

[…]


Thanks,

Paul

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to