当我运行带有--perf选项的stress-ng时,它显示如下:
root@1f5f41f13d4b:/usr/lib/linux-tools# stress-ng --cpu 1 --timeout 2s --perf
stress-ng: info: [4170] dispatching hogs: 1 cpu
stress-ng: info: [4170] cache allocate: default cache size: 4096K
stress-ng: info: [4170] successful run completed in 2.03s
stress-ng: info: [4170] perf counters are not available on this device我安装了linux-tools-generic包并找到了perf工具。我运行了stress-ng,它也有同样的错误。linux系统是Ubuntu 16.04。有谁知道怎么解决这个问题吗?
发布于 2018-02-26 09:57:54
像这样用sudo尝试一下:
sudo stress-ng --cpu 1 --timeout 2s --perf
https://stackoverflow.com/questions/48665332
复制相似问题