Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Caches
Search
Jennifer Konikowski
November 23, 2016
Technology
0
1.2k
Caches
A quick overview of how caches work, given at PyLadies Boston.
Jennifer Konikowski
November 23, 2016
Tweet
Share
More Decks by Jennifer Konikowski
See All by Jennifer Konikowski
Building a Great Tech Resume
jmkoni
0
690
Building A Community For All People
jmkoni
0
26
Scala: Welcome To The Wonderful World Of Functional Programming
jmkoni
0
12k
Building a Community For All People
jmkoni
0
1.2k
Building A Community For Beginners
jmkoni
0
5k
SQL! Fun, Delight, Only A Mild Amount Of Terror
jmkoni
0
3.9k
Parsing Job Listings
jmkoni
0
1.2k
User Stories: What, Why, And How
jmkoni
1
55
Writing User Stories For Engineers
jmkoni
0
1.3k
Other Decks in Technology
See All in Technology
visionOSでの空間表現実装とImmersive Video表示について / ai-immersive-visionos
cyberagentdevelopers
PRO
1
100
CI/CDやテスト自動化の開発プロジェクトへの適用
megascus
3
720
物価高なラスベガスでの過ごし方
zakky
0
260
Apple/Google/Amazonの決済システムの違いを踏まえた定期購読課金システムの構築 / abema-billing-system
cyberagentdevelopers
PRO
1
210
【LT】ソフトウェア産業は進化しているのか? -Javaの想い出とともに- #jjug_ccc
takabow
0
160
カメラを用いた店内計測におけるオプトインの仕組みの実現 / ai-optin-camera
cyberagentdevelopers
PRO
1
120
Aurora_BlueGreenDeploymentsやってみた
tsukasa_ishimaru
1
120
AWS CDKでデータリストアの運用、どのように設計する?~Aurora・EFSの実践事例を紹介~/aws-cdk-data-restore-aurora-efs
mhrtech
3
470
分布で見る効果検証入門 / ai-distributional-effect
cyberagentdevelopers
PRO
4
670
WINTICKETアプリで実現した高可用性と高速リリースを支えるエコシステム / winticket-eco-system
cyberagentdevelopers
PRO
1
190
いまならこう作りたい AWSコンテナ[本格]入門ハンズオン 〜2024年版 ハンズオンの構想〜
horsewin
7
1.9k
30万人が利用するチャットをFirebase Realtime DatabaseからActionCableへ移行する方法
ryosk7
3
310
Featured
See All Featured
Building Adaptive Systems
keathley
38
2.2k
Stop Working from a Prison Cell
hatefulcrawdad
267
20k
Why You Should Never Use an ORM
jnunemaker
PRO
53
9k
5 minutes of I Can Smell Your CMS
philhawksworth
202
19k
Code Review Best Practice
trishagee
64
17k
Intergalactic Javascript Robots from Outer Space
tanoku
268
27k
Rails Girls Zürich Keynote
gr2m
93
13k
The Invisible Side of Design
smashingmag
297
50k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
159
15k
Why Our Code Smells
bkeepers
PRO
334
57k
Ruby is Unlike a Banana
tanoku
96
11k
Docker and Python
trallard
40
3.1k
Transcript
CACHES the reason your computer is so darn fast
BASIC IDEA
BASIC IDEA Processor Bus Main Memory
BASIC IDEA Processor Bus* Main Memory *communication system that transfers
data between components inside a computer*
BASIC IDEA Processor Cache Bus Main Memory
BASIC IDEA Processor Cache Bus Main Memory
BASIC IDEA Processor Cache Bus Main Memory
BASIC IDEA Processor Cache Bus Main Memory
BASIC IDEA Processor Cache Bus Main Memory
HOW DO THEY WORK?
DIRECT MAPPED Slot Valid Block Blocks Copied 0 0 1
0 2 0 3 0 4 0 0 5 0 6 0 7 0 8 0 Main Mem Addresses: 438 439 534 473 434 535
DIRECT MAPPED Tag Slot Block Offset 4 3 8 4
3 9 5 3 4 4 7 3 4 3 4 5 3 5 Main Mem Addresses: 438 439 534 473 434 535 First, we split the addresses:
DIRECT MAPPED Slot Valid Block Blocks Copied 0 0 1
0 2 0 3 1 4 430-439 4 0 0 5 0 6 0 7 0 8 0 Main Mem Addresses: 438 439 534 473 434 535 miss!
DIRECT MAPPED Slot Valid Block Blocks Copied 0 0 1
0 2 0 3 1 4 430-439 4 0 0 5 0 6 0 7 0 8 0 Main Mem Addresses: 438 439 534 473 434 535 miss! hit!
DIRECT MAPPED Slot Valid Block Blocks Copied 0 0 1
0 2 0 3 1 5 530-539 4 0 0 5 0 6 0 7 0 8 0 Main Mem Addresses: 438 439 534 473 434 535 miss! hit! miss!
DIRECT MAPPED Slot Valid Block Blocks Copied 0 0 1
0 2 0 3 1 5 530-539 4 0 0 5 0 6 0 7 1 4 470-479 8 0 Main Mem Addresses: 438 439 534 473 434 535 miss! hit! miss! miss!
DIRECT MAPPED Slot Valid Block Blocks Copied 0 0 1
0 2 0 3 1 4 430-439 4 0 0 5 0 6 0 7 1 4 470-479 8 0 Main Mem Addresses: 438 439 534 473 434 535 miss! hit! miss! miss! miss!
DIRECT MAPPED Slot Valid Block Blocks Copied 0 0 1
0 2 0 3 1 5 530-539 4 0 0 5 0 6 0 7 1 4 470-479 8 0 Main Mem Addresses: 438 439 534 473 434 535 miss! hit! miss! miss! miss! miss!
SET ASSOCIATIVE Slot Valid Block Blocks Copied 0 0 0
0 1 0 1 0 2 0 2 0 3 0 3 0 4 0 4 0 Main Mem Addresses: 438 439 534 403 434 535
SET ASSOCIATIVE Slot Valid Block Blocks Copied 0 0 0
0 1 0 1 0 2 0 2 0 3 1 4 430-439 3 0 4 0 4 0 Main Mem Addresses: 438 439 534 403 434 535 miss!
SET ASSOCIATIVE Slot Valid Block Blocks Copied 0 0 0
0 1 0 1 0 2 0 2 0 3 1 4 430-439 3 0 4 0 4 0 Main Mem Addresses: 438 439 534 403 434 535 miss! hit!
SET ASSOCIATIVE Slot Valid Block Blocks Copied 0 0 0
0 1 0 1 0 2 0 2 0 3 1 4 430-439 3 1 5 530-539 4 0 4 0 Main Mem Addresses: 438 439 534 403 434 535 miss! hit! miss!
SET ASSOCIATIVE Slot Valid Block Blocks Copied 0 0 4
400-409 0 0 1 0 1 0 2 0 2 0 3 1 4 430-439 3 1 5 530-539 4 0 4 0 Main Mem Addresses: 438 439 534 403 434 535 miss! hit! miss! miss!
SET ASSOCIATIVE Slot Valid Block Blocks Copied 0 0 4
400-409 0 0 1 0 1 0 2 0 2 0 3 1 4 430-439 3 1 5 530-539 4 0 4 0 Main Mem Addresses: 438 439 534 403 434 535 miss! hit! miss! miss! hit!
SET ASSOCIATIVE Slot Valid Block Blocks Copied 0 0 4
400-409 0 0 1 0 1 0 2 0 2 0 3 1 4 430-439 3 1 5 530-539 4 0 4 0 Main Mem Addresses: 438 439 534 403 434 535 miss! hit! miss! miss! hit! hit!