Bug 24445 - Performance issues on Solaris Motif
Summary: Performance issues on Solaris Motif
Status: RESOLVED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 2.0   Edit
Hardware: Sun Solaris
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Billy Biggs CLA
QA Contact:
URL:
Whiteboard:
Keywords: performance
Depends on:
Blocks:
 
Reported: 2002-10-07 09:30 EDT by Veronika Irvine CLA
Modified: 2005-04-22 10:54 EDT (History)
5 users (show)

See Also:


Attachments
solaris hot spots: new Java perspective (46.52 KB, text/html)
2002-10-16 14:58 EDT, Grant Gayed CLA
no flags Details
linux hot spots: new Java perspective (51.14 KB, text/html)
2002-10-16 14:59 EDT, Grant Gayed CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Veronika Irvine CLA 2002-10-07 09:30:36 EDT
"Ian Graham" <ian@kelman.com> wrote in message 
news:3D9DE36B.5010803@kelman.com...
> I've recently started using Eclipse on a SunBlade 100 running Solaris 8. 
>   The performance is appalling!  It takes about 4 seconds to switch 
> between standard Resource and Java perspectives within the same window 
> with no editors open.
> 
> On my six-year old PC at home, running NT with only 256M it takes about 
> a second.  On my coworker's snappy PC running Windows 2000 it takes 
> maybe 0.2 seconds, if that.
> 
> What gives?  Is it X, is it Motif, is it SWT/Motif?  We've run some 
> simple benchmarks between the fast PC and the SunBlade, and they 
> indicate a roughly 4 times speed difference running non-GUI stuff - that 
> doesn't account for anywhere near the difference I'm seeing in the speed 
> of Eclipse between the two platforms, so it's not a hardware issue.
> 
> Assuming I don't have a bad build of eclipse full of debug stuff or 
> something, this really impacts what kind of machine I want to run on.
> 
> I may be able to get a new machine here, and I'm trying to figure out 
> what to ask for.  There's a lot of convenience here on our local net for 
> me to be using a Unix box, but I'm worried that only the Windows 
> implementation of SWT will give me usable performance.
> 
> Please tell me I've got a bad build of Eclipse for Solaris!  (2.0.1 build 
> 200208291828
>
Comment 1 Steve Northover CLA 2002-10-07 11:26:39 EDT
GG to investigate.  Marking this as a P2.  Adding SSQ and myself to the CC 
because of our changes to menu code.  Could it be the "mnemonics slowdown" that 
was supposed to have gone away?
Comment 2 Grant Gayed CLA 2002-10-07 11:41:37 EDT
It's not the mnemonics/accelerators issue since its the 2.0.1 release.
Comment 3 Steve Northover CLA 2002-10-07 12:03:47 EDT
Not so sure.  We put back the original suspect mnemonic code.  Try deleting it.
Comment 4 Grant Gayed CLA 2002-10-16 14:57:19 EDT
In the October 1st build the perspective scenario that's particularly slow is 
the creation of new perspectives (eg.- start a new workspace, Window -> Open 
Perspective -> Java).  Switching between perspectives that are already open is 
reasonably quick.

I profiled the creation of a new Java perspective on Solaris.  Considering the 
methods with % > 1.0%, Solaris spends > 65% of this time doing class loading 
(dynamic retrieval of the jdt components).  On Linux this number is ~30%.  The 
generated hot spot lists are attached.

So I don't think there's much for swt to do here.  I'll look at some other 
scenarios while I'm at it.
Comment 5 Grant Gayed CLA 2002-10-16 14:58:50 EDT
Created attachment 2195 [details]
solaris hot spots: new Java perspective
Comment 6 Grant Gayed CLA 2002-10-16 14:59:11 EDT
Created attachment 2196 [details]
linux hot spots: new Java perspective
Comment 7 Ian Graham CLA 2002-10-16 16:21:45 EDT
I guess I should clarify that in my initial posting I was talking about
perspectives that ARE already open.

When you say that "Switching between perspectives that are already open is 
reasonably quick", what do you mean by "reasonably quick"?  For me, on this
SunBlade 100, it really is taking over four seconds between already open Java
Browsing and Java perspectives.  And that slow speed can be found in everything
I do in Eclipse, where even just switching between java editors takes over a
second to update the Outline.

Ian
Comment 8 Grant Gayed CLA 2002-10-17 16:47:49 EDT
Changing between perspectives here takes < 3 seconds on Solaris, which isn't as 
fast as win32 but isn't disruptive either.

So if the question is "without considering class loading why is Eclipse on 
win32 faster?", it's because Motif is slower in comparison.  Eclipse on win32 
is also faster than Eclipse on gtk and photon.

I'm still going to do more profiling, but my initial look yesterday gave me 
confidence that we are not doing anything overly inefficient to make Eclipse on 
Solaris (Motif) run slower than it could given the requirements of the layers 
above us.
Comment 9 Grant Gayed CLA 2003-01-16 09:23:41 EST
Changing to P3 since performance analysis will extend beyond the 2.1 release, 
so this report cannot be finalized.
Comment 10 Tod Creasey CLA 2005-03-07 11:57:31 EST
Adding my name to the cc list as we are now tracking performance issues more
closely. Please remove the performance keyword if this is not a performance bug.
Comment 11 Steve Northover CLA 2005-03-28 22:31:37 EST
Ian, this problem report is really old.  How are things in the 3.0 stream ... 
wince ...
Comment 12 Ian Graham CLA 2005-04-06 13:20:42 EDT
Hi Steve, not long after all this I got a Windows PC and stopped worrying about 
it.  For my newest project I'm using RCP and no longer targeting Solaris - our 
company is essentially moving towards Intel/Linux desktops.  Although I still 
don't know why using Eclipse was _so_ slow on a SunBlade 100, the hardware was 
still inadequate for our Java apps.  On a modern Intel/Linux box Eclipse and SWT 
seem pretty snappy, so I've never looked back at Solaris.  So I guess my answer 
is that I don't know how things are now in the 3.x stream :)
Comment 13 Steve Northover CLA 2005-04-06 13:27:32 EDT
Thanks for the information.  GG to determine if this is still an issue.
Comment 14 Billy Biggs CLA 2005-04-22 10:54:59 EDT
This bug has some neat profiling information, but is really too old and vague to
define any work to be done.  Comment #8 I think summarizes the results of this
bug best.  I don't see the use in keeping this bug open.  Please file new bugs
if you are seeing specific performance issues on this platform.