Re: xemacs slow to open windows on XQuartz 2.5.1 but not on stock X11.app
Re: xemacs slow to open windows on XQuartz 2.5.1 but not on stock X11.app
- Subject: Re: xemacs slow to open windows on XQuartz 2.5.1 but not on stock X11.app
- From: Richard Cook <email@hidden>
- Date: Tue, 20 Jul 2010 11:05:41 -0700
Hello, here are the XQuartz samples. I used the poorly named "Console" app to check the logs, viewing all logs as administrator. I cleared the log view right before launching xemacs and literally nothing appeared in it.
Sampling process 34175 for 1 seconds with 1 millisecond of run time between samples
Sampling completed, processing symbols...
Analysis of sampling X11.bin (pid 34175) every 1 millisecond
Call graph:
838 Thread_575654 DispatchQueue_1: com.apple.main-thread (serial)
838 start
838 main
838 mach_msg_server
838 mach_startup_server
838 _Xstart_x11_server
838 do_start_x11_server
838 server_main
838 X11ApplicationMain
838 -[NSApplication run]
837 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:]
837 _DPSNextEvent
836 BlockUntilNextEventMatchingListInMode
836 ReceiveNextEventCommon
836 RunCurrentEventLoopInMode
836 CFRunLoopRunSpecific
834 __CFRunLoopRun
829 mach_msg
829 mach_msg_trap
3 __CFMachPortPerform
3 PullEventsFromWindowServerOnConnection(unsigned int, unsigned char)
2 CGEventCreateNextEvent
2 CGSGetNextEventRecordInternal
2 snarfEvents
2 _CGSGetPortStreamInline
2 mach_msg
2 mach_msg_trap
1 GetMainEventQueue
2 __CFRunLoopDoObservers
1 CFQSortArray
1 szone_free_definite_size
1 _handleWindowsNeedUpdateNote
1 -[NSApplication updateWindows]
1 -[NSNotificationCenter postNotificationName:object:userInfo:]
1 +[NSConcreteNotification newTempNotificationWithName:object:userInfo:]
1 NSAllocateObject
1 _internal_class_createInstanceFromZone
1 calloc
1 malloc_zone_calloc
1 szone_calloc
2 __CFRunLoopDoObservers
2 FlushAllBuffers(__CFRunLoopObserver*, unsigned long, void*)
2 CFRunLoopTimerSetNextFireDate
2 mk_timer_arm
1 SendEventToEventTarget
1 SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*)
1 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*)
1 ToolboxEventDispatcherHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*)
1 FindWindowAndPartFromMouseEvent
1 FindWindow
1 FindWindowOfClass
1 FindWindowCommon(Point, OpaqueWindowPtr**, short*)
1 FindPlatformWindow
1 CGSFindWindowAndOwner
1 _CGSFindWindow
1 mach_msg
1 mach_msg_trap
1 -[X11Application sendEvent:]
1 -[X11Application(Private) sendX11NSEvent:]
1 xp_find_window
1 CGSFindWindowAndOwner
1 _CGSFindWindow
1 mach_msg
1 mach_msg_trap
838 Thread_575754 DispatchQueue_2: com.apple.libdispatch-manager (serial)
838 start_wqthread
838 _pthread_wqthread
838 _dispatch_worker_thread2
838 _dispatch_queue_invoke
838 _dispatch_mgr_invoke
838 kevent
838 Thread_575783
838 thread_start
838 _pthread_start
838 server_thread
838 dix_main
838 Dispatch
838 WaitForSomething
838 select$DARWIN_EXTSN
838 Thread_575784
838 thread_start
838 _pthread_start
838 xpbproxy_x_thread
838 xpbproxy_run
838 CFRunLoopRun
838 CFRunLoopRunSpecific
838 __CFRunLoopRun
838 mach_msg
838 mach_msg_trap
838 Thread_575895
838 thread_start
838 _pthread_start
838 DarwinProcessFDAdditionQueue_thread
838 _pthread_cond_wait
838 __semwait_signal
838 Thread_576000
838 thread_start
838 _pthread_start
838 __CFSocketManager
838 select$DARWIN_EXTSN
838 Thread_576004
838 thread_start
838 _pthread_start
838 _xp_async_thread
838 _xp_async_dequeue
838 _pthread_cond_wait
838 __semwait_signal
Total number in stack (recursive counted multiple, when >=5):
5 _pthread_start
5 mach_msg
5 mach_msg_trap
5 thread_start
Sort by top of stack, same collapsed (when >= 5):
__semwait_signal 1676
select$DARWIN_EXTSN 1676
mach_msg_trap 1671
kevent 838
Sample analysis of process 34175 written to file /dev/stdout
Sampling process 34175 for 3 seconds with 1 millisecond of run time between samples
Sampling completed, processing symbols...
Analysis of sampling X11.bin (pid 34175) every 1 millisecond
Call graph:
2599 Thread_575654 DispatchQueue_1: com.apple.main-thread (serial)
2599 start
2599 main
2599 mach_msg_server
2599 mach_startup_server
2599 _Xstart_x11_server
2599 do_start_x11_server
2599 server_main
2599 X11ApplicationMain
2599 -[NSApplication run]
2598 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:]
2598 _DPSNextEvent
2595 BlockUntilNextEventMatchingListInMode
2595 ReceiveNextEventCommon
2595 RunCurrentEventLoopInMode
2594 CFRunLoopRunSpecific
2593 __CFRunLoopRun
2583 mach_msg
2583 mach_msg_trap
3 __CFRunLoopModeFindSourceForMachPort
2 __CFMachPortPerform
2 PullEventsFromWindowServerOnConnection(unsigned int, unsigned char)
2 CGEventCreateNextEvent
2 CGSGetNextEventRecordInternal
2 snarfEvents
1 _CGSGetPortStreamInline
1 mach_msg
1 mach_msg_trap
1 snarfEvents
2 mach_port_extract_member
1 mach_msg
1 mach_msg_trap
1 mig_get_reply_port
1 CFRelease
1 __CFRunLoopDoObservers
1 CFQSortArray
1 CFSortIndexes
1 malloc_zone_memalign
1 szone_memalign
1 szone_free
1 mk_timer_arm
1 __spin_lock
1 RunCurrentEventLoopInMode
1 -[NSApplication _disableSuddenTermination]
1 _HIDisableSuddenTerminationForSendEvent
1 __spin_lock
1 SendEventToEventTarget
1 SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*)
1 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*)
1 ToolboxEventDispatcherHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*)
1 FindWindowAndPartFromMouseEvent
1 FindWindow
1 FindWindowOfClass
1 FindWindowCommon(Point, OpaqueWindowPtr**, short*)
1 FindPlatformWindow
1 CoreDragGetCurrentDrag
1 _NSHandleCarbonMenuEvent
1 ConvertEventRefToEventRecord
1 GetGlobalMouse
1 CGSGetCurrentCursorLocation
1 -[X11Application sendEvent:]
1 -[X11Application(Private) sendX11NSEvent:]
1 xp_find_window
1 CGSFindWindowAndOwner
1 _CGSFindWindow
1 mach_msg
1 mach_msg_trap
2599 Thread_575754 DispatchQueue_2: com.apple.libdispatch-manager (serial)
2599 start_wqthread
2599 _pthread_wqthread
2599 _dispatch_worker_thread2
2599 _dispatch_queue_invoke
2599 _dispatch_mgr_invoke
2599 kevent
2599 Thread_575783
2599 thread_start
2599 _pthread_start
2599 server_thread
2599 dix_main
2599 Dispatch
2599 WaitForSomething
2599 select$DARWIN_EXTSN
2599 Thread_575784
2599 thread_start
2599 _pthread_start
2599 xpbproxy_x_thread
2599 xpbproxy_run
2599 CFRunLoopRun
2599 CFRunLoopRunSpecific
2599 __CFRunLoopRun
2599 mach_msg
2599 mach_msg_trap
2599 Thread_575895
2599 thread_start
2599 _pthread_start
2599 DarwinProcessFDAdditionQueue_thread
2599 _pthread_cond_wait
2599 __semwait_signal
2599 Thread_576000
2599 thread_start
2599 _pthread_start
2599 __CFSocketManager
2599 select$DARWIN_EXTSN
2599 Thread_576004
2599 thread_start
2599 _pthread_start
2599 _xp_async_thread
2599 _xp_async_dequeue
2599 _pthread_cond_wait
2599 __semwait_signal
Total number in stack (recursive counted multiple, when >=5):
5 _pthread_start
5 mach_msg
5 mach_msg_trap
5 thread_start
Sort by top of stack, same collapsed (when >= 5):
__semwait_signal 5198
select$DARWIN_EXTSN 5198
mach_msg_trap 5185
kevent 2599
Sample analysis of process 34175 written to file /dev/stdout
On Jul 19, 2010, at 6:36 PM, Jeremy Huddleston wrote:
> Try sampling the X11.bin process.
> Take a look at /var/log/system.log
>
> On Jul 19, 2010, at 18:18, Richard Cook wrote:
>
>> When I launch xemacs on XQuartz 2.5.1, it takes literally a few minutes to open up a window. It seems hung, but after a long long long pause, it finally opens a window.
>> On X11.app, it opens a window immediately.
>> Can someone help me troubleshoot and solve this? I use xemacs all the time and it's odd that under XQuartz it behaves differently.
>>
>> --
>> ✐Richard Cook
>> ✇ Lawrence Livermore National Laboratory
>> Bldg-453 Rm-4024, Mail Stop L-557
>> 7000 East Avenue, Livermore, CA, 94550, USA
>> ☎ (office) (925) 423-9605
>> ☎ (fax) (925) 423-6961
>> ---
>> Information Management & Graphics Grp., Services & Development Div., Integrated Computing & Communications Dept.
>> (opinions expressed herein are mine and not those of LLNL)
>>
>>
>>
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> X11-users mailing list (email@hidden)
>>
>> This email sent to email@hidden
>
>
--
✐Richard Cook
✇ Lawrence Livermore National Laboratory
Bldg-453 Rm-4024, Mail Stop L-557
7000 East Avenue, Livermore, CA, 94550, USA
☎ (office) (925) 423-9605
☎ (fax) (925) 423-6961
---
Information Management & Graphics Grp., Services & Development Div., Integrated Computing & Communications Dept.
(opinions expressed herein are mine and not those of LLNL)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden