Bug 70014 - Severe system degradation when displaying random data
Summary: Severe system degradation when displaying random data
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Public Beta
Classification: Retired
Component: vte
Version: limbo
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Havoc Pennington
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-07-28 23:59 UTC by Gigs
Modified: 2008-05-01 15:38 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2002-08-29 18:29:58 UTC
Embargoed:


Attachments (Terms of Use)

Description Gigs 2002-07-28 23:59:50 UTC
Description of Problem:
catting a binary file or /dev/urandom causes gnome-terminal to consume large
amounts of resources, enough to make the system difficult to use.

Version-Release number of selected component (if applicable):
2.0.0-3

How Reproducible:
Always

Steps to Reproduce:
1. cat /dev/urandom or a binary file
2. 
3. 

Actual Results:
Severe system degradation

Expected Results:
Snappy display of random trash

Additional Information:

Comment 1 Havoc Pennington 2002-07-29 13:58:57 UTC
Not sure if this is a bug or a "don't do that then" ...

There's already an open bug to improve VTE performance, probably this is a dup
of that if anything. Of course improved VTE performance may well hose your
system more by sucking off of /dev/urandom more quickly and making more system
calls.

Comment 2 Nalin Dahyabhai 2002-08-14 07:15:15 UTC
This should be fixed in 0.7.4 and later.  (Basically what was happening was that
the terminal detected bogus multibyte input, munged the first bogus byte into
'?', read some more text from the child process, and then started again.  When
catting /dev/urandom, this would build up more pending data with each iteration,
leading to horrible slowdowns.)

Comment 3 Jay Turner 2002-08-29 12:41:17 UTC
I'm still seeing gnome-terminal eating CPU for breakfast when I do 'cat
/dev/urandom' with vte-0.8.10-1 . . . am I missing something here?

Comment 4 Nalin Dahyabhai 2002-08-29 18:29:51 UTC
Jay, when you break out of catting /dev/urandom, the terminal should recover
almost instantly.  Previously it would still be attempting to work through a
considerable backlog of garbage data, and would remain unresponsive, even if you
told gnome-terminal (via its menu) to reset.

Comment 5 Jay Turner 2002-08-29 20:37:25 UTC
OK, I misunderstood the problem.  Indeed, as soon as you hit CTRL-C the process
exist and the system recovers, so this is resolved.


Note You need to log in before you can comment on or make changes to this bug.