[GRASS-dev] v.in.ogr Killed by Linux for saturating RAM+SWAP

Yann Chemin dr.yann.chemin at gmail.com
Mon Sep 30 05:25:15 PDT 2019


Answering to my own question.

I can increase the SWAP size on a running Linux by:

sudo swapoff -a
sudo dd if=/dev/zero of=/swapfile bs=1G count=8
>> 8+0 records in
>> 8+0 records out
>> 8589934592 bytes (8.6 GB, 8.0 GiB) copied, 12.7623 s, 673 MB/s
sudo mkswap /swapfile
>> Setting up swapspace version 1, size = 8 GiB (8589930496 bytes)
>> no label, UUID=xxxxxxxxx
sudo swapon /swapfile
grep SwapTotal /proc/meminfo
>> SwapTotal:       8388604 kB

----------
Dr. Yann Chemin
+33 7 83 85 5234
JRC, Ispra, IT



On Mon, 30 Sep 2019 at 14:16, Yann Chemin <dr.yann.chemin at gmail.com> wrote:

> Hi devs,
> I am trying to import a vector and it gets killed. Is there a direct way
> to let it not use the whole RAM+SWAP or should I get a bigger RAM system to
> do the manipulation ?
> Thanks,
> Yann
>
> Importing 6146401 features (OGR layer <merged>)...
>  100%
> -----------------------------------------------------
> Registering primitives...
> -----------------------------------------------------
> Cleaning polygons
> -----------------------------------------------------
> Breaking polygons...
> Breaking polygons (pass 1: select break points)...
>  100%
> Breaking polygons (pass 2: break at selected points)...
> Killed
>
>
> ----------
> Dr. Yann Chemin
> +33 7 83 85 5234
> JRC, Ispra, IT
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20190930/bf7b8d60/attachment.html>


More information about the grass-dev mailing list