From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Newsgroups: gmane.emacs.bugs Subject: bug#7069: Compilation from within emacs becomes slower and slower until Emacs is restarted Date: Wed, 22 Sep 2010 08:43:50 +0200 Message-ID: <4C99A5A6.8090004@swipnet.se> References: <4C955B68.6000701@sdu.se> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1285139477 28758 80.91.229.12 (22 Sep 2010 07:11:17 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 22 Sep 2010 07:11:17 +0000 (UTC) Cc: 7069@debbugs.gnu.org To: Lars Hamren Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Sep 22 09:11:12 2010 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.69) (envelope-from ) id 1OyJTz-0004eJ-CV for geb-bug-gnu-emacs@m.gmane.org; Wed, 22 Sep 2010 09:11:11 +0200 Original-Received: from localhost ([127.0.0.1]:37378 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OyJTy-0004Tt-9W for geb-bug-gnu-emacs@m.gmane.org; Wed, 22 Sep 2010 03:11:10 -0400 Original-Received: from [140.186.70.92] (port=36802 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OyJTn-0004Sk-6N for bug-gnu-emacs@gnu.org; Wed, 22 Sep 2010 03:11:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OyJTl-0006Cs-Jc for bug-gnu-emacs@gnu.org; Wed, 22 Sep 2010 03:10:59 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:33790) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OyJTl-0006Cn-GT for bug-gnu-emacs@gnu.org; Wed, 22 Sep 2010 03:10:57 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OyJ1m-0006KH-3q; Wed, 22 Sep 2010 02:42:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 22 Sep 2010 06:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7069 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 7069-submit@debbugs.gnu.org id=B7069.128513768324304 (code B ref 7069); Wed, 22 Sep 2010 06:42:02 +0000 Original-Received: (at 7069) by debbugs.gnu.org; 22 Sep 2010 06:41:23 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OyJ18-0006Jv-7g for submit@debbugs.gnu.org; Wed, 22 Sep 2010 02:41:22 -0400 Original-Received: from smtprelay-b11.telenor.se ([62.127.194.20]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OyJ14-0006Jq-RQ for 7069@debbugs.gnu.org; Wed, 22 Sep 2010 02:41:20 -0400 Original-Received: from ipb4.telenor.se (ipb4.telenor.se [195.54.127.167]) by smtprelay-b11.telenor.se (Postfix) with ESMTP id 7E007E94FB for <7069@debbugs.gnu.org>; Wed, 22 Sep 2010 08:43:52 +0200 (CEST) X-SENDER-IP: [85.225.45.35] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ars7AFNCmUxV4S0jPGdsb2JhbACHbZo9DAEBAQE1LcNthUEEjTY X-IronPort-AV: E=Sophos;i="4.56,404,1280700000"; d="scan'208";a="1673785751" Original-Received: from c-232de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.35]) by ipb4.telenor.se with ESMTP; 22 Sep 2010 08:43:52 +0200 Original-Received: from [172.20.199.2] (gaffa [172.20.199.2]) by coolsville.localdomain (Postfix) with ESMTP id 752767FA05A; Wed, 22 Sep 2010 08:43:51 +0200 (CEST) User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.12) Gecko/20100915 Thunderbird/3.0.8 In-Reply-To: <4C955B68.6000701@sdu.se> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 22 Sep 2010 02:42:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org 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:40353 Archived-At: I can't repeat this. The "Much waiting here" you mark below is Emacs wai= ting=20 for your X server to send something, so it doesn't say anything. As there is only one fd in the select, the compilation must have finished= =20 before this. For an strace to be useful, you need to see what emacs reads from the=20 compilation and when and compare this to the "real" output. If there is = a=20 notable delay for when Emacs reads from the compilation process, there mi= ght=20 be a problem. For now it just looks like your X server has some bug or i= s=20 busy doing something else, so it doesn't have time to update Emacs window= s. You also failed to say if this happens with emacs -Q. Is Emacs stuck whe= n=20 this happens or can you edit in other buffers? Please use M-x report-emacs-bug next time to include relevant information= =20 about your Emacs. Jan D. 2010-09-19 02:38, Lars Hamren skrev: > The first few compiles, using "compile" to invode GNU make, > from within Emacs, run at "command-line speed" but then the overall > time increases. The first 10 compiles are OK, but after about 20 compil= es, > a compilation that "time make -k" reports as taking > > real 0m0.127s > user 0m0.100s > sys 0m0.016s > > takes more than five seconds. Then I give up and restart Emacs, and > everything is fine for another 10 compiles. And so on. > > Here is some output from "strace emacs" > > socket(PF_FILE, SOCK_STREAM, 0) =3D 3 <0.000016> > connect(3, {sa_family=3DAF_FILE, path=3D@"/tmp/.X11-unix/X0"}, 20) =3D = 0 > <0.000015> > > Here I attach strace to a running emacs just before i start compilation > and detach as soon as the compilation is done. The first few selects ar= e > probably from before the time I press enter to execute the compile comm= and. > > select(4, [3], NULL, NULL, {0, 297904}) =3D 0 (Timeout) <0.298232> > select(4, [3], NULL, NULL, {0, 498307}) =3D 0 (Timeout) <0.498832> > select(4, [3], NULL, NULL, {0, 498294}) =3D 0 (Timeout) <0.498820> > select(4, [3], NULL, NULL, {0, 498292}) =3D 0 (Timeout) <0.498818> > select(4, [3], NULL, NULL, {0, 498250}) =3D 0 (Timeout) <0.498776> > select(4, [3], NULL, NULL, {0, 498299}) =3D 1 (in [3], left {0, 444141}= ) > <0.054181> > select(4, [3], NULL, NULL, {0, 441524}) =3D 1 (in [3], left {0, 320780}= ) > <0.120760> > select(4, [3], NULL, NULL, {0, 312270}) =3D 1 (in [3], left {0, 311270}= ) > <0.001084> > select(4, [3], NULL, NULL, {0, 282200}) =3D 0 (Timeout) <0.282507> > select(4, [3], NULL, NULL, {0, 498525}) =3D 1 (in [3], left {0, 21105}) > <0.477438> > select(4, [3], NULL, NULL, {0, 499408}) =3D 0 (Timeout) <0.499936> > select(4, [3], NULL, NULL, {0, 498927}) =3D 1 (in [3], left {0, 272045}= ) > <0.226897> > select(5, [3 4], NULL, NULL, {0, 499323}) =3D 1 (in [4], left {0, 47974= 7}) > <0.019591> > select(5, [3], NULL, NULL, {0, 20000}) =3D 0 (Timeout) <0.020070> > select(5, [3 4], NULL, NULL, {0, 442695}) =3D 1 (in [4], left {0, 44269= 0}) > <0.000016> > select(5, [3], NULL, NULL, {0, 0}) =3D 0 (Timeout) <0.000008> > select(4, [3], NULL, NULL, {0, 494042}) =3D 0 (Timeout) <0.494564> <---= - > Much waiting here > select(4, [3], NULL, NULL, {0, 498322}) =3D 0 (Timeout) <0.498847> > select(4, [3], NULL, NULL, {0, 498336}) =3D 0 (Timeout) <0.498862> > select(4, [3], NULL, NULL, {0, 498261}) =3D 0 (Timeout) <0.498784> > select(4, [3], NULL, NULL, {0, 498320}) =3D 0 (Timeout) <0.498847> > select(4, [3], NULL, NULL, {0, 498260}) =3D 0 (Timeout) <0.498786> > select(4, [3], NULL, NULL, {0, 498325}) =3D 0 (Timeout) <0.498853> > select(4, [3], NULL, NULL, {0, 498215}) =3D 0 (Timeout) <0.498737> > select(4, [3], NULL, NULL, {0, 498057}) =3D 1 (in [3], left {0, 445670}= ) > <0.052400> > select(4, [3], NULL, NULL, {0, 445001}) =3D 1 (in [3], left {0, 349721}= ) > <0.095295> > select(4, [3], NULL, NULL, {0, 347501}) =3D 1 (in [3], left {0, 345858}= ) > <0.001656> > select(4, [3], NULL, NULL, {0, 345151}) =3D 1 (in [3], left {0, 342229}= ) > <0.002978> > select(4, [3], NULL, NULL, {0, 340611}) =3D 1 (in [3], left {0, 268540}= ) > <0.072088> > select(4, [3], NULL, NULL, {0, 259972}) =3D 1 (in [3], left {0, 259075}= ) > <0.000975> > select(4, [3], NULL, NULL, {0, 228314}) =3D 0 (Timeout) <0.228570> > select(4, [3], NULL, NULL, {0, 498550} > > Environment > > Ubuntu 10.04 (and earlier, on 9.04) > Linux: 2.6.32-24-generic > Emacs 23.1.2 (my own emacs build) > Emacs 22.2.1 (Ubuntu package) > > Googling, I can find nothing about this problem. > > /Lars > ------------------------------------------------------------------- > Lars Hamr=E9n Tel...: +46(46)189090 > Svensk Datorutveckling e-post: hamren@sdu.se > Vadm=F6llan 211 WWW...: www.sdu.se > S-225 94 Lund > Sweden > >