From owner-freebsd-hackers@freebsd.org Tue Oct 10 04:23:41 2017 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6950FE481C1 for ; Tue, 10 Oct 2017 04:23:41 +0000 (UTC) (envelope-from v.velox@vvelox.net) Received: from vulpes.vvelox.net (vulpes.vvelox.net [96.95.67.25]) by mx1.freebsd.org (Postfix) with ESMTP id 5019E6A86F for ; Tue, 10 Oct 2017 04:23:41 +0000 (UTC) (envelope-from v.velox@vvelox.net) Received: from vvelox.net (localhost [127.0.0.1]) (Authenticated sender: kitsune) by vulpes.vvelox.net (Postfix) with ESMTPA id 470E9224A64F for ; Mon, 9 Oct 2017 23:16:16 -0500 (CDT) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Mon, 09 Oct 2017 23:16:16 -0500 From: "Zane C. B-H." To: freebsd-hackers@freebsd.org Subject: using pctcpu Message-ID: X-Sender: v.velox@vvelox.net User-Agent: Roundcube Webmail/1.3-beta X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Oct 2017 04:23:41 -0000 Using https://metacpan.org/pod/BSD::Process that to get pctcpu, but I can't get it to line up nicely with ps. The closest I can get is dividing pctcpu by 20, but that still tends to run high. For example dividing by 20 will give me 1635.8 while ps will show 1595.3. I know the 1635.8 is definitely off as this machine only has 16 cores.