Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 Sep 2023 16:02:56 +0200
From:      Mateusz Guzik <mjguzik@gmail.com>
To:        Graham Perrin <grahamperrin@gmail.com>
Cc:        Juraj Lutter <otis@freebsd.org>, FreeBSD-CURRENT <freebsd-current@freebsd.org>
Subject:   Re: kernel 100% CPU
Message-ID:  <CAGudoHFW25R%2BK8TwCW_T__SeTTPiLGtYghvajLp6Da7tNLm87w@mail.gmail.com>
In-Reply-To: <fd1120f1-71f4-85a1-23ee-181d4c4316de@gmail.com>
References:  <95e9f65b-58c4-ef3a-a5d1-b794179e4252@gmail.com> <CAGudoHG%2B4wT-MCP=zE4VqdJYJwTKSLf8GfARvQbGwKZw%2Bz8F_g@mail.gmail.com> <d2e5951a-7c6c-f450-eacc-d8e4f6446118@gmail.com> <CAGudoHEhNG2e2J7Cb2w0EKZ7p_cdq0hie_s67AHCj7x8hfw8SA@mail.gmail.com> <79114b6f-9fe1-2e76-55be-a27cf8c178bf@gmail.com> <79A8D994-65F0-4E5C-9713-8A1B6122DB00@FreeBSD.org> <fd1120f1-71f4-85a1-23ee-181d4c4316de@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

On 9/3/23, Graham Perrin <grahamperrin@gmail.com> wrote:
> On 03/09/2023 09:01, Juraj Lutter wrote:
>> … The script mjg@ provided is not a shell script.
>>
>> The script filename is “script.d” where you should put the
>> above-mentioned DTrace script (without the "dtrace -s script.d -o out”
>> line).
>
>
> Thanks, I guess that I'm still doing something wrong:
>
>
> root@mowa219-gjp4-8570p-freebsd:/home/grahamperrin/Documents/IT/BSD/FreeBSD/kernel-cpu
>
> # time dtrace -s script.d -o /tmp/out
> dtrace: script 'script.d' matched 4 probes
> ^C0.246u 4.049s 27:25.70 0.2%   14+91k 261+0io 274pf+0w
> root@mowa219-gjp4-8570p-freebsd:/home/grahamperrin/Documents/IT/BSD/FreeBSD/kernel-cpu
>
> # cat /tmp/out
>
> CPU     ID                    FUNCTION:NAME
>    3      2                             :END
>
> root@mowa219-gjp4-8570p-freebsd:/home/grahamperrin/Documents/IT/BSD/FreeBSD/kernel-cpu
>

The script is intended to run when you have git executing for a long time.

-- 
Mateusz Guzik <mjguzik gmail.com>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGudoHFW25R%2BK8TwCW_T__SeTTPiLGtYghvajLp6Da7tNLm87w>