Re: [GRASS-dev] Impossible to kill r.in.gdal

2018-04-17 Thread Markus Neteler
On Mon, Apr 16, 2018 at 4:30 PM, Luca Delucchi  wrote:
> Hi devs,
>
> I'm importing raster dataset with r.in.gdal but I have a problem
> because the processes seems to died but they didn't stop and I'm not
> neither able to kill them, any idea?
>
>  r.in.gdal input=NETCDF:/mnt/sas1/cosmorea6/converted/T_2M/T_2M_199705.nc
> output=T_2M_1997_05 memory=4048 -o
> No projection information available
> Over-riding projection check
> Importing 744 raster bands...
> Importing raster map ...
>  100%
> ^C^C^C^C^C^C^C^C^C^C^C^C^Z
> ^C
> ^C^C^C^C^Z^C
> ^Z^Z

It looks like that the sas1/ device is hanging.

> ps aux | grep r.in.gdal
> lucadelu  9486  0.0  0.1 415908 37880 ?DApr12   0:00
> r.in.gdal 
> input=NETCDF:/mnt/sas1/cosmorea6/converted/RELHUM_2M/RELHUM_2M_199901.nc
> memory=6072 title=COSMO REA6 offset=0 num_digits=0
> output=RELHUM_2M_1999_01 -o --q

--> D state
https://stackoverflow.com/questions/20423521/process-permanently-stuck-on-d-state


...
> killall -9 r.in.gdal

vs
...
> kill -9 9486 9493 16182 16185 43603 47014 47540

killall does not offer -9 but with D state the zombie process cannot
be killed anyway.

So: reboot is the only way (and fix the mounting of the device).

Markus
___
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

[GRASS-dev] Impossible to kill r.in.gdal

2018-04-16 Thread Luca Delucchi
Hi devs,

I'm importing raster dataset with r.in.gdal but I have a problem
because the processes seems to died but they didn't stop and I'm not
neither able to kill them, any idea?

 r.in.gdal input=NETCDF:/mnt/sas1/cosmorea6/converted/T_2M/T_2M_199705.nc
output=T_2M_1997_05 memory=4048 -o
No projection information available
Over-riding projection check
Importing 744 raster bands...
Importing raster map ...
 100%
^C^C^C^C^C^C^C^C^C^C^C^C^Z
^C
^C^C^C^C^Z^C
^Z^Z


ps aux | grep r.in.gdal
lucadelu  9486  0.0  0.1 415908 37880 ?DApr12   0:00
r.in.gdal 
input=NETCDF:/mnt/sas1/cosmorea6/converted/RELHUM_2M/RELHUM_2M_199901.nc
memory=6072 title=COSMO REA6 offset=0 num_digits=0
output=RELHUM_2M_1999_01 -o --q
lucadelu  9493  0.0  0.1 417752 39528 pts/3DApr12   0:00
r.in.gdal input=NETCDF:/mnt/sas1/cosmorea6/converted/T_2M/T_2M_199801.nc
memory=6072 title=COSMO REA6 offset=0 num_digits=0 output=T_2M_1998_01
-o --q
lucadelu 16182  0.0  0.1 415908 37056 ?DApr13   0:00
r.in.gdal 
input=NETCDF:/mnt/sas1/cosmorea6/converted/RELHUM_2M/RELHUM_2M_200101.nc
memory=6072 title=COSMO REA6 offset=0 num_digits=0
output=RELHUM_2M_2001_01 -o --q
lucadelu 16185  0.0  0.1 417752 39288 pts/3DApr13   0:00
r.in.gdal input=NETCDF:/mnt/sas1/cosmorea6/converted/T_2M/T_2M_199701.nc
memory=6072 title=COSMO REA6 offset=0 num_digits=0 output=T_2M_1997_01
-o --q
lucadelu 43603  0.0  0.1 419412 40044 pts/3D+   13:25   0:00
r.in.gdal input=NETCDF:/mnt/sas1/cosmorea6/converted/T_2M/T_2M_199705.nc
output=T_2M_1997_05 memory=4048 -o
lucadelu 44279  0.0  0.0  12784   932 pts/0S+   15:23   0:00 grep r.in.gdal
lucadelu 47014  0.0  1.9 1004312 625336 ?  DApr05   0:52
r.in.gdal 
input=NETCDF:/mnt/sas1/cosmorea6/converted/RELHUM_2M/RELHUM_2M_199701.nc
memory=6072 title=COSMO REA6 offset=0 num_digits=0
output=RELHUM_2M_1997_01 -o --q
lucadelu 47540  0.0  0.9 682468 304164 pts/3   DApr05   0:20
r.in.gdal input=NETCDF:/mnt/sas1/cosmorea6/converted/T_2M/T_2M_199705.nc
memory=6072 title=COSMO REA6 offset=0 num_digits=0 output=T_2M_1997_05
-o --q

killall -9 r.in.gdal

ps aux | grep r.in.gdal
lucadelu  9486  0.0  0.1 415908 37880 ?DApr12   0:00
r.in.gdal 
input=NETCDF:/mnt/sas1/cosmorea6/converted/RELHUM_2M/RELHUM_2M_199901.nc
memory=6072 title=COSMO REA6 offset=0 num_digits=0
output=RELHUM_2M_1999_01 -o --q
lucadelu  9493  0.0  0.1 417752 39528 pts/3DApr12   0:00
r.in.gdal input=NETCDF:/mnt/sas1/cosmorea6/converted/T_2M/T_2M_199801.nc
memory=6072 title=COSMO REA6 offset=0 num_digits=0 output=T_2M_1998_01
-o --q
lucadelu 16182  0.0  0.1 415908 37056 ?DApr13   0:00
r.in.gdal 
input=NETCDF:/mnt/sas1/cosmorea6/converted/RELHUM_2M/RELHUM_2M_200101.nc
memory=6072 title=COSMO REA6 offset=0 num_digits=0
output=RELHUM_2M_2001_01 -o --q
lucadelu 16185  0.0  0.1 417752 39288 pts/3DApr13   0:00
r.in.gdal input=NETCDF:/mnt/sas1/cosmorea6/converted/T_2M/T_2M_199701.nc
memory=6072 title=COSMO REA6 offset=0 num_digits=0 output=T_2M_1997_01
-o --q
lucadelu 43603  0.0  0.1 419412 40044 pts/3D+   13:25   0:00
r.in.gdal input=NETCDF:/mnt/sas1/cosmorea6/converted/T_2M/T_2M_199705.nc
output=T_2M_1997_05 memory=4048 -o
lucadelu 44287  0.0  0.0  12784   944 pts/0S+   15:24   0:00 grep r.in.gdal
lucadelu 47014  0.0  1.9 1004312 625336 ?  DApr05   0:52
r.in.gdal 
input=NETCDF:/mnt/sas1/cosmorea6/converted/RELHUM_2M/RELHUM_2M_199701.nc
memory=6072 title=COSMO REA6 offset=0 num_digits=0
output=RELHUM_2M_1997_01 -o --q
lucadelu 47540  0.0  0.9 682468 304164 pts/3   DApr05   0:20
r.in.gdal input=NETCDF:/mnt/sas1/cosmorea6/converted/T_2M/T_2M_199705.nc
memory=6072 title=COSMO REA6 offset=0 num_digits=0 output=T_2M_1997_05
-o --q

kill -9 9486 9493 16182 16185 43603 47014 47540

ps aux | grep r.in.gdal
lucadelu  9486  0.0  0.1 415908 37880 ?DApr12   0:00
r.in.gdal 
input=NETCDF:/mnt/sas1/cosmorea6/converted/RELHUM_2M/RELHUM_2M_199901.nc
memory=6072 title=COSMO REA6 offset=0 num_digits=0
output=RELHUM_2M_1999_01 -o --q
lucadelu  9493  0.0  0.1 417752 39528 pts/3DApr12   0:00
r.in.gdal input=NETCDF:/mnt/sas1/cosmorea6/converted/T_2M/T_2M_199801.nc
memory=6072 title=COSMO REA6 offset=0 num_digits=0 output=T_2M_1998_01
-o --q
lucadelu 16182  0.0  0.1 415908 37056 ?DApr13   0:00
r.in.gdal 
input=NETCDF:/mnt/sas1/cosmorea6/converted/RELHUM_2M/RELHUM_2M_200101.nc
memory=6072 title=COSMO REA6 offset=0 num_digits=0
output=RELHUM_2M_2001_01 -o --q
lucadelu 16185  0.0  0.1 417752 39288 pts/3DApr13   0:00
r.in.gdal input=NETCDF:/mnt/sas1/cosmorea6/converted/T_2M/T_2M_199701.nc
memory=6072 title=COSMO REA6 offset=0 num_digits=0 output=T_2M_1997_01
-o --q
lucadelu 43603  0.0  0.1 419412 40044 pts/3D+   13:25   0:00
r.in.gdal input=NETCDF:/mnt/sas1/cosmorea6/converted/T_2M/T_2M_199705.nc
output=T_2M_1997_05 memory=4048 -o
lucadelu 44303  0.0  0.0  12784   988 pts/0S+   15:25   0:00 grep r.in.gdal
lucadelu 47014  0.0  1.9 1004312 625336 ?