search for: f_mem_stats

Displaying 4 results from an estimated 4 matches for "f_mem_stats".

2016 Apr 06
0
Memory problem
...you have a list of the sizes of all the objects that you have in memory? Are you releasing large objects at the end of each simulation run? Are you using 'gc' to garbage collect any memory after deallocating objects? Collect some additional information with a simple function like below: f_mem_stats <- function(memo='') cat(memo, proc.time(), memory.size(), '\n') > f_mem_stats(2) 2 2.85 11.59 85444.93 NA NA 39.08 This will print out what you pass in as a parameter, e.g., the iteration number, and then outputs the amount of CPU and memory used so far. I use this all th...
2016 Apr 06
1
Memory problem
...you have a list of the sizes of all the objects that you have in memory?? Are you releasing large objects at the end of each simulation run?? Are you using 'gc' to garbage collect any memory after deallocating objects?? Collect some additional information with a simple function like below: f_mem_stats <- function(memo='') cat(memo, proc.time(), memory.size(), '\n') > f_mem_stats(2)2 2.85 11.59 85444.93 NA NA 39.08? This will print out what you pass in as a parameter, e.g., the iteration number, and then outputs the amount of CPU and memory used so far.? I use this all the...
2016 Apr 06
0
Memory problem
...sizes of all the objects that you have in memory? Are > you releasing large objects at the end of each simulation run? Are you > using 'gc' to garbage collect any memory after deallocating objects? > Collect some additional information with a simple function like below: > > f_mem_stats <- function(memo='') cat(memo, proc.time(), memory.size(), > '\n') > > > > f_mem_stats(2) > 2 2.85 11.59 85444.93 NA NA 39.08 > > This will print out what you pass in as a parameter, e.g., the iteration > number, and then outputs the amount of CPU and m...
2016 Apr 06
4
Memory problem
Dear R Forum, I have about 2000+ FX forward transactions and I am trying to run 1000 simulations. If I use less no of simulations, I am able to get the desired results. However, when I try to use more than 1000 simulations, I get following error. > sorted2 <- ddply(sorted, .(currency_from_exch, id), mutate, change_in_mtm_bc = mtm_bc - mtm_bc[1]) Error: cannot allocate vector of size 15.6