From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: jreeseue Newsgroups: gmane.emacs.help Subject: Re: Emacs 24.0.94.1 slow to load on OS X Date: Mon, 5 Mar 2012 13:04:47 -0800 (PST) Message-ID: <33446868.post@talk.nabble.com> References: <33435127.post@talk.nabble.com> <5D86F72D-C9DB-41E0-96D2-4B5D80C9FB67@Web.DE> <33435638.post@talk.nabble.com> <178A7FCA-7999-4B53-81E9-5955394D9391@Web.DE> <33435970.post@talk.nabble.com> <33436129.post@talk.nabble.com> <9B6EEA55-FC14-4BEE-A77D-EC000E376CED@Web.DE> <33438629.post@talk.nabble.com> <33444508.post@talk.nabble.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1330981507 32590 80.91.229.3 (5 Mar 2012 21:05:07 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 5 Mar 2012 21:05:07 +0000 (UTC) To: Help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Mar 05 22:05:04 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1S4f5W-0004Pp-E9 for geh-help-gnu-emacs@m.gmane.org; Mon, 05 Mar 2012 22:04:58 +0100 Original-Received: from localhost ([::1]:40682 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S4f5V-0002v1-Ns for geh-help-gnu-emacs@m.gmane.org; Mon, 05 Mar 2012 16:04:57 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:37958) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S4f5P-0002uj-Av for Help-gnu-emacs@gnu.org; Mon, 05 Mar 2012 16:04:52 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S4f5N-0006Jg-2q for Help-gnu-emacs@gnu.org; Mon, 05 Mar 2012 16:04:50 -0500 Original-Received: from sam.nabble.com ([216.139.236.26]:40198) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S4f5M-0006JV-T9 for Help-gnu-emacs@gnu.org; Mon, 05 Mar 2012 16:04:49 -0500 Original-Received: from isper.nabble.com ([192.168.236.156]) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1S4f5L-00057b-CO for Help-gnu-emacs@gnu.org; Mon, 05 Mar 2012 13:04:47 -0800 In-Reply-To: X-Nabble-From: jreeseue@gmail.com X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 216.139.236.26 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:83944 Archived-At: So, as requested I've done a reboot, retested, and examined MenuMeters. Wha= t I've found is that after a fresh reboot this is the time to open emacs: 20:56@legolas:~$ time emacs -Q -l /usr/share/emacs/22.1/site-lisp/subdirs.e= l -f "save-buffers-kill-terminal" real=090m1.546s user=090m0.456s sys=090m0.071s This is the nslookup time: 20:57@legolas:~$ time nslookup apple.com Server:=09=09192.168.1.254 Address:=09192.168.1.254#53 Non-authoritative answer: Name:=09apple.com Address: 17.149.160.49 Name:=09apple.com Address: 17.172.224.47 real=090m0.071s user=090m0.006s sys=090m0.023s All of this was gathered with the following memory information:=20 Memory Usage: 1,833.3 MB used, 6,357.0 MB free, 8,190MB total Memory Pages: 710.1MB active, 1,123.2MB wired 108.9MB inactive, 6,248.1MB free VM Statistics: 42,361 pageins, 0 pageouts 21,222 cache lookups, 9 cache hits (0.0%) 1,083,315 page faults, 43,046 copy-on-writes Swap Files: 1 encrypted swap file present in /private/var/vm 1 swap file at peak usage 64MB total swap space (0MB used) As a side note, I haven't experienced any lag when using emacs 22. The only reason I upgraded was because emacs 22 wasn't doing syntax highlighting on comments in Java. If there is a easy way to change this I would happily go back to emacs 22 hopefully bring this to an end :) Thanks again for all your help! Peter Dyballa wrote: >=20 >=20 > Am 5.3.2012 um 17:08 schrieb jreeseue: >=20 >> 16:00@legolas:~$ time nslookup apple.com >> Server:=09=09129.215.70.239 >> Address:=09129.215.70.239#53 >>=20 >> Non-authoritative answer: >> Name:=09apple.com >> Address: 17.149.160.49 >> Name:=09apple.com >> Address: 17.172.224.47 >>=20 >>=20 >> real=090m1.018s >> user=090m0.009s >> sys=090m0.005s >=20 >=20 > No, that's probably not a network problem! The user and system times are > as short as one would assume. The issue is with the real time used, from > pressing RET until some text appeared on screen. This time is 1 sec too > long, i.e., by a factor of 70. >=20 > Could be you're missing some GB of RAM and your Mac is constantly > swapping. Little tools like MenuMeters or iStat menus could display in th= e > =EF=A3=BF menu bar what's going on. In /private/var/vm the system stores = the swap > files. An easy check is to reboot your Mac, not opening any unnecessary > applications, and then launching GNU Emacs. >=20 >=20 > Launching GNU Emacs your way is not the correct way. Check fast with > 'emacs --help'! Instead of >=20 > =09emacs .emacs -f "save-buffers-kill-terminal" >=20 > you could use >=20 > =09emacs -q -l -f "save-buffers-kill-terminal= " >=20 > or >=20 > =09emacs -Q -l -f "save-buffers-kill-terminal= " >=20 >=20 > -- > Greetings > <] > Pete o __o |__ o recumbo > ___o /I -\<, |o \ -\),-% ergo sum! > ___/\ /\___./ \___...O/ O____.....`-O-'-()--o_________________ >=20 >=20 >=20 >=20 --=20 View this message in context: http://old.nabble.com/Emacs-24.0.94.1-slow-to= -load-on-OS-X-tp33435127p33446868.html Sent from the Emacs - Help mailing list archive at Nabble.com.