Date: Tue, 14 Jan 1997 17:54:26 -0800 (PST) From: John-Mark Gurney <jmg@nike.efn.org> To: FreeBSD Hackers <hackers@freebsd.org> Subject: ps stuck in pfslock from clash between programs... Message-ID: <Pine.NEB.3.95.970114174846.15680B-100000@hydrogen.nike.efn.org>
next in thread | raw e-mail | index | archive | help
well.. right now I have a slight problem... any time I try to run ps against root processes and daemons (i.e. 'ps a' as a user or 'ps x' as root).. the process will end up in pfslck... and because they are in pfslck... they get swapped out to disk and I can't do anything more... I have found out a bit more about my problem... I did a: for i in /proc/*/status; do cat $i >> /tmp/proc.stat done to get the status of all the processes :)... and here are a few interesting lines: sh 14619 6911 6891 0 -1,-1 noflags 853281365,428930 0,0 0,7448 lockrd 0 0 0,0,0,2,3,4,5,20,31 ps 14636 1 14635 0 5,3 noflags 853281755,194442 0,18819 0,56458 lockrd 0 0 0,2,0,2,3,4,5,20,31 ps 14648 1 14648 0 5,1 noflags 853281835,553094 0,20489 0,20489 pfslck 1000 1000 1000,2,1000,0,2,5,7,66,68,85,117,666,888,996,997,1021,10000 ps 14658 1 14658 0 5,1 noflags 853281877,562603 0,8838 0,44190 pfslck 1000 1000 1000,2,1000,0,2,5,7,66,68,85,117,666,888,996,997,1021,10000 ps 14750 1 14749 0 5,2 noflags 853283361,460279 0,7537 0,67833 pfslck 1000 1000 1000,2,1000,0,2,5,7,66,68,85,117,666,888,996,997,1021,10000 ps 14754 1 14754 0 5,2 noflags 853283376,426138 0,30954 0,46431 pfslck 1000 1000 1000,2,1000,0,2,5,7,66,68,85,117,666,888,996,997,1021,10000 ps 14768 1 14768 0 5,0 noflags 853283610,650285 0,7311 0,80430 pfslck 1000 1000 1000,2,1000,0,2,5,7,66,68,85,117,666,888,996,997,1021,10000 ps 14786 6500 14786 0 5,3 noflags 853283849,884193 0,8581 0,34327 pfslck 0 0 0,2,0,2,3,4,5,20,31 ps 14810 1 14810 0 5,5 noflags 853283883,318649 0,37196 0,59514 pfslck 1000 1000 1000,2,1000,0,2,5,7,66,68,85,117,666,888,996,997,1021,10000 ps 15150 1 15150 0 5,3 noflags 853291999,14680 0,7674 0,107448 pfslck 1000 1000 1000,2,1000,0,2,5,7,66,68,85,117,666,888,996,997,1021,10000 ps 15151 15011 15151 0 5,1 noflags 853292005,831667 0,7834 0,47009 pfslck 0 0 0,2,0,2,3,4,5,20,31 ps 15239 15224 15239 0 5,3 noflags 853292336,857854 0,14888 0,74441 pfslck 0 0 0,2,0,2,3,4,5,20,31 no it looks like that some how, sh and ps managed to get into a race condition when they were trying to lock something... and that causes the rest of ps to freeze... also.. I'm not sure if this has been fixed as I'm running 960801-SNAP... but if someone would like to figure out what happened and why... I'm willing to do what someone suggests... also.. I've tried to kill -KILL all the processes but that doesn't help... thanks for the advice... and if you need any more info.. just ask... ttyl.. John-Mark gurney_j@efn.org http://resnet.uoregon.edu/~gurney_j/ Modem/FAX: (541) 683-6954 (FreeBSD Box) Live in Peace, destroy Micro$oft, support free software, run FreeBSD (unix)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.NEB.3.95.970114174846.15680B-100000>