Tag: perf

有可能在Docker容器中运行linux perf工具

我尝试从容器中给出下面的命令,发现下面的问题,可能是因为“-moby”内核版本。 我们不能在linux内核版本中得到一个没有“-moby”字样的docker图像。 我试图在具有Ubuntu的VM上安装linux perf工具,它工作。 #docker run -t -i ubuntu:14.04 /bin/bash root@214daea94f4f:/# perf WARNING: perf not found for kernel 4.9.41 You may need to install the following packages for this specific kernel: linux-tools-4.9.41-moby linux-cloud-tools-4.9.41-moby You may also want to install one of the following packages to keep up to date: linux-tools-moby-lts-<series> linux-cloud-tools-moby-lts-<series>

Linux“Perf”工具不能在Docker镜像中运行?

我知道“perf”工具要求安装对应于特定的linux内核版本。 而且我知道所有的docker映像都运行在相同的linux内核版本上,不pipelinux发行版本。 我在Docker里面使用了Ubuntu 16.04并且已经安装了linux-tools-common,启动perf告诉我我还缺less一些软件包:' # perf /usr/bin/perf: line 32: lsb_release: command not found WARNING: perf not found for kernel 4.9.12 You may need to install the following packages for this specific kernel: linux-tools-4.9.12-moby linux-cloud-tools-4.9.12-moby You may also want to install one of the following packages to keep up to date: linux-tools-moby linux-cloud-tools-moby 然后我试图安装我错过的东西: root@xxxxxx:/# apt-get […]