From owner-freebsd-hackers@FreeBSD.ORG Thu Sep 14 18:10:45 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1B4C416A403 for ; Thu, 14 Sep 2006 18:10:45 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1355543D82 for ; Thu, 14 Sep 2006 18:10:38 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id E51741A4D8B; Thu, 14 Sep 2006 11:10:37 -0700 (PDT) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 3D976514F6; Thu, 14 Sep 2006 14:10:37 -0400 (EDT) Date: Thu, 14 Sep 2006 14:10:37 -0400 From: Kris Kennaway To: Gary Corcoran Message-ID: <20060914181037.GA55638@xor.obsecurity.org> References: <863bauk3gp.fsf@dwp.des.no> <45099123.4000500@rcn.com> <17673.37830.1883.272019@bhuda.mired.org> <45099BE3.6080902@rcn.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="opJtzjQTFsWo+cga" Content-Disposition: inline In-Reply-To: <45099BE3.6080902@rcn.com> User-Agent: Mutt/1.4.2.2i Cc: freebsd-hackers@freebsd.org, Mike Meyer Subject: Re: numbers don't lie ... X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Sep 2006 18:10:45 -0000 --opJtzjQTFsWo+cga Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Sep 14, 2006 at 02:13:55PM -0400, Gary Corcoran wrote: > Mike Meyer wrote: > >In <45099123.4000500@rcn.com>, Gary Corcoran typed: > >>The confusing thing is that I thought 'real' time should be >=3D 'user'= +=20 > >>'sys'. > >>But here 'user' is much greater than 'real' for both machines! The sen= se=20 > >>I > >>got from the other messages in this thread is that 'user' time is somew= hat > >>meaningless (i.e. unreliable as a measure) in a multi-CPU and/or=20 > >>hyperthreading > >>environment. Can you clarify? > > > >'real' is wall clock time. 'user' and 'sys' are cpu time. If your > >process gets all of some cpu, then user + sys will be the same as real > >time. It's not possible to get more than all of a cpu, so that's a > >maximum *per cpu*. If you have multiple cpus, the formula you want is > >'real' * ncpu >=3D 'user' + 'sys'. >=20 > Thanks to all of you for the responses. The thing that was not clear is > that despite the printed messages, user (and sys) time are *not* measures > of time. Yes they are, they're cumulative amount of time spent executing code in userland or in the kernel. Kris --opJtzjQTFsWo+cga Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFFCZscWry0BWjoQKURAmoTAJ9IUXWyMHrayD98p+GjhqwSFwFxDQCgypZB exEb6D4GF5WDAm+SwVaMv3s= =Yqif -----END PGP SIGNATURE----- --opJtzjQTFsWo+cga--