You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am struggling to control memory usage while using tapp. I specify memfrac = 0, memmax = 5 and provide a temporary filename to the function being applied within tapp, but many 10s of GBs of RAM are still being used. This is an issue when I try to run the code in parallel using future_walk with callr, triggering a std::bad_alloc error. I can't figure out if I am misunderstanding how to use memmax (or related parameters) or if there is a bug where tapp is not respecting memfrac and memmax .
It appears that using steps=nrow(x)/10 as @rhijmans suggests in this issue prevents the rampant memory use. This is described as the older work-around, making me wonder if this new feature didn't make it to tapp.
I cannot do much without more information. In the closed issue you refer to you can see the type of thing that you can report (terraOptions and mem_info) . Adding verbose=TRUE to the wopt list can also help. You are also not reporting your OS/versions.
I am struggling to control memory usage while using
tapp
. I specifymemfrac = 0
,memmax = 5
and provide a temporaryfilename
to the function being applied withintapp
, but many 10s of GBs of RAM are still being used. This is an issue when I try to run the code in parallel usingfuture_walk
withcallr
, triggering astd::bad_alloc
error. I can't figure out if I am misunderstanding how to usememmax
(or related parameters) or if there is a bug wheretapp
is not respectingmemfrac
andmemmax
.Here is a snippet of the problematic code:
The general problem being solved here is calculating the mean across several thousands bands that represent hourly climate data.
I can work on generating a reprex if the issue is not clear. Thanks in advance!
The text was updated successfully, but these errors were encountered: