SlideShare una empresa de Scribd logo
1 de 17
Rust at Ather
Building smart and efficient EVs with Rust.
Because every ounce of memory matters
Need for Speed
一 Data generated by each scooter
per day ~ 1GB
一 Close to a half million trips taken
by the riders synced on cloud in
under 15 minutes
一 Number of sensors working
unison for creating intelligence -
50+
一 Trip planner, Smart Eco,
Theft-tow detection, Range
prediction, IMU data processing
and more
Talking about data at scale
VEHICLES ON
ROAD
70 k+
LONGEST RIDE
139 km
HOURS SPENT
RIDING
(PER DAY)
105000+
TRIPS
(PER DAY)
450,000
DISTANCE COVERED
(PER DAY)
1,500,000+
km
200+ Million
km ON ROAD
一 Latency in processing data on cloud v/s scooter
一 Limited hardware specs in existing models
一 2GB RAM
一 Quad Core 1.3GHz processor
一 Increased processing cost on cloud
一 Multiple microservices in the constrained hardware environment to control
the peripherals
一 Need for reducing the cost of hardware for overall reduction in the
Bill-of-Materials
一 Need for portability across processors and controllers for a variety of
applications
Where we hit a snag
Why we needed a change in tech stack
Problems we are after
一 Utilizing memory and CPU
efficiently on edge devices.
一 Add more intelligence on edge.
一 Processing data real time and
sending to cloud with minimal
latency
一 A framework that offers complete
memory security with guaranteed
performance.
Why Rust
一 Memory safety at compile time with
very little need for runtime
additions.
一 Lowers TAT of feature roll-out.
一 Good community with a lot of crates
readily available.
一 LLVM compiler infrastructure which
provides same optimizations as that
of C++.
一 Solves for microcontrollers from
memory management at compile
time.
一 Easy cross-compilation
Super secret Architecture Diagram
POC
In use
- Collects real time data generated by different peripherals.
- Crunch crunch
- de-serialise
- process(no complex operations)
- batch them in-memory
- serialise the data
- publish to cloud.
- Maintains a continuous MQTT connection to the cloud.
- We also use C code within rust for HSM related encryption.
Rust on our scooter
- ML packages available in Rust makes matrix & linear algebra computation
easier
- Performance with safety layer which is robust for embedded use cases
- More focus on model building than the reliability of the code
- Allows easier consumption of C-based algo (experimental)
Intelligence with Rust (In evaluation)
What do the tests say?
Some numbers
Language CPU Memory Execution(s)
Rust 70% 0.6mb 2.43
Go 78% 4.2mb 3.82
Python 100% 8mb 190.72
Test Setup
- RAM: 2GB
- Alg : Multiplication of two 9*9 matrices (because this closely relates to
our algs)
- Processor: Quad Core, single threaded, ARM
Some more numbers
Language CPU Memory
Rust 25% 0.4mb
Go 30% 2mb
Test Setup
- RAM: 2GB
- Use Case: ZMQ broker with 2000 messages/sec
- Processor: Quad Core, single threaded, ARM
Why does it all matter
- Our Rust application on the vehicle consumes about 3mb - 15mb of RAM.
- The application processes upto 2000 records / sec each ~1kb in size.
- executes 50% faster than Go.
- The memory consumed by Rust is at-least 40-50% lesser.
Future Scope
- Migrating more data processing applications on edge.
- Batch processing jobs to aid in data transformations at lower cost and infra.
- Real time processing of Big data on cloud using Rust
- Explore avenue for data conversion for data-lake - json to parquet etc.
- Evaluating scope of identifying least resource chip for cost saving while
moving applications to rust
- KataOS (for microcontrollers i.e. very less memory) to be explored for
memory efficient use-cases
Questions?
Rust at Ather

Más contenido relacionado

Similar a Rust at Ather

Stream Processing
Stream ProcessingStream Processing
Stream Processingarnamoy10
 
Engineering The New IP Transport
Engineering The New IP TransportEngineering The New IP Transport
Engineering The New IP TransportMyNOG
 
IBM Power Systems at FIS InFocus 2019
IBM Power Systems at FIS InFocus 2019IBM Power Systems at FIS InFocus 2019
IBM Power Systems at FIS InFocus 2019Paula Koziol
 
5G and V2X Automotive Slicing
5G and V2X Automotive Slicing5G and V2X Automotive Slicing
5G and V2X Automotive SlicingMarie-Paule Odini
 
Embedded systems-unit-1
Embedded systems-unit-1Embedded systems-unit-1
Embedded systems-unit-1Prabhu Mali
 
Numascale Product IBM
Numascale Product IBMNumascale Product IBM
Numascale Product IBMIBM Danmark
 
David Soldani, Huawei
David Soldani, HuaweiDavid Soldani, Huawei
David Soldani, HuaweiHilary Ip
 
ScaleConf 2015 - Tim Park - From Screens to Context (Connected Car)
ScaleConf 2015 - Tim Park - From Screens to Context (Connected Car)ScaleConf 2015 - Tim Park - From Screens to Context (Connected Car)
ScaleConf 2015 - Tim Park - From Screens to Context (Connected Car)Tim Park
 
RDMA programming design and case studies – for better performance distributed...
RDMA programming design and case studies – for better performance distributed...RDMA programming design and case studies – for better performance distributed...
RDMA programming design and case studies – for better performance distributed...NTT Software Innovation Center
 
2009-01-28 DOI NBC Red Hat on System z Performance Considerations
2009-01-28 DOI NBC Red Hat on System z Performance Considerations2009-01-28 DOI NBC Red Hat on System z Performance Considerations
2009-01-28 DOI NBC Red Hat on System z Performance ConsiderationsShawn Wells
 
Introduction to IBM Shared Memory Communications Version 2 (SMCv2) and SMC-Dv2
Introduction to IBM Shared Memory Communications Version 2 (SMCv2) and SMC-Dv2Introduction to IBM Shared Memory Communications Version 2 (SMCv2) and SMC-Dv2
Introduction to IBM Shared Memory Communications Version 2 (SMCv2) and SMC-Dv2zOSCommserver
 
142 - Enabling an Immersive Mobile Internet Experience with the ARM Cortex-A8...
142 - Enabling an Immersive Mobile Internet Experience with the ARM Cortex-A8...142 - Enabling an Immersive Mobile Internet Experience with the ARM Cortex-A8...
142 - Enabling an Immersive Mobile Internet Experience with the ARM Cortex-A8...Brian Carlson
 
Industry’s performance leading ultra low-power dsp solution
Industry’s performance leading ultra low-power dsp solutionIndustry’s performance leading ultra low-power dsp solution
Industry’s performance leading ultra low-power dsp solutionAnalog Devices, Inc.
 

Similar a Rust at Ather (20)

Stream Processing
Stream ProcessingStream Processing
Stream Processing
 
Engineering The New IP Transport
Engineering The New IP TransportEngineering The New IP Transport
Engineering The New IP Transport
 
IBM Power Systems at FIS InFocus 2019
IBM Power Systems at FIS InFocus 2019IBM Power Systems at FIS InFocus 2019
IBM Power Systems at FIS InFocus 2019
 
100 M pps on PC.
100 M pps on PC.100 M pps on PC.
100 M pps on PC.
 
5G and V2X Automotive Slicing
5G and V2X Automotive Slicing5G and V2X Automotive Slicing
5G and V2X Automotive Slicing
 
Embedded systems-unit-1
Embedded systems-unit-1Embedded systems-unit-1
Embedded systems-unit-1
 
Robotics technical Presentation
Robotics technical PresentationRobotics technical Presentation
Robotics technical Presentation
 
Numascale Product IBM
Numascale Product IBMNumascale Product IBM
Numascale Product IBM
 
David Soldani, Huawei
David Soldani, HuaweiDavid Soldani, Huawei
David Soldani, Huawei
 
ScaleConf 2015 - Tim Park - From Screens to Context (Connected Car)
ScaleConf 2015 - Tim Park - From Screens to Context (Connected Car)ScaleConf 2015 - Tim Park - From Screens to Context (Connected Car)
ScaleConf 2015 - Tim Park - From Screens to Context (Connected Car)
 
RDMA programming design and case studies – for better performance distributed...
RDMA programming design and case studies – for better performance distributed...RDMA programming design and case studies – for better performance distributed...
RDMA programming design and case studies – for better performance distributed...
 
C010221015
C010221015C010221015
C010221015
 
2009-01-28 DOI NBC Red Hat on System z Performance Considerations
2009-01-28 DOI NBC Red Hat on System z Performance Considerations2009-01-28 DOI NBC Red Hat on System z Performance Considerations
2009-01-28 DOI NBC Red Hat on System z Performance Considerations
 
Introduction to IBM Shared Memory Communications Version 2 (SMCv2) and SMC-Dv2
Introduction to IBM Shared Memory Communications Version 2 (SMCv2) and SMC-Dv2Introduction to IBM Shared Memory Communications Version 2 (SMCv2) and SMC-Dv2
Introduction to IBM Shared Memory Communications Version 2 (SMCv2) and SMC-Dv2
 
Ip so c-30sept2010
Ip so c-30sept2010Ip so c-30sept2010
Ip so c-30sept2010
 
142 - Enabling an Immersive Mobile Internet Experience with the ARM Cortex-A8...
142 - Enabling an Immersive Mobile Internet Experience with the ARM Cortex-A8...142 - Enabling an Immersive Mobile Internet Experience with the ARM Cortex-A8...
142 - Enabling an Immersive Mobile Internet Experience with the ARM Cortex-A8...
 
Industry’s performance leading ultra low-power dsp solution
Industry’s performance leading ultra low-power dsp solutionIndustry’s performance leading ultra low-power dsp solution
Industry’s performance leading ultra low-power dsp solution
 
SNAP MACHINE LEARNING
SNAP MACHINE LEARNINGSNAP MACHINE LEARNING
SNAP MACHINE LEARNING
 
OMAP
OMAPOMAP
OMAP
 
CTIA 2010 Corporate Overview
CTIA 2010 Corporate OverviewCTIA 2010 Corporate Overview
CTIA 2010 Corporate Overview
 

Último

Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demoHarshalMandlekar2
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxLoriGlavin3
 
Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rick Flair
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfLoriGlavin3
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfMounikaPolabathina
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersRaghuram Pandurangan
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxLoriGlavin3
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsPixlogix Infotech
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxLoriGlavin3
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningLars Bell
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxLoriGlavin3
 

Último (20)

Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demo
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptx
 
Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdf
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdf
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information Developers
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
 

Rust at Ather

  • 1. Rust at Ather Building smart and efficient EVs with Rust. Because every ounce of memory matters
  • 2. Need for Speed 一 Data generated by each scooter per day ~ 1GB 一 Close to a half million trips taken by the riders synced on cloud in under 15 minutes 一 Number of sensors working unison for creating intelligence - 50+ 一 Trip planner, Smart Eco, Theft-tow detection, Range prediction, IMU data processing and more
  • 3. Talking about data at scale VEHICLES ON ROAD 70 k+ LONGEST RIDE 139 km HOURS SPENT RIDING (PER DAY) 105000+ TRIPS (PER DAY) 450,000 DISTANCE COVERED (PER DAY) 1,500,000+ km 200+ Million km ON ROAD
  • 4. 一 Latency in processing data on cloud v/s scooter 一 Limited hardware specs in existing models 一 2GB RAM 一 Quad Core 1.3GHz processor 一 Increased processing cost on cloud 一 Multiple microservices in the constrained hardware environment to control the peripherals 一 Need for reducing the cost of hardware for overall reduction in the Bill-of-Materials 一 Need for portability across processors and controllers for a variety of applications Where we hit a snag
  • 5. Why we needed a change in tech stack
  • 6. Problems we are after 一 Utilizing memory and CPU efficiently on edge devices. 一 Add more intelligence on edge. 一 Processing data real time and sending to cloud with minimal latency 一 A framework that offers complete memory security with guaranteed performance.
  • 7. Why Rust 一 Memory safety at compile time with very little need for runtime additions. 一 Lowers TAT of feature roll-out. 一 Good community with a lot of crates readily available. 一 LLVM compiler infrastructure which provides same optimizations as that of C++. 一 Solves for microcontrollers from memory management at compile time. 一 Easy cross-compilation
  • 8. Super secret Architecture Diagram POC In use
  • 9. - Collects real time data generated by different peripherals. - Crunch crunch - de-serialise - process(no complex operations) - batch them in-memory - serialise the data - publish to cloud. - Maintains a continuous MQTT connection to the cloud. - We also use C code within rust for HSM related encryption. Rust on our scooter
  • 10. - ML packages available in Rust makes matrix & linear algebra computation easier - Performance with safety layer which is robust for embedded use cases - More focus on model building than the reliability of the code - Allows easier consumption of C-based algo (experimental) Intelligence with Rust (In evaluation)
  • 11. What do the tests say?
  • 12. Some numbers Language CPU Memory Execution(s) Rust 70% 0.6mb 2.43 Go 78% 4.2mb 3.82 Python 100% 8mb 190.72 Test Setup - RAM: 2GB - Alg : Multiplication of two 9*9 matrices (because this closely relates to our algs) - Processor: Quad Core, single threaded, ARM
  • 13. Some more numbers Language CPU Memory Rust 25% 0.4mb Go 30% 2mb Test Setup - RAM: 2GB - Use Case: ZMQ broker with 2000 messages/sec - Processor: Quad Core, single threaded, ARM
  • 14. Why does it all matter - Our Rust application on the vehicle consumes about 3mb - 15mb of RAM. - The application processes upto 2000 records / sec each ~1kb in size. - executes 50% faster than Go. - The memory consumed by Rust is at-least 40-50% lesser.
  • 15. Future Scope - Migrating more data processing applications on edge. - Batch processing jobs to aid in data transformations at lower cost and infra. - Real time processing of Big data on cloud using Rust - Explore avenue for data conversion for data-lake - json to parquet etc. - Evaluating scope of identifying least resource chip for cost saving while moving applications to rust - KataOS (for microcontrollers i.e. very less memory) to be explored for memory efficient use-cases