The lsof column of FD is DEL, what does this mean?

I have a process that uses too much memory.

When I run lsof -p <pid> , the output is:

 ETL-GRIB 5981 root DEL REG 8,4 183633075 /tmp/icom/65516_GRIB/20150921220023_6796_YTXG23EGRR211800__ln_3857.shp ETL-GRIB 5981 root DEL REG 8,4 183633059 /tmp/icom/65516_GRIB/20150921220023_6796_YTXG23EGRR211800__pl_3857.shp ... 

What does DEL mean? Maybe the process has a file in memory, but it was deleted by any other process?

+5
source share
2 answers

lsof typically reports entries from the Linux /proc/<PID>/maps file with mem in the TYPE column. However, when lsof cannot stat(2) specify the path in the maps process file, and the maps file entry contains (deleted) , indicating that the file was deleted after it was opened, lsof tells the file to enter DEL .

Yes, these files are simply deleted after they are read by the process. If you have updated or replaced these files, you probably want to restart the service / process.

+8
source

Perhaps the process has a file in memory, but it was deleted by any other process?

Yes or the same process.

+1
source

Source: https://habr.com/ru/post/1232095/


All Articles