SlideShare a Scribd company logo
INTRODUCING A NON-VOLATILE GENERIC OBJECT
PROGRAMMING MODEL FOR IN-MEMORY COMPUTING
(SPARK) PERFORMANCE IMPROVEMENT
YANPING WANG
APACHE MNEMONIC (INCUBATING) PROJECT LEADER
YANPINGW@APACHE.ORG
STORAGE MEDIA
EVOLUTION IS
CHANGING FUTURE SW
PROGRAMING
STORAGE MEDIA EVOLUTION
 Storage Media
Evolution: NAND
and 3D XPoint are
filling the Speed
and Capacity
gap between
DRAM and Hard
Disk Drives
 Software is facing
the challenge on
how to use them
STORAGE MEDIA EVOLUTION IS CHANGING FUTURE
SW PROGRAMING
FROM IN-MEMORY TO IN-PLACE
 Moving from In-Memory
Computing to In-Place
Computing
 Mnemonic is a
pioneering project to
extend in-memory
computing to in-place
computing using next
generation NVM
storage media.
(Picture was taken from Ken
Gibson’s Storage Industry Summit
January, 20, 2016)
A NON-VOLATILE
PROGRAMMING MODEL
FOR JAVA APPLICATION
DEVELOPERS
WHY JAVA?
• There are 300+ open source initiatives at the ASF. 221 of them are
Java based, accounts for 59.9%.
• Top Level Big Data Projects are Java based projects, include
Hadoop, CloudStack, Spark, Cassandra, Hive, HBase, Flink, Solr…..
• Java related optimization has significantly contributed to Big Data
applications’ performance improvement.
TRADITIONAL JAVA BASED BIG DATA
FRAMEWORKS AND APPLICATIONS
OUR PROPOSAL: OFF-HEAP, LEAVE DATA IN-PLACE
NON-VOLATILE JAVA OBJECT MODEL
• Provides Java programmers a
mechanism to define objects and
structures as Mnemonic-managed
objects and structures.
• Objects identified as @DurableEntity
store their durable fields in volatile/non-
volatile memory space.
• @DurableGetter and @DurableSetter are
used to access those fields.
• Handlers are used to refer their
connected durable object.
• https://docs.oracle.com/javase/tutorial
/java/annotations/basics.html
AN EXAMPLE OF NON-VOLATILE LINKED LIST
(LAZY LOADING)
APACHE MNEMONIC INFRASTRUCTURE
APACHE MNEMONIC STRUCTURE
• Performance oriented architecture
• Unified platform enabling Framework
• Unique non-volatile object model
• Flexible & extensible focal point for
optimization
MNEMONIC SEARCH EXAMPLE
• Traditional search:
SerDes, caching,
pack/unpack, burst
temp objects
creation and
destruction cost can
be as high as 70-80%
• Mnemonic Search: in-
place creation &
update, no SerDes,
load on demand, no
need to normalize
MNEMONIC PROJECT POSITIONING
• Apache Mnemonic (Incubating) is a
Java based non-volatile memory library
(API) for in-place structured data
processing and computing
• Addresses Big Data performance issues
• High cost of Serialization/De-serialization
• Frequent unpredicted long Garbage Collection
pauses
• Burst temporary object creation/destruction
• Frequent high cost JNI call with stack
marshalling
• System paging and kernel structure updating
due to massive data processing
USE CASE EXAMPLE:
SPARK + MNEMONIC
=IN-PLACE MACHINE
LEARNING COMPUTING
NON-VOLATILE RDD CODE FOR SPARK
• ~600 line of Non-Volatile
RDD code is added into
Spark, to alter data flow
from Spark RDD via JVM
heap to Mnemonic.
• Spill RDDs to off-heap and
disk can be avoid.
• RDD data cache and
local checkpoints can also
be avoided when using
Nonvolatile or Durable
objects.
INTERNAL STRUCTURED DATA REPRESENTATION
 Spark experiment uses: 2D Linked List
data structure to store data in
persistent memory and storage.
 N nodes: represent the first level of
linked list.
 V nodes: represent the values of first
level of linked list that still is a linked
list.
 Only N2 and V1 (methods & volatile
fields) are instantiated on heap.
SPARK MLLIB KMEANS
SPARK MLLIB KMEANS PERFORMANCE IMPROVEMENT
• SPARK ML Kmeans implements one of the most
popular clustering algorithms
• Exp1: spark.storage.memoryFraction 0.6
• Exp2: spark.storage.memoryFraction 0.2
CONFIGURATION FOR PERFORMANCE MEASUREMENT
 Platform Software Configuration
 OS: CentOS 7
 JVM: JDK8 update 60
 ParallelOldGC is used for Spark ML throughput
workload Kmeans
 Spark1.5.0
 Platform Hardware
 Haswell EP (72 cores, E5-2699 v3 @ 2.3GHz)
 256GB DDR4-2133 on-board Memory
 Storage media: SATA SSD
 Device Model: INTEL SSDSC2BB016T4
 Serial Number: BTWD442601311P6HGN
 User Capacity: 1.60 TB
 SATA Version is: SATA 3.0, 6.0 Gb/s
 Spark Kmeans Experiments Setting:
– System memory is reduced to 128G via
static dummy ramfile occupancy
– 20 executors with 4 GB JVM heap, 3 cores
– Both of datasets are stored on SSD
– Experiment 1
– spark.storage.memoryFraction 0.6
– 100,000,000 records with vector in 12
dimension (20 partitions)
– Experiment 2
– spark.storage.memoryFraction 0.2
– 100,000,000 records with vector in 6
dimension (20 partitions)
DISCLAIMERS
Apache Mnemonic is an effort undergoing incubation at The Apache Software Foundation
(ASF), sponsored by Apache Incubator PMC. Incubation is required of all newly accepted
projects until a further review indicates that the infrastructure, communications, and
decision making process have stabilized in a manner consistent with other successful ASF
projects. While incubation status is not necessarily a reflection of the completeness or
stability of the code, it does indicate that the project has yet to be fully endorsed by the
ASF.
While Mnemonic is operating within the time period where the application is processing
their durable data, Mnemonic guarantees the persistency once Mnemonic is closed
gracefully.
PROJECT LINKS
Mnemonic Community: dev@mnemonic.incubator.apache.org
Source Code: https://github.com/apache/incubator-mnemonic
JIRA Tracking: https://issues.apache.org/jira/browse/MNEMONIC
Website: http://mnemonic.incubator.apache.org/
Contact:
yanpingw@apache.org; garyw@apache.org

More Related Content

What's hot (20)

PDF
Powering Interactive Analytics with Alluxio and Presto
Alluxio, Inc.
 
PPTX
Scylla Summit 2022: New AWS Instances Perfect for ScyllaDB
ScyllaDB
 
PPTX
IMC Summit 2016 Breakout - Noah Arliss - The Truth: How to Test Your Distribu...
In-Memory Computing Summit
 
PDF
Роман Новиков "Best Practices for MySQL Performance & Troubleshooting with th...
Fwdays
 
PPTX
Sizing Your Scylla Cluster
ScyllaDB
 
PDF
The Future of Postgres Sharding / Bruce Momjian (PostgreSQL)
Ontico
 
PPTX
RedisConf17 - Redis Labs - Implementing Real-time Machine Learning with Redis-ML
Redis Labs
 
PPTX
Scylla Summit 2022: Scylla 5.0 New Features, Part 1
ScyllaDB
 
PPTX
Scylla Summit 2019 Keynote - Dor Laor - Beyond Cassandra
ScyllaDB
 
PPTX
RedisConf17 - IoT Backend with Redis and Node.js
Redis Labs
 
PPTX
RedisConf17 - Home Depot - Turbo charging existing applications with Redis
Redis Labs
 
PPTX
Aerospike: Maximizing Performance
Aerospike, Inc.
 
PDF
Scylla Summit 2022: Building Zeotap's Privacy Compliant Customer Data Platfor...
ScyllaDB
 
PDF
Introduction to SQream and the IoT environment
Arnon Shimoni
 
PPTX
Scylla Summit 2018: Scylla 3.0 and Beyond
ScyllaDB
 
PDF
Scaling Redis Cluster Deployments for Genome Analysis (featuring LSU) - Terry...
Redis Labs
 
PPTX
Webinar: Building Blocks for the Future of Television
DataStax
 
PDF
Introducing Scylla Open Source 4.0
ScyllaDB
 
PDF
Using Databases and Containers From Development to Deployment
Aerospike, Inc.
 
PDF
Cisco: Cassandra adoption on Cisco UCS & OpenStack
DataStax Academy
 
Powering Interactive Analytics with Alluxio and Presto
Alluxio, Inc.
 
Scylla Summit 2022: New AWS Instances Perfect for ScyllaDB
ScyllaDB
 
IMC Summit 2016 Breakout - Noah Arliss - The Truth: How to Test Your Distribu...
In-Memory Computing Summit
 
Роман Новиков "Best Practices for MySQL Performance & Troubleshooting with th...
Fwdays
 
Sizing Your Scylla Cluster
ScyllaDB
 
The Future of Postgres Sharding / Bruce Momjian (PostgreSQL)
Ontico
 
RedisConf17 - Redis Labs - Implementing Real-time Machine Learning with Redis-ML
Redis Labs
 
Scylla Summit 2022: Scylla 5.0 New Features, Part 1
ScyllaDB
 
Scylla Summit 2019 Keynote - Dor Laor - Beyond Cassandra
ScyllaDB
 
RedisConf17 - IoT Backend with Redis and Node.js
Redis Labs
 
RedisConf17 - Home Depot - Turbo charging existing applications with Redis
Redis Labs
 
Aerospike: Maximizing Performance
Aerospike, Inc.
 
Scylla Summit 2022: Building Zeotap's Privacy Compliant Customer Data Platfor...
ScyllaDB
 
Introduction to SQream and the IoT environment
Arnon Shimoni
 
Scylla Summit 2018: Scylla 3.0 and Beyond
ScyllaDB
 
Scaling Redis Cluster Deployments for Genome Analysis (featuring LSU) - Terry...
Redis Labs
 
Webinar: Building Blocks for the Future of Television
DataStax
 
Introducing Scylla Open Source 4.0
ScyllaDB
 
Using Databases and Containers From Development to Deployment
Aerospike, Inc.
 
Cisco: Cassandra adoption on Cisco UCS & OpenStack
DataStax Academy
 

Viewers also liked (10)

PPTX
IMC Summit 2016 Innovation - Steve Wilkes - Tap Into Your Enterprise – Why Da...
In-Memory Computing Summit
 
PPTX
IMC Summit 2016 Breakout - Gordon Patrick - Developments in Persistent Memory
In-Memory Computing Summit
 
PPTX
IMC Summit 2016 Innovation - Girish Mutreja - Unveiling the X Platform
In-Memory Computing Summit
 
PPTX
IMC Summit 2016 Breakout - Girish Kathalagiri - Decision Making with MLLIB, S...
In-Memory Computing Summit
 
PPTX
IMC Summit 2016 Breakout - Per Minoborg - Work with Multiple Hot Terabytes in...
In-Memory Computing Summit
 
PPTX
IMC Summit 2016 Breakout - Henning Andersen - Using Lock-free and Wait-free I...
In-Memory Computing Summit
 
PDF
IMC Summit 2016 Breakout - Nikita Shamgunov - Propelling IoT Innovation with ...
In-Memory Computing Summit
 
PPTX
IMC Summit 2016 Breakout - Andy Pavlo - What Non-Volatile Memory Means for th...
In-Memory Computing Summit
 
PPTX
IMC Summit 2016 Breakout - Matt Coventon - Test Driving Streaming and CEP on ...
In-Memory Computing Summit
 
PPTX
IMC Summit 2016 Breakout - Roman Shtykh - Apache Ignite as a Data Processing Hub
In-Memory Computing Summit
 
IMC Summit 2016 Innovation - Steve Wilkes - Tap Into Your Enterprise – Why Da...
In-Memory Computing Summit
 
IMC Summit 2016 Breakout - Gordon Patrick - Developments in Persistent Memory
In-Memory Computing Summit
 
IMC Summit 2016 Innovation - Girish Mutreja - Unveiling the X Platform
In-Memory Computing Summit
 
IMC Summit 2016 Breakout - Girish Kathalagiri - Decision Making with MLLIB, S...
In-Memory Computing Summit
 
IMC Summit 2016 Breakout - Per Minoborg - Work with Multiple Hot Terabytes in...
In-Memory Computing Summit
 
IMC Summit 2016 Breakout - Henning Andersen - Using Lock-free and Wait-free I...
In-Memory Computing Summit
 
IMC Summit 2016 Breakout - Nikita Shamgunov - Propelling IoT Innovation with ...
In-Memory Computing Summit
 
IMC Summit 2016 Breakout - Andy Pavlo - What Non-Volatile Memory Means for th...
In-Memory Computing Summit
 
IMC Summit 2016 Breakout - Matt Coventon - Test Driving Streaming and CEP on ...
In-Memory Computing Summit
 
IMC Summit 2016 Breakout - Roman Shtykh - Apache Ignite as a Data Processing Hub
In-Memory Computing Summit
 
Ad

Similar to IMC Summit 2016 Breakout - Yanping Wang - Non-volatile Generic Object Programming Model for In-Memory Computing (Spark) Performance Improvement (20)

PDF
Apache Mnemonic Introduction
Johnu George
 
PDF
Anatomy of in memory processing in Spark
datamantra
 
PDF
A Java Implementer's Guide to Better Apache Spark Performance
Tim Ellison
 
PDF
Deep Dive: Memory Management in Apache Spark
Databricks
 
PPTX
Developing Software for Persistent Memory / Willhalm Thomas (Intel)
Ontico
 
PDF
A Java Implementer's Guide to Boosting Apache Spark Performance by Tim Ellison.
J On The Beach
 
PDF
Five cool ways the JVM can run Apache Spark faster
Tim Ellison
 
PDF
Spark Summit EU talk by Ahsan Javed Awan
Spark Summit
 
PPTX
Spark.pptx to knowledge gaining in wdm days ago
PreethamMCPreethamMC
 
PDF
Boosting spark performance: An Overview of Techniques
Ahsan Javed Awan
 
PDF
Accelerate Your Apache Spark with Intel Optane DC Persistent Memory
Databricks
 
PDF
Memory Management in Apache Spark
Databricks
 
PDF
Introduction to Spark Training
Spark Summit
 
PDF
TeraCache: Efficient Caching Over Fast Storage Devices
Databricks
 
PPTX
Intro to Spark development
Spark Summit
 
PDF
Accelerating Apache Spark Shuffle for Data Analytics on the Cloud with Remote...
Databricks
 
PDF
Performance Optimization Case Study: Shattering Hadoop's Sort Record with Spa...
Databricks
 
PPTX
In Memory Analytics with Apache Spark
Venkata Naga Ravi
 
PDF
In-Memory Computing - The Big Picture
Markus Kett
 
PPTX
Big Data Meets NVM: Accelerating Big Data Processing with Non-Volatile Memory...
DataWorks Summit
 
Apache Mnemonic Introduction
Johnu George
 
Anatomy of in memory processing in Spark
datamantra
 
A Java Implementer's Guide to Better Apache Spark Performance
Tim Ellison
 
Deep Dive: Memory Management in Apache Spark
Databricks
 
Developing Software for Persistent Memory / Willhalm Thomas (Intel)
Ontico
 
A Java Implementer's Guide to Boosting Apache Spark Performance by Tim Ellison.
J On The Beach
 
Five cool ways the JVM can run Apache Spark faster
Tim Ellison
 
Spark Summit EU talk by Ahsan Javed Awan
Spark Summit
 
Spark.pptx to knowledge gaining in wdm days ago
PreethamMCPreethamMC
 
Boosting spark performance: An Overview of Techniques
Ahsan Javed Awan
 
Accelerate Your Apache Spark with Intel Optane DC Persistent Memory
Databricks
 
Memory Management in Apache Spark
Databricks
 
Introduction to Spark Training
Spark Summit
 
TeraCache: Efficient Caching Over Fast Storage Devices
Databricks
 
Intro to Spark development
Spark Summit
 
Accelerating Apache Spark Shuffle for Data Analytics on the Cloud with Remote...
Databricks
 
Performance Optimization Case Study: Shattering Hadoop's Sort Record with Spa...
Databricks
 
In Memory Analytics with Apache Spark
Venkata Naga Ravi
 
In-Memory Computing - The Big Picture
Markus Kett
 
Big Data Meets NVM: Accelerating Big Data Processing with Non-Volatile Memory...
DataWorks Summit
 
Ad

More from In-Memory Computing Summit (14)

PPTX
IMC Summit 2016 Breakout - Steve Wikes - Making IMC Enterprise Grade
In-Memory Computing Summit
 
PPTX
IMC Summit 2016 Breakout - Aleksandar Seovic - The Illusion of Statelessness
In-Memory Computing Summit
 
PPTX
IMC Summit 2016 Breakout - Greg Luck - How to Speed Up Your Application Using...
In-Memory Computing Summit
 
PPTX
IMC Summit 2016 Breakout - Pandurang Naik - Demystifying In-Memory Data Grid,...
In-Memory Computing Summit
 
PPTX
IMC Summit 2016 Breakout - William Bain - Implementing Extensible Data Struct...
In-Memory Computing Summit
 
PPTX
IMC Summit 2016 Keynote - Arthur Sainio - NVDIMM: Changes are Here So What’s ...
In-Memory Computing Summit
 
PPTX
IMC Summit 2016 Keynote - Robert Barr - In Memory Computing for Financial Ser...
In-Memory Computing Summit
 
PPTX
IMC Summit 2016 Breakout - Nikita Ivanov - Shared In-Memory RDDs – Missing Li...
In-Memory Computing Summit
 
PPTX
IMCSummite 2016 Breakout - Nikita Ivanov - Apache Ignite 2.0 Towards a Conver...
In-Memory Computing Summit
 
PPTX
IMC Summit 2016 Keynote - Jason Stamper - In-Memory: The Foundation of the In...
In-Memory Computing Summit
 
PPTX
IMCSummit 2016 Keynote - Benzi Galili - More Memory for In-Memory Easy
In-Memory Computing Summit
 
PPTX
IMCSummit 2016 Keynote - Abe Kleinfeld - The In-Memory Computing Landscape: L...
In-Memory Computing Summit
 
PPTX
Accelerating the Hadoop data stack with Apache Ignite, Spark and Bigtop
In-Memory Computing Summit
 
PDF
IMCSummit 2015 - Day 1 Developer Track - Evolution of non-volatile memory exp...
In-Memory Computing Summit
 
IMC Summit 2016 Breakout - Steve Wikes - Making IMC Enterprise Grade
In-Memory Computing Summit
 
IMC Summit 2016 Breakout - Aleksandar Seovic - The Illusion of Statelessness
In-Memory Computing Summit
 
IMC Summit 2016 Breakout - Greg Luck - How to Speed Up Your Application Using...
In-Memory Computing Summit
 
IMC Summit 2016 Breakout - Pandurang Naik - Demystifying In-Memory Data Grid,...
In-Memory Computing Summit
 
IMC Summit 2016 Breakout - William Bain - Implementing Extensible Data Struct...
In-Memory Computing Summit
 
IMC Summit 2016 Keynote - Arthur Sainio - NVDIMM: Changes are Here So What’s ...
In-Memory Computing Summit
 
IMC Summit 2016 Keynote - Robert Barr - In Memory Computing for Financial Ser...
In-Memory Computing Summit
 
IMC Summit 2016 Breakout - Nikita Ivanov - Shared In-Memory RDDs – Missing Li...
In-Memory Computing Summit
 
IMCSummite 2016 Breakout - Nikita Ivanov - Apache Ignite 2.0 Towards a Conver...
In-Memory Computing Summit
 
IMC Summit 2016 Keynote - Jason Stamper - In-Memory: The Foundation of the In...
In-Memory Computing Summit
 
IMCSummit 2016 Keynote - Benzi Galili - More Memory for In-Memory Easy
In-Memory Computing Summit
 
IMCSummit 2016 Keynote - Abe Kleinfeld - The In-Memory Computing Landscape: L...
In-Memory Computing Summit
 
Accelerating the Hadoop data stack with Apache Ignite, Spark and Bigtop
In-Memory Computing Summit
 
IMCSummit 2015 - Day 1 Developer Track - Evolution of non-volatile memory exp...
In-Memory Computing Summit
 

Recently uploaded (20)

PDF
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
PDF
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
PDF
Staying Human in a Machine- Accelerated World
Catalin Jora
 
PPTX
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
PDF
Automating Feature Enrichment and Station Creation in Natural Gas Utility Net...
Safe Software
 
PPTX
Mastering ODC + Okta Configuration - Chennai OSUG
HathiMaryA
 
PDF
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
DOCX
Python coding for beginners !! Start now!#
Rajni Bhardwaj Grover
 
PDF
“NPU IP Hardware Shaped Through Software and Use-case Analysis,” a Presentati...
Edge AI and Vision Alliance
 
PPTX
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
PPTX
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
shyamraj55
 
PDF
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
PPTX
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
PDF
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PPTX
Seamless Tech Experiences Showcasing Cross-Platform App Design.pptx
presentifyai
 
PDF
What’s my job again? Slides from Mark Simos talk at 2025 Tampa BSides
Mark Simos
 
PDF
“Voice Interfaces on a Budget: Building Real-time Speech Recognition on Low-c...
Edge AI and Vision Alliance
 
PPTX
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
PDF
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
PPTX
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
Staying Human in a Machine- Accelerated World
Catalin Jora
 
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
Automating Feature Enrichment and Station Creation in Natural Gas Utility Net...
Safe Software
 
Mastering ODC + Okta Configuration - Chennai OSUG
HathiMaryA
 
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
Python coding for beginners !! Start now!#
Rajni Bhardwaj Grover
 
“NPU IP Hardware Shaped Through Software and Use-case Analysis,” a Presentati...
Edge AI and Vision Alliance
 
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
shyamraj55
 
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
Seamless Tech Experiences Showcasing Cross-Platform App Design.pptx
presentifyai
 
What’s my job again? Slides from Mark Simos talk at 2025 Tampa BSides
Mark Simos
 
“Voice Interfaces on a Budget: Building Real-time Speech Recognition on Low-c...
Edge AI and Vision Alliance
 
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 

IMC Summit 2016 Breakout - Yanping Wang - Non-volatile Generic Object Programming Model for In-Memory Computing (Spark) Performance Improvement

  • 1. INTRODUCING A NON-VOLATILE GENERIC OBJECT PROGRAMMING MODEL FOR IN-MEMORY COMPUTING (SPARK) PERFORMANCE IMPROVEMENT YANPING WANG APACHE MNEMONIC (INCUBATING) PROJECT LEADER [email protected]
  • 2. STORAGE MEDIA EVOLUTION IS CHANGING FUTURE SW PROGRAMING
  • 3. STORAGE MEDIA EVOLUTION  Storage Media Evolution: NAND and 3D XPoint are filling the Speed and Capacity gap between DRAM and Hard Disk Drives  Software is facing the challenge on how to use them
  • 4. STORAGE MEDIA EVOLUTION IS CHANGING FUTURE SW PROGRAMING
  • 5. FROM IN-MEMORY TO IN-PLACE  Moving from In-Memory Computing to In-Place Computing  Mnemonic is a pioneering project to extend in-memory computing to in-place computing using next generation NVM storage media. (Picture was taken from Ken Gibson’s Storage Industry Summit January, 20, 2016)
  • 6. A NON-VOLATILE PROGRAMMING MODEL FOR JAVA APPLICATION DEVELOPERS
  • 7. WHY JAVA? • There are 300+ open source initiatives at the ASF. 221 of them are Java based, accounts for 59.9%. • Top Level Big Data Projects are Java based projects, include Hadoop, CloudStack, Spark, Cassandra, Hive, HBase, Flink, Solr….. • Java related optimization has significantly contributed to Big Data applications’ performance improvement.
  • 8. TRADITIONAL JAVA BASED BIG DATA FRAMEWORKS AND APPLICATIONS
  • 9. OUR PROPOSAL: OFF-HEAP, LEAVE DATA IN-PLACE
  • 10. NON-VOLATILE JAVA OBJECT MODEL • Provides Java programmers a mechanism to define objects and structures as Mnemonic-managed objects and structures. • Objects identified as @DurableEntity store their durable fields in volatile/non- volatile memory space. • @DurableGetter and @DurableSetter are used to access those fields. • Handlers are used to refer their connected durable object. • https://docs.oracle.com/javase/tutorial /java/annotations/basics.html
  • 11. AN EXAMPLE OF NON-VOLATILE LINKED LIST (LAZY LOADING)
  • 13. APACHE MNEMONIC STRUCTURE • Performance oriented architecture • Unified platform enabling Framework • Unique non-volatile object model • Flexible & extensible focal point for optimization
  • 14. MNEMONIC SEARCH EXAMPLE • Traditional search: SerDes, caching, pack/unpack, burst temp objects creation and destruction cost can be as high as 70-80% • Mnemonic Search: in- place creation & update, no SerDes, load on demand, no need to normalize
  • 15. MNEMONIC PROJECT POSITIONING • Apache Mnemonic (Incubating) is a Java based non-volatile memory library (API) for in-place structured data processing and computing • Addresses Big Data performance issues • High cost of Serialization/De-serialization • Frequent unpredicted long Garbage Collection pauses • Burst temporary object creation/destruction • Frequent high cost JNI call with stack marshalling • System paging and kernel structure updating due to massive data processing
  • 16. USE CASE EXAMPLE: SPARK + MNEMONIC =IN-PLACE MACHINE LEARNING COMPUTING
  • 17. NON-VOLATILE RDD CODE FOR SPARK • ~600 line of Non-Volatile RDD code is added into Spark, to alter data flow from Spark RDD via JVM heap to Mnemonic. • Spill RDDs to off-heap and disk can be avoid. • RDD data cache and local checkpoints can also be avoided when using Nonvolatile or Durable objects.
  • 18. INTERNAL STRUCTURED DATA REPRESENTATION  Spark experiment uses: 2D Linked List data structure to store data in persistent memory and storage.  N nodes: represent the first level of linked list.  V nodes: represent the values of first level of linked list that still is a linked list.  Only N2 and V1 (methods & volatile fields) are instantiated on heap.
  • 20. SPARK MLLIB KMEANS PERFORMANCE IMPROVEMENT • SPARK ML Kmeans implements one of the most popular clustering algorithms • Exp1: spark.storage.memoryFraction 0.6 • Exp2: spark.storage.memoryFraction 0.2
  • 21. CONFIGURATION FOR PERFORMANCE MEASUREMENT  Platform Software Configuration  OS: CentOS 7  JVM: JDK8 update 60  ParallelOldGC is used for Spark ML throughput workload Kmeans  Spark1.5.0  Platform Hardware  Haswell EP (72 cores, E5-2699 v3 @ 2.3GHz)  256GB DDR4-2133 on-board Memory  Storage media: SATA SSD  Device Model: INTEL SSDSC2BB016T4  Serial Number: BTWD442601311P6HGN  User Capacity: 1.60 TB  SATA Version is: SATA 3.0, 6.0 Gb/s  Spark Kmeans Experiments Setting: – System memory is reduced to 128G via static dummy ramfile occupancy – 20 executors with 4 GB JVM heap, 3 cores – Both of datasets are stored on SSD – Experiment 1 – spark.storage.memoryFraction 0.6 – 100,000,000 records with vector in 12 dimension (20 partitions) – Experiment 2 – spark.storage.memoryFraction 0.2 – 100,000,000 records with vector in 6 dimension (20 partitions)
  • 22. DISCLAIMERS Apache Mnemonic is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by Apache Incubator PMC. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF. While Mnemonic is operating within the time period where the application is processing their durable data, Mnemonic guarantees the persistency once Mnemonic is closed gracefully.
  • 23. PROJECT LINKS Mnemonic Community: [email protected] Source Code: https://github.com/apache/incubator-mnemonic JIRA Tracking: https://issues.apache.org/jira/browse/MNEMONIC Website: http://mnemonic.incubator.apache.org/ Contact: [email protected]; [email protected]