From owner-freebsd-performance@FreeBSD.ORG Tue Jan 3 01:38:03 2012 Return-Path: Delivered-To: freebsd-performance@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 089AC106564A for ; Tue, 3 Jan 2012 01:38:03 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-tul01m020-f182.google.com (mail-tul01m020-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id C4B8A8FC14 for ; Tue, 3 Jan 2012 01:38:02 +0000 (UTC) Received: by obbwd18 with SMTP id wd18so18105534obb.13 for ; Mon, 02 Jan 2012 17:38:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=f3u2DiTv9Grphx3i0Ojfcq9hD4TBPP+LoVY/7nDpJQk=; b=kMt36B5QdQcYrbud44CWT7TSTL+q13rVY8a81Xrsc8/Ri6n+BkuqzyloME+gL6KRTj oWIcvgfD1mXM7H8/AXj+j8jRnKIYnfThgNXGhWZokA9L8qvl7dh5zI6l6QTxYvw6Jg2q 2/od0qW8Rs4KiMStjLVLFnpSMhH9iFMHAq1jg= MIME-Version: 1.0 Received: by 10.182.1.8 with SMTP id 8mr43058267obi.11.1325554682257; Mon, 02 Jan 2012 17:38:02 -0800 (PST) Received: by 10.182.152.6 with HTTP; Mon, 2 Jan 2012 17:38:02 -0800 (PST) In-Reply-To: <20120103012929.218270@gmx.com> References: <20120103012929.218270@gmx.com> Date: Mon, 2 Jan 2012 17:38:02 -0800 Message-ID: From: Garrett Cooper To: Dieter BSD Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-performance@freebsd.org Subject: Re: cmp(1) has a bottleneck, but where? X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Jan 2012 01:38:03 -0000 On Mon, Jan 2, 2012 at 5:29 PM, Dieter BSD wrote: >>> Task: cp(1) a several-GB file from one drive to another, >>> then run cmp(1) to verify. =A0Cp runs as expected, but >>> cmp runs slower than expected. =A0Neither the disks >>> nor the cpu is maxed out. =A0Local drives, no network >>> involved. =A0Machine is otherwise idle. >> >> =A0 =A01. How are you running cmp? >> =A0 =A02. Why do you claim cmp is the bottleneck? Is it spinning the CPU= ? > > cmp big_file /other_disk/big_file > > Cmp is running slower than it should. =A0It isn't cpu bound ( 67.5%Idle ) > but it isn't disk bound either. =A0Seems like it should be one or the > other. What gets output on the console when you do CTRL-T? Thanks, -Garrett