Code Monkey home page Code Monkey logo

Comments (5)

Teyras avatar Teyras commented on July 23, 2024

I did some additional checks and I get the same result in isolate without cgroups.

from isolate.

bblackham avatar bblackham commented on July 23, 2024

Try echo 0 > /proc/sys/kernel/perf_event_paranoid. See https://www.kernel.org/doc/Documentation/sysctl/kernel.txt for details

from isolate.

Teyras avatar Teyras commented on July 23, 2024

It worked, thank you very much! However, weird things still happen: ls in an isolate box reports about 1000 cache misses, and when I run it outside of a box, I get around 30000 cache misses. I think I'm listing the same directory...

from isolate.

bblackham avatar bblackham commented on July 23, 2024

My guess is that because isolate is suid-root but perf is launched as a normal user, the perf counters stop the moment that it becomes root (i.e, a few thousand instructions into launching the binary). I have no authorative source to back up my theory, but I bet the kernel source will show this. If you run perf as root, the counters look right.

from isolate.

Teyras avatar Teyras commented on July 23, 2024

Hmm, running perf as root seems to do the trick. I'm closing this, thanks for your help!

from isolate.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.