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
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Jennifer Konikowski
November 23, 2016
Technology
1.3k
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Caches
A quick overview of how caches work, given at PyLadies Boston.
Jennifer Konikowski
November 23, 2016
More Decks by Jennifer Konikowski
See All by Jennifer Konikowski
Building a Great Tech Resume
jmkoni
0
900
Building A Community For All People
jmkoni
0
26
Scala: Welcome To The Wonderful World Of Functional Programming
jmkoni
0
13k
Building a Community For All People
jmkoni
0
1.5k
Building A Community For Beginners
jmkoni
0
5.5k
SQL! Fun, Delight, Only A Mild Amount Of Terror
jmkoni
0
4.5k
Parsing Job Listings
jmkoni
0
1.4k
User Stories: What, Why, And How
jmkoni
1
72
Writing User Stories For Engineers
jmkoni
0
1.4k
Other Decks in Technology
See All in Technology
Terraform共通モジュールをチーム横断で“変えられる”運用へ ― リリースと適用の分離
kekke_n
1
2.9k
実装だけじゃない! CCA-F取得エンジニアが教えるClaude Code開発プロセス活用術
diggymo
2
660
Empower GenAI with Agile - あなたのアジャイルが生成AIのバフになる仕組み
hageyahhoo
1
180
インフラと開発の垣根を超えていき!〜元AWSインフラエンジニアがAWS開発で奮闘している話〜
hatahata021
1
170
DatabricksにおけるMCPソリューション
taka_aki
1
240
完全自律ロボットを作りたくて、先に開発を自律させた話(ROS Japan UG #63 LT)
rryz09
0
500
なぜ私たちのSREプラクティスはなかなか機能しないのか 〜システムより先に組織を見る〜 / Why our SRE practices aren't really working
vtryo
3
3.6k
AICoEでAIネイティブ組織への進化
yukiogawa
0
160
SRE本の知られざる名シーン / The Hidden Gems of Google SRE Book
nari_ex
1
380
地域 SRE コミュニティ最前線 / SRE NEXT 2026 Discussion Night Track C
muziyoshiz
0
210
LLMやAIエージェントをソフトウェアに組み込むプラクティス
shibuiwilliam
1
360
Oracle Base Database Service 技術詳細
oracle4engineer
PRO
15
110k
Featured
See All Featured
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
220
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
890
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
1
1.5k
Building a A Zero-Code AI SEO Workflow
portentint
PRO
0
630
Primal Persuasion: How to Engage the Brain for Learning That Lasts
tmiket
0
390
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
870
Docker and Python
trallard
47
3.9k
Facilitating Awesome Meetings
lara
57
7k
Leveraging LLMs for student feedback in introductory data science courses - posit::conf(2025)
minecr
1
310
Building AI with AI
inesmontani
PRO
1
1.1k
Become a Pro
speakerdeck
PRO
31
6k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
360
30k
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!