[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 02:41:10 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                   |  
-------------------------------------+--------------------------------------

Comment(by hamish):

 so for an unsegmented cell map, 180752 *  141312 * 4 bytes = ~97GB to hold
 one whole map in ram.

 r.stream.basins/io.h defines segments as 256x256, so for memory=10000 (mb)
 {{{
   seg_create_map(&map_dirs, SROWS, SCOLS, number_of_segs, CELL_TYPE);
 }}}

 we get
  bytes = ~20.8GB, and needs that for each of the two or three open maps.


 can you try r61149?


 Hamish

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/2356#comment:6>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list