From owner-freebsd-questions Fri Aug 30 9:51:32 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7C27D37B400 for ; Fri, 30 Aug 2002 09:51:28 -0700 (PDT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id E0D5043E6A for ; Fri, 30 Aug 2002 09:51:27 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.5/8.12.5) id g7UGpRmr065416; Fri, 30 Aug 2002 11:51:27 -0500 (CDT) (envelope-from dan) Date: Fri, 30 Aug 2002 11:51:27 -0500 From: Dan Nelson To: Marc Schneiders Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Why is this box so slow? Message-ID: <20020830165127.GA54808@dan.emsphone.com> References: <20020830144957.C27785-100000@voo.doo.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020830144957.C27785-100000@voo.doo.net> X-OS: FreeBSD 5.0-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.1i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In the last episode (Aug 30), Marc Schneiders said: > I am running FreeBSD 4 stable on a Pentium II 300 with sufficient > RAM, I think. Nevertheless certain things are very, very slow. A > buildworld takes days. Also opening a large (18 MB file) with vi > doesn't work out for ages. (I am now waiting 5 minutes and still > nothing to edit...) What does top and "vmstat 1" say while you're running vi? Try trussing the binary also, and see what kinds of syscalls it's making. > Another thing that is very slow is fsck after the machine crashed. > Hours. Harddisks are reported to run as UDMA-33. So? Fsck speed is mainly limited by the number of used inodes on the filesystem. I've got an 18gb filesystem with 1 million used inodes that takes 20 minutes to check, and a bunch of 180gb volumes that take 30 seconds each. Hours seems like way too long, although from the sizes of the disks in your dmesg, you probably have 10-100x the inodes you really need. The default for my 18gb disk was 8 million inodes, so your 38gb drive probably has 16m. And my disk only has 1 million used even though I have a 7gig squid cache, full ports CVS, and full -current CVS trees on that filesystem :) -- Dan Nelson dnelson@allantgroup.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message