From owner-freebsd-stable@FreeBSD.ORG Fri Nov 30 00:08:14 2007 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1C41C16A41A for ; Fri, 30 Nov 2007 00:08:14 +0000 (UTC) (envelope-from petefrench@ticketswitch.com) Received: from angel.ticketswitch.com (angel.ticketswitch.com [IPv6:2002:57e0:1d4e::1]) by mx1.freebsd.org (Postfix) with ESMTP id C5B3513C457 for ; Fri, 30 Nov 2007 00:08:13 +0000 (UTC) (envelope-from petefrench@ticketswitch.com) Received: from smaug.rattatosk ([10.50.50.2]) by angel.ticketswitch.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.67 (FreeBSD)) (envelope-from ) id 1IxtQS-0002Fd-Uv; Fri, 30 Nov 2007 00:08:13 +0000 Received: from dilbert.rattatosk ([10.50.50.6] helo=dilbert.ticketswitch.com) by smaug.rattatosk with esmtp (Exim 4.67 (FreeBSD)) (envelope-from ) id 1IxtQS-000BjQ-JI; Fri, 30 Nov 2007 00:08:12 +0000 Received: from petefrench by dilbert.ticketswitch.com with local (Exim 4.68 (FreeBSD)) (envelope-from ) id 1IxtQS-000Kfz-I2; Fri, 30 Nov 2007 00:08:12 +0000 To: freebsd-stable@freebsd.org, max@love2party.net In-Reply-To: <200711291932.05614.max@love2party.net> Message-Id: From: Pete French Date: Fri, 30 Nov 2007 00:08:12 +0000 Cc: Subject: Re: Also seeing 2 x quad-core system slower that 2 x dual core X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Nov 2007 00:08:14 -0000 > Can you provide more details on this task? It seems like something that > could easily be reproduced in a lab environment and serve as a regression > test and baseline for future improvements. Is the server doing any other > work while doing the rm, or is this it? What kind of directory layout > are we looking at? How many files, directories, users ...? What type of > filesystem, options, size? It's a simple 'rm -rf /usr/local/etc/www/live'. The system is not running apache when I do that, though it is still running mysql. Nothing else going on. Filesystems are all UFS2, with default options as created by sysinstall - except I have softupdates on. Disc is partitioned as 1024M for /var/log, 64853M for / (with soft updates) and 4096M for swap at the end (it never swaps). The directory is 1 gig of web files, 165,000 of them or so. > BTW, what's your nsswitch.conf like? If you don't need nis, removing it=20 > can mean a considerable speed improvement - or try nscd(8). It's the default as installed. havent even even looked at that file before, but I dont need NIS, no. Thing is that GENERIC as installed out of the box should not take two minutes to delete a gig of files off a 15k RPM SAS drive! especially not when identical hardware with half the number of processor cores only takes eleven seconds to do the same job. Something is wrong somewhere if doubling your CPU's results in a factor of 12 slowdown surely? -pete.