lkml.org 
[lkml]   [2023]   [Jul]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] perf: add new option '--workload-attr' to set workload sched_policy/priority/mask
From
On 13/07/23 11:58, Changbin Du wrote:
> To get consistent benchmarking results, sometimes we need to set the
> sched_policy/priority/mask of the workload to reduce system noise.
>
> For example, CPU binding is required on big.little system.
>
> $ perf stat -r 10 -- taskset -c 0 ls
>
> Nevertheless, the 'taskset' is also counted here.
>
> To get away of the middleman, this adds a new option '--workload-attr' to
> do the same jobs for stat and record commands.
>
> $ sudo perf stat --workload-attr fifo,40,0x1 -- ls
>
> Above will make 'ls' run on CPU #0 with fifo scheduler and realtime
> priority is 40.

Aren't there ways to set up a process then start perf using -p <pid>
then let the process continue.

\
 
 \ /
  Last update: 2023-07-16 20:47    [W:0.046 / U:0.176 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site