Paul, 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? | 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, 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@.......:~$ (r is from the littler package) Dirk | Thanks, | | Paul | | | [1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=613979 | | -- System Information: | Debian Release: wheezy/sid | APT prefers unstable | APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental') | Architecture: i386 (x86_64) | | Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores) | Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) | Shell: /bin/sh linked to /bin/bash | | Versions of packages r-base depends on: | ii r-base-core 2.13.1-1 GNU R core of statistical computat | ii r-recommended 2.13.1-1 GNU R collection of recommended pa | | Versions of packages r-base recommends: | ii r-base-html 2.13.1-1 GNU R html docs for statistical co | ii r-doc-html 2.13.1-1 GNU R html manuals for statistical | | Versions of packages r-base suggests: | pn ess <none> (no description available) | pn r-doc-info | r-doc-pdf <none> (no description available) | | -- no debconf information | application/pgp-signature [Press RETURN to save to a file] -- Gauss once played himself in a zero-sum game and won $50. -- #11 at http://www.gaussfacts.com -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org