Giter VIP home page Giter VIP logo

autovec-db's People

Contributors

he3lixxx avatar lawben avatar richardebeling avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

autovec-db's Issues

Alignment-Weirdness / µOp Cache issues causing high performance variance

Just to have it written down somewhere.

With hash_bucket in the bitmask variants, we have observed that the alignment of the hot loop in the function body impacts measured performance even though the CPU executes the exactly same bytes.

vTune implies that we have different amounts of work done in the frontend, it seems like the Decoded-Stream-Buffer / µOp-Cache doesn't work properly with certain alignments.
Investigation so far implied that:

  • Per 32B instruction window, we do not use more than the 3 available cache lines in the µOp Cache. mostly, we have just 6-8 µOps in a 32B instruction window
  • Up to IceLake (excluding), it could be due to the Intel Jcc-Erratum. We had a conditional jump that was bordering a 32B-boundary. With a 16B offset, this was not the case
    • However, investigation on our IceLake servers showed that we still get significant performance variance there with different alignment. Inline assembler for "16B nops" actually moves the function by 32B, and can give a 20% performance boost.

The last point needs more investigation. Maybe, there is something completely different going on, or maybe we haven't found the root cause yet.

Sort benchmarks

Just for simplicity when comparing results and plotting, let's sort all benchmarks in the following order:

  1. Scalar
  2. Autovec
  3. GCC vec
  4. CPU-specific

This is the order I want in the plots.

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.