4th PFI System reading

N
How Soccer Players
Would do Stream Joins
3/4/2015 @nobu_k
1
Who?
久保田展行 (@nobu_k)
CTO@Preferred Networks America, Inc.
Speciality
DBMS, Search engine
Distributed Systems (consensus)
beatmania IIDX SP/DP皆伝 (DPメイン)
2
How Soccer Players
Would do Stream Joins
Jens Teubner, Rene Mueller, SIGMOD 2011
Handshake Join
Window-based stream joins supporting any join predicate
Very high degrees of parallelism
multi-core CPUs
FPGA
Massively Parallel Processor Arrays (MPPAs)
3
Joins
Joins(⋈) combine two or more relations(tables) in RDBMS
A join is a cross product of relations followed by a selection(σ)
Many methods
Nested-loops joins
Sort-merge joins
(Recursive, hybrid) hash joins
4
Stream Joins
Problems
Unbounded "infinite" input data
Solution: (sliding) window-based joins
tuple-based/time-based
Latency of the output
Solution: online, symmetric evaluation
How can it be scalable?
5
Handshake Joins
Streams flow by each other in opposite directions.
Each core locally evaluates tuples.
Core 1 Core 2 Core 3
6
A newly arrived tuple( ) will be compared to all
tuples( ) in the other stream in the same core.
Any comparison algorithm(predicate) can be used.
Evaluation Strategy
7
Strategies
Lock Step Forwarding
Two-Phase Forwarding using Async-MQ
Asymmetric protocol
Synchronization
b
a
a and b miss each other.
8
Two-Phase Forwarding
Using Asynchronous Message Queue
b
a
b
a
b
Leaving the tuple with a special mark.
FIFO queue
9
1.
2.
Two-phase forwarding: ACK
b
a
b
b
a
b
b
When the left core receives tuple b,
it sends an ack to the right core
before sending any other tuples.
The right core deletes b
when it receives the ack.
10
2.
3.
Two-Phase Forwarding:
when a and b miss each other
bb
a
bb
a
a will be compared to tuples
in the right core including b.
11
4.
5.
Load Balancing
Automatic load balancing without centralized control.
Each core can handle an arbitrary number of tuples.
Core 1 Core 2 Core 3
12
Software Implementation
AMD Opteron 6174 2.2GHz
libnuma
quoted from page 8
13
Scalability
page 8 page 9
14
FPGA Implementation
Assume the system has to provide a throughput of 500ktuples/sec with a window size of 100 tuples.
Config- urations with 1, 2, 5, and 10 join cores can guarantee this throughput if operated at clock
frequencies of 50, 25, 10, or 5 MHz, respectively.
from page 10
15
Summary
Handshake join
Window-based stream join
Flexible and scalable
Working well with FPGA
16
1 of 16

Recommended

Term Project Presentation (4) by
Term Project Presentation (4)Term Project Presentation (4)
Term Project Presentation (4)Louis Loizides PE
161 views12 slides
Advantages of 64 Bit 5T SRAM by
Advantages of 64 Bit 5T SRAMAdvantages of 64 Bit 5T SRAM
Advantages of 64 Bit 5T SRAMIJSRED
17 views5 slides
Architecture innovations in POWER ISA v3.01 and POWER10 by
Architecture innovations in POWER ISA v3.01 and POWER10Architecture innovations in POWER ISA v3.01 and POWER10
Architecture innovations in POWER ISA v3.01 and POWER10Ganesan Narayanasamy
184 views26 slides
11 hr1a0401 by
11 hr1a040111 hr1a0401
11 hr1a0401Guna Sekhar
382 views22 slides
PV-Drivers for SeaBIOS using Upstream Qemu by
PV-Drivers for SeaBIOS using Upstream QemuPV-Drivers for SeaBIOS using Upstream Qemu
PV-Drivers for SeaBIOS using Upstream QemuThe Linux Foundation
1.8K views14 slides
A comparative study of full adder using static cmos logic style by
A comparative study of full adder using static cmos logic styleA comparative study of full adder using static cmos logic style
A comparative study of full adder using static cmos logic styleeSAT Publishing House
1.4K views6 slides

More Related Content

What's hot

Zpudemo by
ZpudemoZpudemo
Zpudemoflexcore
385 views12 slides
Zpu by
ZpuZpu
Zpuflexcore
1.4K views17 slides
BAIT2164 Tutorial 6 (Part 1) by
BAIT2164 Tutorial 6 (Part 1)BAIT2164 Tutorial 6 (Part 1)
BAIT2164 Tutorial 6 (Part 1)limsh
373 views1 slide
The Open Power ISA: A Summary of Architecture Compliancy Options and the Late... by
The Open Power ISA: A Summary of Architecture Compliancy Options and the Late...The Open Power ISA: A Summary of Architecture Compliancy Options and the Late...
The Open Power ISA: A Summary of Architecture Compliancy Options and the Late...Ganesan Narayanasamy
816 views14 slides
Survey on Prefix adders by
Survey on Prefix addersSurvey on Prefix adders
Survey on Prefix addersLakshmi Yasaswi Kamireddy
704 views6 slides
Reservoir engineering in a HPC (zettaflops) world: a ‘disruptive’ presentation by
Reservoir engineering in a HPC (zettaflops) world:  a ‘disruptive’ presentationReservoir engineering in a HPC (zettaflops) world:  a ‘disruptive’ presentation
Reservoir engineering in a HPC (zettaflops) world: a ‘disruptive’ presentationHans Haringa
1.2K views28 slides

What's hot(6)

Zpudemo by flexcore
ZpudemoZpudemo
Zpudemo
flexcore385 views
Zpu by flexcore
ZpuZpu
Zpu
flexcore1.4K views
BAIT2164 Tutorial 6 (Part 1) by limsh
BAIT2164 Tutorial 6 (Part 1)BAIT2164 Tutorial 6 (Part 1)
BAIT2164 Tutorial 6 (Part 1)
limsh373 views
The Open Power ISA: A Summary of Architecture Compliancy Options and the Late... by Ganesan Narayanasamy
The Open Power ISA: A Summary of Architecture Compliancy Options and the Late...The Open Power ISA: A Summary of Architecture Compliancy Options and the Late...
The Open Power ISA: A Summary of Architecture Compliancy Options and the Late...
Reservoir engineering in a HPC (zettaflops) world: a ‘disruptive’ presentation by Hans Haringa
Reservoir engineering in a HPC (zettaflops) world:  a ‘disruptive’ presentationReservoir engineering in a HPC (zettaflops) world:  a ‘disruptive’ presentation
Reservoir engineering in a HPC (zettaflops) world: a ‘disruptive’ presentation
Hans Haringa1.2K views

Similar to 4th PFI System reading

Intro to Cell Broadband Engine for HPC by
Intro to Cell Broadband Engine for HPCIntro to Cell Broadband Engine for HPC
Intro to Cell Broadband Engine for HPCSlide_N
203 views12 slides
Parallel_and_Cluster_Computing.ppt by
Parallel_and_Cluster_Computing.pptParallel_and_Cluster_Computing.ppt
Parallel_and_Cluster_Computing.pptMohmdUmer
5 views31 slides
The Cell Processor by
The Cell ProcessorThe Cell Processor
The Cell ProcessorHeiko Joerg Schick
1.8K views87 slides
Cluster computer by
Cluster  computerCluster  computer
Cluster computerAshraful Hoda
3.3K views23 slides
Brkmpl 2333 by
Brkmpl 2333Brkmpl 2333
Brkmpl 2333ronsito
1.1K views81 slides
directCell - Cell/B.E. tightly coupled via PCI Express by
directCell - Cell/B.E. tightly coupled via PCI ExpressdirectCell - Cell/B.E. tightly coupled via PCI Express
directCell - Cell/B.E. tightly coupled via PCI ExpressHeiko Joerg Schick
786 views34 slides

Similar to 4th PFI System reading(20)

Intro to Cell Broadband Engine for HPC by Slide_N
Intro to Cell Broadband Engine for HPCIntro to Cell Broadband Engine for HPC
Intro to Cell Broadband Engine for HPC
Slide_N203 views
Parallel_and_Cluster_Computing.ppt by MohmdUmer
Parallel_and_Cluster_Computing.pptParallel_and_Cluster_Computing.ppt
Parallel_and_Cluster_Computing.ppt
MohmdUmer5 views
Brkmpl 2333 by ronsito
Brkmpl 2333Brkmpl 2333
Brkmpl 2333
ronsito1.1K views
directCell - Cell/B.E. tightly coupled via PCI Express by Heiko Joerg Schick
directCell - Cell/B.E. tightly coupled via PCI ExpressdirectCell - Cell/B.E. tightly coupled via PCI Express
directCell - Cell/B.E. tightly coupled via PCI Express
Heiko Joerg Schick786 views
The Best Programming Practice for Cell/B.E. by Slide_N
The Best Programming Practice for Cell/B.E.The Best Programming Practice for Cell/B.E.
The Best Programming Practice for Cell/B.E.
Slide_N320 views
High-Performance Physics Solver Design for Next Generation Consoles by Slide_N
High-Performance Physics Solver Design for Next Generation ConsolesHigh-Performance Physics Solver Design for Next Generation Consoles
High-Performance Physics Solver Design for Next Generation Consoles
Slide_N57 views
Presentation8 by Mohd Yusak
Presentation8Presentation8
Presentation8
Mohd Yusak505 views
DUAL FIELD DUAL CORE SECURE CRYPTOPROCESSOR ON FPGA PLATFORM by VLSICS Design
DUAL FIELD DUAL CORE SECURE CRYPTOPROCESSOR ON FPGA PLATFORMDUAL FIELD DUAL CORE SECURE CRYPTOPROCESSOR ON FPGA PLATFORM
DUAL FIELD DUAL CORE SECURE CRYPTOPROCESSOR ON FPGA PLATFORM
VLSICS Design26 views
Ccna 1 chapter 9 v4.0 answers 2011 by Dân Chơi
Ccna 1 chapter 9 v4.0 answers 2011Ccna 1 chapter 9 v4.0 answers 2011
Ccna 1 chapter 9 v4.0 answers 2011
Dân Chơi8K views
1 by ijcseit
11
1
ijcseit426 views
PHASE-PRIORITY BASED DIRECTORY COHERENCE FOR MULTICORE PROCESSOR by ijad journal
PHASE-PRIORITY BASED DIRECTORY COHERENCE FOR MULTICORE PROCESSORPHASE-PRIORITY BASED DIRECTORY COHERENCE FOR MULTICORE PROCESSOR
PHASE-PRIORITY BASED DIRECTORY COHERENCE FOR MULTICORE PROCESSOR
ijad journal29 views
PHASE-PRIORITY BASED DIRECTORY COHERENCE FOR MULTICORE PROCESSOR by ijcseit
PHASE-PRIORITY BASED DIRECTORY COHERENCE FOR MULTICORE PROCESSORPHASE-PRIORITY BASED DIRECTORY COHERENCE FOR MULTICORE PROCESSOR
PHASE-PRIORITY BASED DIRECTORY COHERENCE FOR MULTICORE PROCESSOR
ijcseit281 views
Achieving Performance Isolation with Lightweight Co-Kernels by Jiannan Ouyang, PhD
Achieving Performance Isolation with Lightweight Co-KernelsAchieving Performance Isolation with Lightweight Co-Kernels
Achieving Performance Isolation with Lightweight Co-Kernels
Jiannan Ouyang, PhD1.1K views
HOW THE BOOST WORKS.pdf by vladvah77
HOW THE BOOST WORKS.pdfHOW THE BOOST WORKS.pdf
HOW THE BOOST WORKS.pdf
vladvah771 view
CSE 3231 – Computer Networks – Midterm Exam – Spring 2021 by MargenePurnell14
CSE 3231 – Computer Networks – Midterm Exam – Spring 2021 CSE 3231 – Computer Networks – Midterm Exam – Spring 2021
CSE 3231 – Computer Networks – Midterm Exam – Spring 2021
Surviving The Stump The Chump Interview Questions by Duane Bodle
Surviving The Stump The Chump Interview QuestionsSurviving The Stump The Chump Interview Questions
Surviving The Stump The Chump Interview Questions
Duane Bodle1.1K views
Blue gene detail journal by Vivek Jha
Blue gene detail journalBlue gene detail journal
Blue gene detail journal
Vivek Jha983 views

More from nobu_k

Elasticsearchと機械学習を実際に連携させる by
Elasticsearchと機械学習を実際に連携させるElasticsearchと機械学習を実際に連携させる
Elasticsearchと機械学習を実際に連携させるnobu_k
30K views40 slides
機械学習を利用したちょっとリッチな検索 by
機械学習を利用したちょっとリッチな検索機械学習を利用したちょっとリッチな検索
機械学習を利用したちょっとリッチな検索nobu_k
16.6K views33 slides
Goraft and InfluxDB by
Goraft and InfluxDBGoraft and InfluxDB
Goraft and InfluxDBnobu_k
10.4K views22 slides
Transactional Information Systems入門 by
Transactional Information Systems入門Transactional Information Systems入門
Transactional Information Systems入門nobu_k
3.7K views54 slides
Riak Source Code Reading #2: Erlang Client by
Riak Source Code Reading #2: Erlang ClientRiak Source Code Reading #2: Erlang Client
Riak Source Code Reading #2: Erlang Clientnobu_k
1.3K views25 slides
Paxos by
PaxosPaxos
Paxosnobu_k
2.7K views64 slides

More from nobu_k(8)

Elasticsearchと機械学習を実際に連携させる by nobu_k
Elasticsearchと機械学習を実際に連携させるElasticsearchと機械学習を実際に連携させる
Elasticsearchと機械学習を実際に連携させる
nobu_k30K views
機械学習を利用したちょっとリッチな検索 by nobu_k
機械学習を利用したちょっとリッチな検索機械学習を利用したちょっとリッチな検索
機械学習を利用したちょっとリッチな検索
nobu_k16.6K views
Goraft and InfluxDB by nobu_k
Goraft and InfluxDBGoraft and InfluxDB
Goraft and InfluxDB
nobu_k10.4K views
Transactional Information Systems入門 by nobu_k
Transactional Information Systems入門Transactional Information Systems入門
Transactional Information Systems入門
nobu_k3.7K views
Riak Source Code Reading #2: Erlang Client by nobu_k
Riak Source Code Reading #2: Erlang ClientRiak Source Code Reading #2: Erlang Client
Riak Source Code Reading #2: Erlang Client
nobu_k1.3K views
Paxos by nobu_k
PaxosPaxos
Paxos
nobu_k2.7K views
Suffix Array@Solr勉強会 by nobu_k
Suffix Array@Solr勉強会Suffix Array@Solr勉強会
Suffix Array@Solr勉強会
nobu_k4K views
第一回MongoDBソースコードリーディング by nobu_k
第一回MongoDBソースコードリーディング第一回MongoDBソースコードリーディング
第一回MongoDBソースコードリーディング
nobu_k1.2K views

4th PFI System reading