From owner-freebsd-questions@FreeBSD.ORG Fri Jun 12 23:10:26 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E907F1065678 for ; Fri, 12 Jun 2009 23:10:26 +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 BD8648FC0C for ; Fri, 12 Jun 2009 23:10:26 +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 n5CNAPL6062504 for ; Fri, 12 Jun 2009 16:10:25 -0700 (PDT) Message-ID: <4A32E060.5090201@rawbw.com> Date: Fri, 12 Jun 2009 16:10:24 -0700 From: Yuri User-Agent: Thunderbird 2.0.0.21 (X11/20090419) MIME-Version: 1.0 To: freebsd-questions@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-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: yuri@rawbw.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Jun 2009 23:10:27 -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)