Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
ページキャッシュの性能への影響
Search
Satoru Takeuchi
PRO
December 21, 2020
Technology
190
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
ページキャッシュの性能への影響
以下動画のテキストです。
https://youtu.be/Nx1AnkrUdoE
Satoru Takeuchi
PRO
December 21, 2020
More Decks by Satoru Takeuchi
See All by Satoru Takeuchi
119-多機能ファイルシステムBtrfs_のコピー.pdf
sat
PRO
1
79
Linuxカーネルの インタフェースは変わりうる?
sat
PRO
1
110
あなたの知らないバージョン命名規則
sat
PRO
3
920
Rook: Intro and Deep Dive with Ceph
sat
PRO
1
74
Machine Check Exception
sat
PRO
2
71
バイナリダンプの模様を読む
sat
PRO
0
110
cpコマンドはディスク上でデータを コピーしないことがある
sat
PRO
3
110
114-ファイルのshallow_copy.pdf
sat
PRO
2
63
113-Btrfsのスナップショット.pdf
sat
PRO
0
47
Other Decks in Technology
See All in Technology
Gemini Intelligence 入門 ― AppFunctions と Gemini Nano
takuroabe
0
290
コンテナ運用におけるネットワーク・コンテナコストの削減方法/How to Reduce Network and Container Costs in Container Operations
masakiokuda
2
300
USB PDを使ってスマホを労わりたい
raspython3
0
180
ソフトウェア ファクトリー - 再現性のあるソフトウェアの工場づくり / Software factory
iktakahiro
6
5.1k
PagerDuty Tech Hub-鳴らすけれど、人は動かない
ezaki
0
180
Tofu-Controller lightning talk @ Containerday 2026
gionn
0
120
価値について
gree_tech
PRO
0
100
Claude の新機能を、 出た日に触って社内に届けるまで
rfdnxbro
1
190
Optunaの最新リリースv5.0について
pfn
PRO
0
120
Local CI × GitHub Actions
gogutan
3
230
Refining Active Record
shugo
0
160
AIにシークレットを見せない、WSL2で安全な開発環境
yazm
0
310
Featured
See All Featured
How to Get Subject Matter Experts Bought In and Actively Contributing to SEO & PR Initiatives.
livdayseo
0
220
AI: The stuff that nobody shows you
jnunemaker
PRO
10
1.2k
Tell your own story through comics
letsgokoyo
1
1.1k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
9
1.6k
Automating Front-end Workflow
addyosmani
1369
210k
How to Grow Your eCommerce with AI & Automation
katarinadahlin
PRO
2
330
Measuring Dark Social's Impact On Conversion and Attribution
stephenakadiri
2
310
Making Projects Easy
brettharned
120
6.8k
The State of eCommerce SEO: How to Win in Today's Products SERPs - #SEOweek
aleyda
2
12k
Fireside Chat
paigeccino
43
4.1k
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
520
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.9k
Transcript
ページキャッシュの 性能への影響 Dec 21, 2020 Satoru Takeuchi Twitter: satoru_takeuchi, EnSatoru
1
ページキャッシュおさらい • ストレージデバイスへのアクセス速度はメモリアクセス速度より遅い • その速度差を埋めるのがページキャッシュ • ストレージデバイスのデータをメモリ上にキャッシュ 2
実験 • ページキャッシュの有無による書き込み速度の変化を測定 • 手順 1. ページキャッシュを使って 1GBのファイルを作る速度 (スループット)を計測 ▪
dd if=/dev/zero of=test bs=1M count=1K 2. ファイルを消す ▪ rm test 3. ページキャッシュに加えてディスクにも書き出すモードで 1GBのファイルを作る速度を計測 ▪ dd if=/dev/zero of=test bs=1M count=1K oflag=sync ▪ syncは意図的にページキャッシュだけではなくディスクにも書き込むフラグ • 注意 ◦ 物理マシン上でやる。仮想マシン上では結果が変わることがある 3
結果 • 1回目の速度 > 2回目の速度 4 一回目 二回目 メモリ(速い) ディスク(遅い)
メモリ(速い) ディスク(遅い) 1) 書く 1) 書く 2) 書く
実験 • ページキャッシュの有無による読み出し速度の変化を測定 • 手順 1. ファイルを読み出して速度を計測 ▪ dd if=test
of=/dev/null bs=1M 2. システムのページキャッシュを削除 ▪ root権限でecho 3 >/proc/sys/vm/drop_caches 3. もう一度ファイルを読み出して速度を計測 ▪ dd if=test of=/dev/null bs=1M • 注意 ◦ 物理マシン上でやる。仮想マシン上では結果が変わることがある 5
結果 • 1回目の速度 > 2回目の速度 6 一回目 二回目 メモリ(速い) ディスク(遅い)
メモリ(速い) ディスク(遅い) 1) 読む 1) 読む 2) 読む
まとめ • ページキャッシュを使うとストレージへの見かけ上の読み書き速度が上がる 7