Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 413858

Summary: Typing in Kepler is slow and causes high Xorg CPU usage compared to Indigo
Product: [Eclipse Project] Platform Reporter: Jan Zuchhold <Jan>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: major    
Priority: P3 CC: arunkumar.thondapu, emond.papegaaij, ericwill, rashid.sarwar, sravankumarl
Version: 4.3Keywords: triaged
Target Milestone: ---   
Hardware: PC   
OS: Linux-GTK   
Whiteboard:

Description Jan Zuchhold CLA 2013-07-27 11:26:54 EDT
Typing text into the Java Editor is really slow in Kepler compared to Indigo.

While typing the Xorg CPU usage is above 90%.

I've created a video to demonstrate this problem, comparing 3.7 and 4.3:
http://www.youtube.com/watch_popup?v=vf1drthUjYI&vq=hd1080

This is on Ubuntu 13.04 (I've tried 12.04 as well) with the proprietary NVIDIA driver (tried versions 310.44 and 319.32) running a resolution of 2560x1600 with Java 1.7.0_25.

After some experimentation I've found out that disabling renderAccel in xorg.conf improves the Eclipse 4.3 performance quite a bit, but it makes most other applications unusable slow.
Comment 1 Rashid Sarwar CLA 2014-04-23 07:40:42 EDT
Having the same problem, Please tell us what is the progress on this issue
Comment 2 Arun Thondapu CLA 2014-04-23 09:12:52 EDT
I use Ubuntu 12.04 regularly and have not seen the high CPU usage problem till now. Sravan, can you please do a comparison between 3.7 and 4.4 and see if there is any noticeable difference in typing performance? Thanks!
Comment 3 Sravan Kumar Lakkimsetti CLA 2014-04-24 06:06:23 EDT
I tried to reproduce this on ubuntu 13.10 and with normal laptop screen. I am unable to reproduce this problem.

Can you please test this on normal Laptop screen (HD screen 720p) and with a display driver other than NVIDIA?

Thanks
Comment 4 Jan Zuchhold CLA 2014-04-24 07:47:50 EDT
Unfortunately I only have NVIDIA-GPUs to test with, as Intel and AMD drivers always created a lot of problems on Linux for me.

I was unable to reproduce this problem within VMware Workstation using the vmware-xorg-driver: It works just fine, even though the host is showing the problem.

Testing with such low resolutions as 720p seems unrealistic, even more now that 4K displays (3840x2160, 8 megapixels!) are affordable. I guess this is some inefficiency in drawing operations that shows a lot more on higher resolutions.
Comment 5 Sravan Kumar Lakkimsetti CLA 2014-04-24 12:44:38 EDT
Hi,

This problem looks very much similar to 

https://bugs.eclipse.org/bugs/show_bug.cgi?id=397291

Can you please check with the solution provided in comment#19 https://bugs.eclipse.org/bugs/show_bug.cgi?id=397291#c19

Thanks
Sravan
Comment 6 Jan Zuchhold CLA 2014-04-24 14:33:13 EDT
That AccelMethod option is driver dependent and the NVIDIA driver does not support it:

(WW) NVIDIA(0): Option "AccelMethod" is not used

(from /var/log/Xorg.0.log)
Comment 7 Eric Williams CLA 2018-05-11 14:35:12 EDT
There were a lot different issues with 100% CPU usage in the past: some were Webkit1 related, some were related to Oxygen-GTK. These things are both gone now, so I think it's time to close this bug.

Please file a new bug against 4.8 if the issue occurs on GTK3.22.