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
Exploits the parallelism and memory hierarchies in modern multicore hardware
Supports out-of-order data processing
Scales to a large number (56) of cores
Achieves throughput on a par with distributed engines on medium-size clusters
Delivers latencies of the tens of milliseconds, which are 20× shorter than popular distributed streaming engines
StreamBox on high bandwidth hybrid memory
Exploits the emerging hybrid memories combining commodity DDR4 DRAM and 3D-stacked DRAM
Replaces Hash with Sort using high task parallelism, wide SIMD (AVX-512), and sequential memory access to harness abundant bandwidth of 3D-stacked DRAM
Dynamically extracts Key Pointer Aarry (KPA) from full records on DRAM to 3D-stacked DRAM to minimize the use of the precious capacity
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
Achieves the best reported records per second for streaming with ingress on a single machine (Intel Knights Landing)
[USENIX ATC’17] "StreamBox: Modern Stream Processing on a Multicore Machine," Hongyu Miao, Heejin Park, Myeongjae Jeon, Gennady Pekhimenko, Kathryn S. McKinley, and Felix Xiaozhu Lin, in Proc. of USENIX Annual Technical Conference, July 2017.
[ASPLOS’19] "StreamBox-HBM: Stream Analytics on High Bandwidth Hybrid Memory," Hongyu Miao, Myeongjae Jeon, Gennady Pekhimenko, Kathryn S. McKinley, and Felix Xiaozhu Lin, in Proc. of the 24th ACM International Conference on Architectural Support for Programming Languages and Operating Systems, April 2019.
Source Code on a Multicore Machine
Build & Run
/*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
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
Build & Run
Please check out the HOW_TO_RUN_BENCHMARKS in source code for detailed instructions on how to compile and run all benchmarks.
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.
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:
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
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.