Overview

Stream analytics on real-time events has an insatiable demand for high throughput and low latency. StreamBox is a novel stream processing engine optimized for multicore and hybrid memory.

StreamBox on a multicore machine

  1. Exploits the parallelism and memory hierarchies in modern multicore hardware

  2. Supports out-of-order data processing

  3. Scales to a large number (56) of cores

  4. Achieves throughput on a par with distributed engines on medium-size clusters

  5. Delivers latencies of the tens of milliseconds, which are 20× shorter than popular distributed streaming engines

StreamBox on high bandwidth hybrid memory

  1. Exploits the emerging hybrid memories combining commodity DDR4 DRAM and 3D-stacked DRAM

  2. Replaces Hash with Sort using high task parallelism, wide SIMD (AVX-512), and sequential memory access to harness abundant bandwidth of 3D-stacked DRAM

  3. Dynamically extracts Key Pointer Aarry (KPA) from full records on DRAM to 3D-stacked DRAM to minimize the use of the precious capacity

  4. Dynamically manages KPA placement based on both 3D-stacked DRAM’s high bandwidth and limited capacity, and normal DRAM’s high capacity and limited bandwidth

  5. Achieves the best reported records per second for streaming with ingress on a single machine (Intel Knights Landing)

Source Code on a Multicore Machine

Where

wget ftp://ftp.ecn.purdue.edu/xzl/software/streambox/streambox-last.tar.gz

Build & Run

  • Dependencies

  /*Ubuntu 16.04*/
  $sudo apt-get install
    g++ \
    libtbb-dev \
    automake \
    autoconf \
    autoconf-archive \
    libtool \
    libboost-all-dev \
    libevent-dev \
    libdouble-conversion-dev \
    libgoogle-glog-dev \
    libgflags-dev \
    liblz4-dev \
    liblzma-dev \
    libsnappy-dev \
    make \
    zlib1g-dev \
    binutils-dev \
    libjemalloc-dev \
    libssl-dev
  • Set compilation parameters

  Edit /path/to/streambox/CMakeLists.txt
  • Build an application

  $cd /path/to/streambox/
  $/usr/bin/cmake -DCMAKE_BUILD_TYPE=Release -G "CodeBlocks - Unix Makefiles" \
   /path/to/streambox
  /*Build Wordcount*/
  $make test-wc.bin
  • Run an application

  $cd /path/to/streambox
  $./test-wc.bin

Source Code on Intel Knights Landing with Hybrid Memory

Where

wget ftp://ftp.ecn.purdue.edu/xzl/software/streambox/streambox-knl.tar.gz

Build & Run

Please check out the HOW_TO_RUN_BENCHMARKS in source code for detailed instructions on how to compile and run all benchmarks.

Source Code on HiKey Board with TrustZone

Where

wget ftp://ftp.ecn.purdue.edu/xzl/software/streambox/streambox-tz.tar.gz

Build & Run

Please check out the README for detailed instructions on how to compile both normal and secure world and run all benchmarks.

Acknowledgement

This work was supported in part by NSF Award #1718702, NSF Award #1619075, and a Google Faculty Award. Development software was donated by Intel and JetBrains.

People

PhD students
Faculty and Researcher

License

All the pre-existing code and data are subject to their own licenses. All the userspace programs and kernel modules resulted from this project are under FreeBSD license.

Copyright (c) 2016-2019, Purdue University

All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

The views and conclusions contained in the software and documentation are those of the authors and should not be interpreted as representing official policies, either expressed or implied, of Purdue University.

This page is generated with asciidoc on 2019-04-01. [ source rawlink ]