[GRASS-dev] [GRASS GIS] #2356: r.stream.basisns uses more memory than given in memory option
GRASS GIS
trac at osgeo.org
Fri Jul 4 01:24:48 PDT 2014
#2356: r.stream.basisns uses more memory than given in memory option
-------------------------------------+--------------------------------------
Reporter: sbl | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.1.0
Component: Addons | Version: svn-trunk
Keywords: r.stream.basins, memory | Platform: Linux
Cpu: x86-64 |
-------------------------------------+--------------------------------------
Changes (by hamish):
* keywords: r.stream.basisns, memory => r.stream.basins, memory
* component: Raster => Addons
Comment:
were the input maps CELL, FCELL or DCELL?
fwiw here's the code,
{{{
opt_swapsize->description = _("Maximum memory used in memory swap mode
(MB)");
opt_swapsize->answer = "300";
...
number_of_segs = (int)atof(opt_swapsize->answer);
number_of_segs = number_of_segs < 32 ? (int)(32 / 0.12) : number_of_segs
/ 0.12;
}}}
if the stream_rast= option is used then two ram_create_map()s happen.
Likely the above number_of_segs isn't taking that into account.
did it work ok when you halved the memory= option?
Hamish
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2356#comment:1>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list