James wrote on Tue, Jul 02, 2002 at 03:36:23PM +0000 :
> 
> 98% of my CPU.......... 
> The program ...... VI yep it had been up for about 2 hours and was
> slowly consuming all my cpu power.   Has anyone else noticed this or
> better yet can anyone else duplicate it.  I'd like to know if this is a
> bug or a one off.

I can reproduce this since RedHat version 6.2, but only in an error
scenario.

1) ssh to a box.  Any box, it doesn't matter.  'vi file'
2) close the window that you ssh'd from (or let it time-out if you ssh'd
to a remote box outside of your firewall, ie not on your local lan)
3) ssh back to that box and you'll see that it is consuming 99% CPU

I don't have a technical reason why it happens, but it does. (seems to
be related to vi losing its controlling terminal).  You have to kill -9
it get rid of it.  killall -9 vi works too.

As for why it did this to you on a still running instance of vi, I'm not
sure.  A surefire way of finding this in the future is to do a ps ax or
ps aux and look for a process with a very high CPU time number.

Blue skies...           Todd
-- 
  Todd Lyons -- MandrakeSoft, Inc.   http://www.mandrakesoft.com/
UNIX was not designed to stop you from doing stupid things, because 
  that would also stop you from doing clever things. -- Doug Gwyn
   Cooker Version mandrake-release-8.3-0.2mdk Kernel 2.4.18-21mdk

Attachment: msg56067/pgp00000.pgp
Description: PGP signature

Reply via email to