Thursday 15 January 2015

Linux Find command hangs -



Linux Find command hangs -

the find command below:

find / -path "/proc/*" -prune -o -iname "core."|grep -i "core\.[0-9]"|grep -v "\.gz"|grep -v "/man/"

it works in our many labs, finished within few minutes. in lab, hangs on 1 hour.

checked output of "top" , "iostat -x -k" in lab. cpu , i/o load on lab looks normal, find command in s status.

------------top-------------

4203 root 15 0 652m 500m 636 s 9.7 1.6 148:34.69 find

any hint/idea appreciated.

i have found root cause. it's caused extremely huge directory.

[root@tt-na01-as01 export]# ll

drwxrwxr-x 2 scheme sysop 756490240 nov 5 16:24 com.nsn.app.nbm.pm3gpp-1

the directory huge 'ls' , 'rm' commands hang.

any suggestion on how delete huge directory?

linux

No comments:

Post a Comment