Giter Site home page Giter Site logo

pcie-model's Introduction

A PCIe model

This repository contains a model of PCI Express (PCIe). It allows users to calculate PCIe bandwidth for different hardware configurations e.g., PCIe generation, number of lanes, and negotiated parameters, such as Maximum Payload Size (MPS), Maximum Read Request Size (MRRS), etc.

The code in this repository also allows to model device/driver interactions. This is typically done by adding up how many bytes are transferred to and from the host for a given transaction (or batch of transactions). For example, for a very simple NIC to transmit a packet from the host, the device driver would perform a PCIe write to update the queue pointer. The device would then DMA the TX descriptor and the packet from the host. After the transmission the device would generate a MSI and device driver would read the TX queue pointer. For the receive path similar transactions would occur. The file simple_nic.py contains code to calculate the achievable bandwidth by such a simple NIC.

More realistic/modern devices typically batch some transactions, for example, they DMA groups of descriptors. The file niantic.py contains a model for such a device, a Intel 10Gb/s NIC, code-named Niantic.

Sample code

There are two sample program in the top-level directory (with associated gnuplot files).

  • pcie_bw.py prints out the bandwidth achievable at the TLP layer for a given PCIe configuration. It also generates bandwith data for Memory Read (MRd) and Memory Write (MWr) pcie transactions for different payload sizes. This uses the mem_bw.py model.

  • nic_bw.py calculates the theoretically achievable bandwidth for a simple NIC and Intel Niantic style NIC using the models mentioned above.

More information

For more information see our SIGCOMM 2018 paper "Understanding PCIe Performance for End Host Networking".

TODO: Add link once available.

pcie-model's People

Contributors

rn avatar awm22 avatar pchaigno avatar

Watchers

James Cloos avatar sidrai avatar

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.