dotnet / corefx-tools

Place to include various misc tools for .NET and .NET Core.
MIT License
58 stars 41 forks source link

'perfcollect install' fails on official dotnet docker images #76

Closed RussKeldorph closed 6 years ago

RussKeldorph commented 6 years ago

From @sebastienros on April 20, 2018 0:3

In a microsoft/dotnet:2.0-sdk-jessie image, running perfcollect install errors with an unsupported linux distribution. uname returns Linux which isn't handled.

I tried to install manually based on Debian instructions, however after installing zip and linux-tools I still get a

Perf not installed.
Install perf to proceed.

Copied from original issue: dotnet/coreclr#17686

RussKeldorph commented 6 years ago

@brianrob

RussKeldorph commented 6 years ago

@vancem

brianrob commented 6 years ago

FYI, I am looking into this. It appears that the docker images are possibly using a much newer kernel than the default installation of Debian Jessie. The images also appear to strip a good number of the package sources.

I am working on setting up a machine with Debian Jessie so I can see what's different.

brianrob commented 6 years ago

It looks like the default Debian Jessie installation uses kernel 3.16, which has a corresponding perf package. @MichaelSimons, do you know where the 4.13 kernel in our debian jessie docker images comes from? I can't find a corresponding linux-tools-4.13 or linux-perf-4.13 package that can be installed with the 4.13 kernel on either debian jessie or debian stretch.

brianrob commented 6 years ago

@MichaelSimons can you comment on the question above? Thanks.

brianrob commented 6 years ago

Fixed via #78.

sebastienros commented 6 years ago

The problem is still there as uname returns Linux from the dotnet docker images, and the script is not expecting this value.

brianrob commented 6 years ago

Just merged #79 that will hopefully help. I tested on stretch and it looks like you're running on Jessie. The result of uname should not matter for Debian because we'll also check /etc/os-release.

Please try the latest version of perfcollect and see if that helps.