From owner-freebsd-arm@FreeBSD.ORG Fri Jun 12 12:25:02 2015 Return-Path: Delivered-To: freebsd-arm@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id EEBA044F for ; Fri, 12 Jun 2015 12:25:02 +0000 (UTC) (envelope-from jiashiun@gmail.com) Received: from mail-ig0-x22f.google.com (mail-ig0-x22f.google.com [IPv6:2607:f8b0:4001:c05::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B84861663 for ; Fri, 12 Jun 2015 12:25:02 +0000 (UTC) (envelope-from jiashiun@gmail.com) Received: by igbsb11 with SMTP id sb11so10001664igb.0 for ; Fri, 12 Jun 2015 05:25:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=wiA6yuqnLOWASaP996imlKRoFhp8FdswLqYWlP7wuc0=; b=y6aF5U0vunVcJ0g0doiJZ1TMV8aCrV33ltm1pQwC7pJBUbstlojjDM12vqRJT/3RWM rY0pls936eLCN2n2MM/kXHNRudJ7yHqI9/rNZFBcPzY6CakxcvQd+yYSGAWu1KhPOoaf yEUz536+hVDBl5YIIG2aiI2ku/Q4ykoWsuTZz3IHk8gy9fWiTNKxefJ/FlSs+DHnEb6y 1SZeFUtKxrcXiVK5jMLju/OUuYxNe1d4fUmYe1a4K6JViQlIbGlk4/NqzsU2tlJJ4a7C o4I+1zbu2XKTiMFmjwoh8iEsrVkDwesqPQyARFDX9MRz4VfdugX0kgwjRxN4kjR/TSiL 1fNw== X-Received: by 10.50.132.33 with SMTP id or1mr3949236igb.31.1434111901595; Fri, 12 Jun 2015 05:25:01 -0700 (PDT) MIME-Version: 1.0 Received: by 10.36.143.4 with HTTP; Fri, 12 Jun 2015 05:24:31 -0700 (PDT) In-Reply-To: References: From: Jia-Shiun Li Date: Fri, 12 Jun 2015 20:24:31 +0800 Message-ID: Subject: Re: cpu accounting wrong on rpi2 To: "freebsd-arm@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Jun 2015 12:25:03 -0000 On Thu, Jun 11, 2015 at 12:28 PM, Jia-Shiun Li wrote: > Hi all, > > just noticed that cpu accounting is kind of strange on rpi2. It shows 15x > CPU time. > > > process stats in top are sometimes correct PID USERNAME THR PRI NICE SIZE RES STATE C TIME CPU COMMAND 39619 root 1 101 10 66892K 43456K CPU0 0 30:04 98.34% c++ 39521 root 1 112 10 423M 418M CPU2 2 237:42 98.19% genautomata 39622 root 1 97 10 57092K 31100K RUN 3 7:35 76.59% c++ 39625 root 1 86 10 47548K 20148K RUN 1 0:01 74.35% c++ 621 jsli 1 39 0 15776K 6984K RUN 3 286:16 16.86% tmux and sometimes wrong in immediately next snapshot PID USERNAME THR PRI NICE SIZE RES STATE C TIME CPU COMMAND 39521 root 1 113 10 271M 264M CPU2 2 147:22 22248.09% genautomata 39590 root 1 108 10 75268K 49576K RUN 3 30:13 22247.24% c++ 39599 root 1 93 10 47528K 22648K CPU0 0 7:32 22245.61% c++ 95532 jsli 1 23 0 19084K 3864K select 1 157:11 22158.75% sshd 39596 root 1 97 10 57040K 30296K CPU1 1 0:08 66.48% c++ this was taken while building lang/gcc5. -Jia-Shiun.