From owner-freebsd-questions Mon Oct 30 7:54:17 2000 Delivered-To: freebsd-questions@freebsd.org Received: from guru.mired.org (okc-27-149-77.mmcable.com [24.27.149.77]) by hub.freebsd.org (Postfix) with SMTP id 887BD37B4C5 for ; Mon, 30 Oct 2000 07:54:13 -0800 (PST) Received: (qmail 24219 invoked by uid 100); 30 Oct 2000 15:54:12 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <14845.39332.785863.537732@guru.mired.org> Date: Mon, 30 Oct 2000 09:54:12 -0600 (CST) To: Giorgos Keramidas , Cc: questions@freebsd.org Subject: Re: emacs starts very slow In-Reply-To: <77432384@toto.iv> X-Mailer: VM 6.75 under 21.1 (patch 10) "Capitol Reef" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Giorgos Keramidas types: > On Mon, Oct 30, 2000 at 01:47:36AM -0800, Orion Slevin wrote: > > It takes emacs a long time to start up on freebsd. Its been > > like that for every release (for me at least). What can I do > > to fix it? > > Any help is much appreciated. Thanks > Get more memory, perhaps? Emacs is a somewhat heavy program. You might > be running short on memory, and it takes ages to load. This is a pretty standard performance problem, so the standard approaches should work. Try running "vmstat 5" when you start emacs. Expect activity in the flt & pi columns as emacs starts. If you start seeing things in the po column, that's trouble. ps after it's start can also help you with that one. Try "ps uxm" to get a list of all your processes, sorted by (virtual) memory usage. %MEM is the percentage of real memory used; VSZ is the virtual set size (how much virtual memory that process is using), and RSS is the resident set size (how much real memory that process is using). If VSZ is much larger than RSZ for emacs, that's another sign of trouble.