gnome-terminal generates high cpu usage
Submitted by Albert Zeyer
Link to original bug (#532240)
Description
Please describe the problem: Gnome-Terminal generates high CPU usage when there is a lot of output.
I have a 2.16ghz Intel Dual core. There is a process running in a gnome-terminal which itself does not take much CPU usage but generates a lot of output (perhaps 100 lines / second). In such case, Xorg-Server has very high CPU usage: between >50% on both CPUs if Gnome-Terminal is in the foreground or ~30% on both CPUs if it is in the background.
Could it be that on every change in the output, Gnome-Terminal sends the whole data (everything in the textbox) to Xorg? That would explain the high CPU usage.
On older systems (that bug occurs for me on all my systems), such a case is almost like a DoS-attack, the mouse is almost not moveable anymore.
Steps to reproduce:
- Start Gnome-Terminal.
- Start any application which generates a lot of output.
Actual results: CPU usage rises high.
Expected results: No change, a stable system.
Does this happen every time? Yes.
Other information: Bug is filled also in the Gentoo bugtracker here: http://bugs.gentoo.org/show_bug.cgi?id=220995
Version: 2.18.x
Resolution: RESOLVED NOTGNOME