Fast Screen Output In Terminal Slows Down Gnome
If I dump a large amount of data to STDOUT in gnome-terminal, the gnome-terminal seems to jam the system with 100% CPU utilization (user interaction dies, and everything else grinds to a halt). When first executed, it pauses before any output (an indication that the terminal is about to produce a massive slowdown), and then starts the dump (such as a large SQL file, log file, or just a large amount of program output). It looks like the data only has be a few pages long. If you try to interrupt execution via CTRL+BREAK, it might take a while to activate. System activity and interaction promptly returns to normal upon completion.
This is the first time that I have ever experienced this in all of the years I've been using Ubuntu. I'm running a system that was originally Mint 11 Katya, but has since been converted to Ubuntu (11.04 Natty).
This is a PHP script that may be used for testing:
<?php
$n = 0;
while($n < 10000000)
{
$randChar = rand(ord('a'), ord('z'));
$n++;
}
Package version:
gnome-terminal:
Installed: 2.32.1-0ubuntu3
Candidate: 2.32.1-0ubuntu3
Version table:
*** 2.32.1-0ubuntu3 0
500 http://
100 /var/lib/
Konsole seems to work perfectly. I heard something about this possibly being a GTK problem. Is there a cure?
Dustin
Question information
- Language:
- English Edit question
- Status:
- Answered
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Dustin Oprea for more information if necessary.