<div dir="ltr"><div><div><div><div><div><br><br>On Thu, Sep 28, 2017 at 11:14 PM, Rich Shepard <<a href="mailto:rshepard@appl-ecosys.com">rshepard@appl-ecosys.com</a>> wrote:<br>><br>>   Haven't before experienced this one. There are 4G of memory on this<br>> desktop and v.import choked on a large .shp file (all files consume ~1G on<br>> disk):<br>><br>> ERROR: G_realloc: unable to allocate 264880028 bytes of memory at lib/vector/Vlib/snap.c:252<br>> ERROR: Unable to import OGR datasource </home/rshepard/data/grassdata/wash-state-data/land-use/landuse10.shp><br>><br>>   With no other major user application processes running top shows 2G+ free<br>> memory so I'm puzzled why 265M could not be allocated.<br><br></div>The update interval of top might be too long to show the amount of memory consumed in the last split seconds.<br><br></div>I suggest to use v.in.ogr instead of v.import because v.import snaps by default which consumes a lot of memory and takes a long time.<br><br></div>If v.in.ogr suggests snapping, you can set the environment variable <br>GRASS_VECTOR_LOWMEM=1<br></div>to reduce memory consumption. This will slow down the import because temporary data will be kept on disk instead of in memory.<br><br></div>Markus M<br><div><div><div><div><div><br></div></div></div></div></div></div>