From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Hamren Newsgroups: gmane.emacs.bugs Subject: bug#7069: Compilation from within emacs becomes slower and slower until Emacs is restarted Date: Sun, 19 Sep 2010 02:38:00 +0200 Message-ID: <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 1284863031 24813 80.91.229.12 (19 Sep 2010 02:23:51 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 19 Sep 2010 02:23:51 +0000 (UTC) To: 7069@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Sep 19 04:23:49 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 1Ox9ZC-0007cP-6t for geb-bug-gnu-emacs@m.gmane.org; Sun, 19 Sep 2010 04:23:49 +0200 Original-Received: from localhost ([127.0.0.1]:32918 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ox9ZB-0008OT-7b for geb-bug-gnu-emacs@m.gmane.org; Sat, 18 Sep 2010 22:23:45 -0400 Original-Received: from [140.186.70.92] (port=55044 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ox8Qh-0004h0-2J for bug-gnu-emacs@gnu.org; Sat, 18 Sep 2010 21:10:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ox8Qf-0005Qy-H5 for bug-gnu-emacs@gnu.org; Sat, 18 Sep 2010 21:10:54 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51006) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ox8Qf-0005Qu-E8 for bug-gnu-emacs@gnu.org; Sat, 18 Sep 2010 21:10:53 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Ox89O-00054U-8g; Sat, 18 Sep 2010 20:53:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Hamren Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 19 Sep 2010 00:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 7069 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.128485756419483 (code B ref -1); Sun, 19 Sep 2010 00:53:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 19 Sep 2010 00:52:44 +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 1Ox895-00054C-Hi for submit@debbugs.gnu.org; Sat, 18 Sep 2010 20:52:43 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ox818-00050s-Mf for submit@debbugs.gnu.org; Sat, 18 Sep 2010 20:44:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ox83T-0002M4-Hz for submit@debbugs.gnu.org; Sat, 18 Sep 2010 20:46:56 -0400 Original-Received: from lists.gnu.org ([199.232.76.165]:41671) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ox83T-0002M0-Fc for submit@debbugs.gnu.org; Sat, 18 Sep 2010 20:46:55 -0400 Original-Received: from [140.186.70.92] (port=41664 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ox83S-0007XS-6E for bug-gnu-emacs@gnu.org; Sat, 18 Sep 2010 20:46:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ox83Q-0002Li-OC for bug-gnu-emacs@gnu.org; Sat, 18 Sep 2010 20:46:53 -0400 Original-Received: from b-mail-1.teleservice.net ([85.30.129.51]:46688) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ox83Q-0002Kd-9Z for bug-gnu-emacs@gnu.org; Sat, 18 Sep 2010 20:46:52 -0400 Original-Received: from b-mail-1.teleservice.net (localhost [127.0.0.1]) by b-mail-1.teleservice.net (Postfix) with ESMTP id E3DB022985 for ; Sun, 19 Sep 2010 02:38:00 +0200 (CEST) Original-Received: from quad.sdu.se (host-85-30-164-27.sydskane.nu [85.30.164.27]) by b-mail-1.teleservice.net (Postfix) with ESMTP id 9CEC022982 for ; Sun, 19 Sep 2010 02:38:00 +0200 (CEST) User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.11) Gecko/20100713 Thunderbird/3.0.6 X-Virus-Scanned: ClamAV using ClamSMTP X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Mailman-Approved-At: Sat, 18 Sep 2010 20:52:42 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 18 Sep 2010 20:53:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Mailman-Approved-At: Sat, 18 Sep 2010 22:23:41 -0400 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:40301 Archived-At: 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 compiles= , 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 are probably from before the time I press enter to execute the compile comman= d. 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, 479747= }) <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, 442690= }) <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