From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: YAMAMOTO Mitsuharu Newsgroups: gmane.emacs.bugs Subject: Re: High CPU load Date: Wed, 28 Nov 2007 10:24:00 +0900 Organization: Faculty of Science, Chiba University Message-ID: References: <50C9A1E3-35A9-4B7D-8F86-46E9995D6D35@gmail.com> <20071127.220645.53363870.mituharu@math.s.chiba-u.ac.jp> <26C09430-463C-4F04-972D-36039C495E74@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Trace: ger.gmane.org 1196213061 27121 80.91.229.12 (28 Nov 2007 01:24:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 28 Nov 2007 01:24:21 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org, Ugur Ozdemir , Seiji Zenitani To: David Reitter Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Nov 28 02:24:28 2007 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IxBf7-0004IT-8W for geb-bug-gnu-emacs@m.gmane.org; Wed, 28 Nov 2007 02:24:25 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IxBer-0000K9-5m for geb-bug-gnu-emacs@m.gmane.org; Tue, 27 Nov 2007 20:24:09 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IxBen-0000K3-5h for bug-gnu-emacs@gnu.org; Tue, 27 Nov 2007 20:24:05 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IxBel-0000IH-Mi for bug-gnu-emacs@gnu.org; Tue, 27 Nov 2007 20:24:04 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IxBel-0000IC-Bn for bug-gnu-emacs@gnu.org; Tue, 27 Nov 2007 20:24:03 -0500 Original-Received: from mathmail.math.s.chiba-u.ac.jp ([133.82.132.2]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IxBek-0007K2-Rx for bug-gnu-emacs@gnu.org; Tue, 27 Nov 2007 20:24:03 -0500 Original-Received: from church.math.s.chiba-u.ac.jp (church [133.82.132.36]) by mathmail.math.s.chiba-u.ac.jp (Postfix) with ESMTP id D3CF22C40; Wed, 28 Nov 2007 10:24:00 +0900 (JST) In-Reply-To: <26C09430-463C-4F04-972D-36039C495E74@gmail.com> <2720AEE2-B989-4F54-81DC-B25A72E0BF6E@gmail.com> User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?ISO-8859-4?Q?Shij=F2?=) APEL/10.6 Emacs/23.0.50 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI) X-detected-kernel: by monty-python.gnu.org: NetBSD 3.0 (DF) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:17070 Archived-At: >>>>> On Tue, 27 Nov 2007 16:29:34 +0000, David Reitter said: >> Does this happen also on unmodified Carbon Emacs, or Aquamacs Emacs >> only? > I don't know. Seiji, did you get any reports? Ah, I meant bare CVS version. Carbon Emacs Package is also a modified Carbon Emacs. >>>>> On Tue, 27 Nov 2007 17:57:54 +0000, David Reitter said: > On 27 Nov 2007, at 13:06, YAMAMOTO Mitsuharu wrote: >> I have no idea. Could you try replacing mac.c with the one in the >> trunk (Rev. 1.84) to see if this changes the situation? > OK, having done that, I've got a report from a user who still > experiences the problem: > Begin forwarded message: >> From: Ugur Ozdemir >> Date: 27 November 2007 17:51:16 GMT >> To: Development of Aquamacs Emacs >> Subject: Re: [Aquamacs-devel] Aquamacs / CPU Load Problem >> Reply-To: Development of Aquamacs Emacs >> >> David, >> >> I had the same problem with this latest nightly build. I do not know >> these things very much here are the threads that go crazy in the >> thread viewer: >> >> thr 05807 select$DARWIN_EXTSN >> -pthread_start >> thread_start >> >> thr 05c07 mach-msg-trap >> CFRunLoopRunSpecific >> CFRunLoopRun >> TSystemNotificationTask::SystemNotificationTaskProc(void*) >> PrivateMPEntryPoint >> -pthread_start >> thread_start Thanks for testing. The second thread seems to be spawned when one uses the file dialog on Leopard. Carbon's Navigation Services (file dialogs) have heavily changed on Leopard so it uses Cocoa's NSSavePanel/NSOpenPanel (you can see the difference by typing `/' or `~'). So I suspect some bugs have been introduced there. Maybe you can avoid this situation by setting use-dialog-box to nil in the meanwhile. I also guess high CPU usage has something to do with filesystems over network, because SystemNotificationTaskProc above seems to monitor file system volume and the socket monitor thread (the first thread above) is also busy. Maybe you can monitor network packets while high CPU load is observed. YAMAMOTO Mitsuharu mituharu@math.s.chiba-u.ac.jp