File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -386,10 +386,13 @@ for i in "$@"; do
386
386
debug " Y_TILE_RANGE = $TYMIN $TYMAX "
387
387
388
388
389
+ # check free RAM
390
+ MEMORY=$( LANG=" C" ; free --mega | awk ' /^Mem/ { printf("%.0fM\n", $2 * 0.05) }' )
391
+
389
392
# cube the file, spawn multiple jobs for each tile
390
393
export WKT ORIGX ORIGY TILESIZE CHUNKSIZE RES
391
394
export FINP DOUT COUT INODATA ONODATA RESAMPLE RASTER DATATYPE ATTRIBUTE
392
- $PARALLEL_EXE -j $NJOB cubethis {1} {2} ::: $( seq $TXMIN $TXMAX ) ::: $( seq $TYMIN $TYMAX )
395
+ $PARALLEL_EXE -j $NJOB --memsuspend " $MEMORY " cubethis {1} {2} ::: $( seq $TXMIN $TXMAX ) ::: $( seq $TYMIN $TYMAX )
393
396
394
397
# remove the temporary file
395
398
rm " $FTMP "
Original file line number Diff line number Diff line change 1
- 3.7.12-dev:::2024-05-17_16:02:57
1
+ 3.7.12-dev:::2024-05-21_08:25:19
You can’t perform that action at this time.
0 commit comments