From owner-freebsd-hackers@FreeBSD.ORG Sat Jun 13 07:25:02 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E4B321065674 for ; Sat, 13 Jun 2009 07:25:02 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from shell.rawbw.com (shell.rawbw.com [198.144.192.42]) by mx1.freebsd.org (Postfix) with ESMTP id B91F48FC20 for ; Sat, 13 Jun 2009 07:25:02 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from eagle.syrec.org (c-67-188-87-228.hsd1.ca.comcast.net [67.188.87.228]) (authenticated bits=0) by shell.rawbw.com (8.13.6/8.13.6) with ESMTP id n5D7P11q055285 for ; Sat, 13 Jun 2009 00:25:02 -0700 (PDT) Message-ID: <4A33544C.1070902@rawbw.com> Date: Sat, 13 Jun 2009 00:25:00 -0700 From: Yuri User-Agent: Thunderbird 2.0.0.21 (X11/20090419) MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: top shows that multithreaded program uses 19623.14% CPU X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: yuri@rawbw.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Jun 2009 07:25:03 -0000 I ran then program with 1500 threads and in top it looked the this: PID USERNAME THR PRI NICE SIZE RES STATE C TIME CPU COMMAND 20382 yuri 1500 99 0 641M 462M umtxn 0 0:00 19623.14% quicksort Where can I read how CPU column is calculated? Some time ago I saw another weird fenomenon when CPU column: 5% CPU load for the pocess that just cycles in CPU. Yuri 7.2-STABLE, i7-920 (4 CPUs)