From owner-freebsd-performance@FreeBSD.ORG Tue Jan 3 01:29:30 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 B4987106566C for ; Tue, 3 Jan 2012 01:29:30 +0000 (UTC) (envelope-from dieterbsd@engineer.com) Received: from mailout-us.mail.com (mailout-us.gmx.com [74.208.5.67]) by mx1.freebsd.org (Postfix) with SMTP id 582938FC17 for ; Tue, 3 Jan 2012 01:29:30 +0000 (UTC) Received: (qmail 29808 invoked by uid 0); 3 Jan 2012 01:29:29 -0000 Received: from 67.206.162.250 by rms-us001.v300.gmx.net with HTTP Content-Type: text/plain; charset="utf-8" Date: Mon, 02 Jan 2012 20:29:27 -0500 From: "Dieter BSD" Message-ID: <20120103012929.218270@gmx.com> MIME-Version: 1.0 To: freebsd-performance@freebsd.org X-Authenticated: #74169980 X-Flags: 0001 X-Mailer: GMX.com Web Mailer x-registered: 0 Content-Transfer-Encoding: 8bit X-GMX-UID: rjxwbyc03zOlNR3dAHAh/Np+IGRvb0CY 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:29:30 -0000 >> Task: cp(1) a several-GB file from one drive to another, >> then run cmp(1) to verify.  Cp runs as expected, but >> cmp runs slower than expected.  Neither the disks >> nor the cpu is maxed out.  Local drives, no network >> involved.  Machine is otherwise idle. > >    1. How are you running cmp? >    2. 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.  It isn't cpu bound ( 67.5%Idle ) but it isn't disk bound either.  Seems like it should be one or the other.