Displaying 20 results from an estimated 82 matches for "786432".
2000 Feb 11
1
astonishing memory phenomenon
...a, gc() only seem to
reflect the space needed for a vector of pointers to char, the space used
for the character data itself is ... hidden!?
Here the data: I have 6 MB heap, and can do
> x <- rep(1, 350000); gc(); rm(x); gc()
free total (Mb)
Ncells 61034 250000 4.8
Vcells 350955 786432 6.0
free total (Mb)
Ncells 61036 250000 4.8
Vcells 700956 786432 6.0
which is using about 2.67 MB RAM for double numbers.
Trying for 3.05 MB fails (well, rep() obviously needs twice the memory, x <-
double(700000) works)
> x <- rep(1, 400000); gc(); rm(x); gc()
Error: heap...
2011 Nov 13
1
Understand Ncells and Vcells, from gc()
Dear all,
I am working on a 64 bits Linux system.
I issue the following R commands:
> rm(list=ls()) # To remove all objects in the workspace.
> gc() # To free memory.
used (Mb) gc trigger (Mb) max used (Mb)
Ncells 124250 6.7 350000 18.7 350000 18.7
Vcells 124547 1.0 786432 6.0 476934 3.7
> gc() # I had to do it again, don't know why!
used (Mb) gc trigger (Mb) max used (Mb)
Ncells 124257 6.7 350000 18.7 350000 18.7
Vcells 124574 1.0 786432 6.0 476934 3.7
> gc() # Just to be sure things have stabilized.
used (Mb) gc trigger (Mb) max used (Mb)
Ncells 124257...
2006 May 22
1
win2k memory problem with merge()'ing repeatedly (long email)
...Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> gc()
used (Mb) gc trigger (Mb) max used (Mb)
Ncells 178186 4.8 407500 10.9 350000 9.4
Vcells 73112 0.6 786432 6.0 333585 2.6
> # take the information in the .csv files created from the emails
> setwd("C:/Documents and Settings/c_oriordain_s/My Documents/pasip/mms/mms_emails")
>
> # the input file from Amdocs (as supplied by revenue assurance)
> amdocs_csv_filename <- "a...
2008 Jul 20
2
Erro: cannot allocate vector of size 216.0 Mb
...ied
increasing memory.limit() and memory.size(max=TRUE), but nothing.
Just before the command:
> memory.size(max=TRUE)
[1] 13.4375
> memory.limit()
[1] 1535.875
> gc()
used (Mb) gc trigger (Mb) max used (Mb)
Ncells 209552 5.6 407500 10.9 350000 9.4
Vcells 125966 1.0 786432 6.0 496686 3.8
>
I increased the memory limit:
> memory.limit(3000)
NULL
> memory.limit()
[1] 3000
> memory.size()
[1] 11.33070
> memory.size(max=TRUE)
[1] 13.4375
> gc()
used (Mb) gc trigger (Mb) max used (Mb)
Ncells 209552 5.6 407500 10.9 350000 9.4
Vcel...
2002 Oct 11
1
growing process size in simulation
I came across this in a simulation I ran under 1.6.0: If I do something
like
R> x <- rnorm(10)
R> rval <- NULL
R> for(i in 1:100000) rval <- t.test(x)$p.value
then the process size remains at about 14M under 1.5.1, but it seems to
be almost linearly growing up to more than 100M under 1.6.0.
I know that the above simulation is nonsense, but it was the simplest I
could come up
2011 Nov 13
1
To moderator
...I issue the following R commands:
>> > rm(list=ls()) # To remove all objects in the workspace.
>> > gc() # To free memory.
>> used (Mb) gc trigger (Mb) max used (Mb)
>> Ncells 124250 6.7 350000 18.7 350000 18.7
>> Vcells 124547 1.0 786432 6.0 476934 3.7
>> > gc() # I had to do it again, don't know why!
>> used (Mb) gc trigger (Mb) max used (Mb)
>> Ncells 124257 6.7 350000 18.7 350000 18.7
>> Vcells 124574 1.0 786432 6.0 476934 3.7
>> > gc() # Just to be sure things...
2005 Dec 14
2
The fastest way to select and execute a few selected functions inside a function
...ctions, even if I
need only one:
myf.all<-function(x){
list(mean=mean(x), max=max(x), sum=sum(x))
}
> gc();system.time(for(i in 1:10000)myf.all(1:20))
used (Mb) gc trigger (Mb) max used (Mb)
Ncells 165659 4.5 350000 9.4 350000 9.4
Vcells 61135 0.5 786432 6.0 283043 2.2
[1] 0.90 0.00 1.08 NA NA
> gc();system.time(for(i in 1:10000)myf(FUN="mean",1:20))
used (Mb) gc trigger (Mb) max used (Mb)
Ncells 165659 4.5 350000 9.4 350000 9.4
Vcells 61135 0.5 786432 6.0 283043 2.2
[1] 1.14 0.00 1.40 NA N...
2018 Nov 09
0
virsh dominfo not returning any stats
...increasing, but vcpu.0.time is not. It's also not reporting a vcpu.0.wait on this centos hypervisor.
# virsh domstats
Domain: '3a1de3d0-9de3-4876-a51a-1337d2ad0b87'
state.state=1
state.reason=5
cpu.time=18530581887
cpu.user=430000000
cpu.system=2910000000
balloon.current=786432
balloon.maximum=786432
vcpu.current=1
vcpu.maximum=1
vcpu.0.state=1
vcpu.0.time=1145240000000
# virsh domstats
Domain: '3a1de3d0-9de3-4876-a51a-1337d2ad0b87'
state.state=1
state.reason=5
cpu.time=18530581887
cpu.user=430000000
cpu.system=2910000000
balloon.current=7864...
2005 Jan 14
1
S3/S4 classes performance comparison
...nt=obj,add1=add1,add2=add2,type=type)
}
S4vector <- function(vec,...){
new("S4content",type="vector",content=vec,...)
}
### Now the test
> test <- rnorm(10000)
> gc()
used (Mb) gc trigger (Mb)
Ncells 169135 4.6 531268 14.2
Vcells 75260 0.6 786432 6.0
> (system.time(lapply(test,S3vector)))
[1] 0.17 0.00 0.19 NA NA
> gc()
used (Mb) gc trigger (Mb)
Ncells 169136 4.6 531268 14.2
Vcells 75266 0.6 786432 6.0
> (system.time(lapply(test,S4vector)))
[1] 15.08 0.00 15.13 NA NA
-----
There is here a facto...
2004 Aug 18
1
Memory Problems in R
...rified that I don't have any objects in memory when R
starts up, and that memory limits are set to NA. Here is some output:
> ls()
character(0)
> mem.limits()
nsize vsize
NA NA
> gc()
used (Mb) gc trigger (Mb)
Ncells 432197 11.6 531268 14.2
Vcells 116586 0.9 786432 6.0
> v<-rep(0,268435431)
Error: cannot allocate vector of size 2097151 Kb
> v<-rep(0,268435430)
> object.size(v)
[1] 2147483468
> gc()
used (Mb) gc trigger (Mb)
Ncells 432214 11.6 741108 19.8
Vcells 268552029 2048.9 268939773 2051.9
Does R have a li...
2004 Jan 14
2
R internal data types
I am trying to figure out R data types and/or storage mode. For example:
> #From a clean workspace
> gc()
used (Mb) gc trigger (Mb)
Ncells 415227 11.1 597831 16
Vcells 103533 0.8 786432 6
> x <- seq(0,100000,1)
> is.integer(x)
[1] FALSE
> is.double(x)
[1] TRUE
> object.size(x)
[1] 800036
> gc()
used (Mb) gc trigger (Mb)
Ncells 415247 11.1 667722 17.9
Vcells 203543 1.6 786432 6.0
> x <- as.integer(x)
> is.integer(x)
[1] TRUE
>...
2004 Jul 03
4
counting the occurrences of vectors
Hi:
I have two matrices, A and B, where A is n x k, and B is m x k, where n >> m >> k. Is there a computationally fast way to count the number of times each row (a k-vector) of B occurs in A? Thanks for any suggestions.
Best,
Ravi.
[[alternative HTML version deleted]]
2006 May 16
2
Large database help
...d work with 2 variables
but it seems not possible:
R : Copyright 2005, The R Foundation for Statistical Computing
Version 2.2.1 (2005-12-20 r36812)
ISBN 3-900051-07-0
> gc()
used (Mb) gc trigger (Mb) max used (Mb)
Ncells 169011 4.6 350000 9.4 350000 9.4
Vcells 62418 0.5 786432 6.0 289957 2.3
> memory.limit(size=4090)
NULL
> memory.limit()
[1] 4288675840
> system.time(a<-matrix(runif(1e6),nrow=1))
[1] 0.28 0.02 2.42 NA NA
> gc()
used (Mb) gc trigger (Mb) max used (Mb)
Ncells 171344 4.6 350000 9.4 350000 9.4
Vcells 1063212 8.2...
2003 Oct 28
1
Loading a "sub-package"
Hi Folks,
The inspiration for this query is described below, but it
prompts a general question:
If one wants to use only one or a few functions from a library,
is there a way to load only these, without loading the library,
short of going into the package source and extracting what is
needed (including of course any auxiliary functions and compiled
code they may depend on)?
What prompted this
2006 May 05
1
converting code into a function - seperating a data frame with n columns into n individual vectors
I have many very large dataframes with 20 columns
each.
In order to conserve memory, I wish to separate the
data frame into 20 vectors, each named the name of the
dataframe followed by .1,.2,.3
.20.
(For example purposes, one data frame is named
?testa?.)
e.g. testa.1, testa.2, testa.3
I have written the code to do this (see below). I am
trying to convert this into a function that I can
reuse.
2007 Feb 12
1
syslinux, append initrd Limitations
...via SYSLINUX a initrd file. My syslinux.cfg on a loop
device contains the following:
=== 8< ===
default linux
prompt 1
timeout 1
display boot.msg
F1 boot.msg
F2 options.msg
F3 general.msg
F4 param.msg
F5 rescue.msg
F7 snake.msg
label linux
kernel vmlinuz
append initrd=initrd.img ramdisk_size=786432 ks=file:/ks.cfg \
console=tty1 console=ttyS0,57600
=== 8< ===
my initrd is 535M big, and is comopressed with grzip -9. The initrd
tried to load on startup but later after some points it stops loading
and seems to hang.
So my Question is - How big can be a initrd for syslinux?
Thanks in advanc...
2003 Jul 01
1
Warning message in scatter.smooth (modreg)
...gt; scatter.smooth(Na, S)
Warning message:
k-d tree limited by memory. ncmax= 200
I haven't used scatter.smooth much but when I have, I haven't seen this
message before.
gc() returns
> gc()
used (Mb) gc trigger (Mb)
Ncells 417693 11.2 667722 17.9
Vcells 103949 0.8 786432 6.0
This is on a Win XP box with 512 MB RAM, with plenty of space still
available (Task Manager Reports 216 MB of RAM and pagefile in use).
I have looked through the help files for loess and loess.control but
didn't see anything about ncmax. Can someone explain why I might be
getting thi...
2008 Sep 24
2
cannot allocate memory
I am getting "Error: cannot allocate vector of size 197 MB".
I know that similar problems were discussed a lot already, but I
didn't find any satisfactory answers so far!
Details:
*** I have XP (32bit) with 4GB ram. At the time when the problem
appeared I had 1.5GB of available physical memory.
*** I increased R memory limit to 3GB via memory.limit(3000)
*** I did gs() and got
2007 May 25
0
Recent changes in R related to CHARSXPs
...here is a comparison of time and memory for loading all the
environments (hash tables) in Bioconductor's GO annotation data
package.
## unpatched
> gc()
used (Mb) gc trigger (Mb) max used (Mb)
Ncells 168891 9.1 350000 18.7 350000 18.7
Vcells 115731 0.9 786432 6.0 425918 3.3
> library("GO")
> system.time(for (e in ls(2)) get(e))
user system elapsed
51.919 1.168 53.228
> gc()
used (Mb) gc trigger (Mb) max used (Mb)
Ncells 17879072 954.9 19658017 1049.9 18683826 997.9
Vcells 31...
2008 Sep 09
1
Memory allocation problem (during kmeans)
...ons to me and excuse me because i am a
newbie.
Here the default information for the 64bit os:
> sessionInfo()
R version 2.7.1 (2008-06-23)
x86_64-redhat-linux-gnu
> gc()
used (Mb) gc trigger (Mb) max used (Mb)
Ncells 137955 7.4 350000 18.7 350000 18.7
Vcells 141455 1.1 786432 6.0 601347 4.6
I tried also to start R using the options to control the available memory
and the result still the same. or maybe i don't assign the correct values.
Thank you in advance.
--
Rami BATAL
[[alternative HTML version deleted]]