1

I am using Ubuntu 18.04 and running the perf stat command to get some information on various hardware events for an application. I notice on doing sudo perf stat --interval-print 1, I get an error saying print interval must be >= 10ms. However, in the Ubuntu and Linux manual pages (https://man7.org/linux/man-pages/man1/perf-stat.1.html), it mentions that the minimum for interval-print is 1ms. By doing uname -r I get my kernel version as: 4.15.0-158-generic and I have installed the tool following the instructions here: https://askubuntu.com/a/578618/1000263.

Any help on how I can run the perf stat command for an interval time of 1 ms on my machine will be really helpful and appreciated. Please let me know if further information is required.

1 Answer 1

1

Welcome to Ask Ubuntu, actually it is 10ms in 18.04 and changed afterward (In or before 20.04).

I checked on on source package of Linux kernel 5.4, man page of perf-stat mention 1ms. So you will able to set interval to 1ms if kernel is upgraded to version 5 (like: linux-generic-hwe-18.04).

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .