[GRASS-dev] r.local.relief G_realloc error

Hi,

does anyone have an idea?
https://gis.stackexchange.com/questions/148212/grass-make-local-relief-error

r.contours cannot handle this amount of cells?

Markus

Markus Neteler wrote:

does anyone have an idea?
https://gis.stackexchange.com/questions/148212/grass-make-local-relief-error

r.contours cannot handle this amount of cells?

r.contour creates a DCELL array for the current region then reads the
raster data into it.

12500 rows by 10000 cols by 8 bytes per cell is 1 GB of memory, on top
of anything else the module uses. It's not inconceivable that the
system's configured resource limits don't allow a single process to
use that much.

In such a situation, the first thing to do is to check the current
soft limits with "ulimit -a". If they are insufficient, check the hard
limits with "ulimit -aH". If the soft limits can be increased, do so;
otherwise, ask the system administrator to increase the hard limits
(these are normally set by the pam_limits module according to
/etc/security/limits.conf and/or /etc/security/limits.d/*).

Soft limits are usually set below the hard limits to prevent a
misbehaving process from rendering the system unusable. On a
multi-user system, hard limits may be set to prevent a single user
from monopolising resource; there isn't much reason to set hard limits
on a single-user system.

--
Glynn Clements <glynn@gclements.plus.com>