• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Xft performance with XEmacs 21.5.28 on Mac OS 10.5
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Xft performance with XEmacs 21.5.28 on Mac OS 10.5


  • Subject: Re: Xft performance with XEmacs 21.5.28 on Mac OS 10.5
  • From: William Gallafent <email@hidden>
  • Date: Thu, 1 Nov 2007 16:00:41 +0000


On 1 Nov 2007, at 15:00, email@hidden wrote:

I think you should sample the X server instead of emacs. emacs_Xt_next_event() is how emacs handles events. In X all the on- screen work is actually done by another process, the X server (Xquartz in this case). The poll() is for the descriptor used to comminucate between X server and emacs. You should sample Xquartz and see what is taking so much time.

Good plan. I've done this, and find that the bulk of the time is spent in a few places:


ProcRenderFillRectangles ... ProcPolyFillRectangle -> RootlessPolyFillRect ... _CGSLockWindow -> _CGSSynchronizeWindowBackingStore -> mach_msg_trap

... from XQuartz's Dispatch, time is also spent in select$DARWIN_EXTSN

... and more in libXplugin.1.dylib, spending time in:

... _xp_async_dequeue -> pthread_cond_wait$UNIX2003 -> __semwait_signal

... the event loop also spends all its time in mach_msg_trap, less surprisingly.

The point is that the actual CPU load during all these operations remains mostly very low, with occasional spikes. It looks as if everything is spending all its time waiting for synchronisation with something else ... I can send the trace to anyone interested (but won't attach it here).

Is XQuartz doing something synchronously which other XServers I've used do asynchronously, perhaps?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)

This email sent to email@hidden
References: 
 >Xft performance with XEmacs 21.5.28 on Mac OS 10.5 (From: William Gallafent <email@hidden>)
 >Re: Xft performance with XEmacs 21.5.28 on Mac OS 10.5 (From: William Gallafent <email@hidden>)
 >Re: Xft performance with XEmacs 21.5.28 on Mac OS 10.5 (From: email@hidden)

  • Prev by Date: Re: Errors for email address "email@hidden"
  • Next by Date: Re: OpenOffice and X11
  • Previous by thread: Re: Xft performance with XEmacs 21.5.28 on Mac OS 10.5
  • Next by thread: Re: Xft performance with XEmacs 21.5.28 on Mac OS 10.5
  • Index(es):
    • Date
    • Thread