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
仮想化基盤Xenの性能評価 / Performance evaluation of virt...
Search
Taketo Sasaki
February 27, 2016
Technology
1
1.8k
仮想化基盤Xenの性能評価 / Performance evaluation of virtualization platform Xen
第3回関西IT系インフラ勉強会発表資料
Taketo Sasaki
February 27, 2016
Tweet
Share
More Decks by Taketo Sasaki
See All by Taketo Sasaki
はてなのサーバ/インフラを支える技術〜2016年新卒編〜 / OSC Tokyo 2016 Fall
taketo957
3
45k
仮想化基盤のリソース最適化 / Resource optimization on virtualization platform
taketo957
9
21k
Other Decks in Technology
See All in Technology
Snowflake女子会#3 Snowpipeの良さを5分で語るよ
lana2548
0
230
OpenAIの蒸留機能(Model Distillation)を使用して運用中のLLMのコストを削減する取り組み
pharma_x_tech
4
560
なぜCodeceptJSを選んだか
goataka
0
160
C++26 エラー性動作
faithandbrave
2
740
[Ruby] Develop a Morse Code Learning Gem & Beep from Strings
oguressive
1
170
2024年にチャレンジしたことを振り返るぞ
mitchan
0
140
1等無人航空機操縦士一発試験 合格までの道のり ドローンミートアップ@大阪 2024/12/18
excdinc
0
160
権威ドキュメントで振り返る2024 #年忘れセキュリティ2024
hirotomotaguchi
2
750
Microsoft Azure全冠になってみた ~アレを使い倒した者が試験を制す!?~/Obtained all Microsoft Azure certifications Those who use "that" to the full will win the exam! ?
yuj1osm
2
110
第3回Snowflake女子会_LT登壇資料(合成データ)_Taro_CCCMK
tarotaro0129
0
190
スタートアップで取り組んでいるAzureとMicrosoft 365のセキュリティ対策/How to Improve Azure and Microsoft 365 Security at Startup
yuj1osm
0
220
コンテナセキュリティのためのLandlock入門
nullpo_head
2
320
Featured
See All Featured
A Philosophy of Restraint
colly
203
16k
Bash Introduction
62gerente
608
210k
Testing 201, or: Great Expectations
jmmastey
40
7.1k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
5
450
Intergalactic Javascript Robots from Outer Space
tanoku
270
27k
The Illustrated Children's Guide to Kubernetes
chrisshort
48
48k
Build your cross-platform service in a week with App Engine
jlugia
229
18k
The World Runs on Bad Software
bkeepers
PRO
65
11k
Done Done
chrislema
181
16k
How To Stay Up To Date on Web Technology
chriscoyier
789
250k
Speed Design
sergeychernyshev
25
670
Mobile First: as difficult as doing things right
swwweet
222
9k
Transcript
ԾԽج൫XenͷੑೳධՁ id:taketo957 ୈ3ճؔITܥΠϯϑϥษڧձ
ࣗݾհ • id:taketo957 • ژେֶେֶӃम࢜ • ͯͳΞϧόΠτ • ฏੜ·Ε
ࠓͷ͓ • Xenͱʁ • Xenͷར༻ͱݱঢ়@ͯͳ • XenͷCPUͷઃఆपΓͷ
Xenͱʁ
Xenͱ • ԾϚγϯϞχλ • ෳͷOSΛฒྻʹಈ࡞ͤ͞Δ͜ͱ͕Ͱ͖Δ • Dom0ͱDomU • Dom0͕XenͷཧϋʔυΣΞΞΫηεΛ୲͏ •
DomUϋʔυΣΞʹΞΫηε͠ͳ͍
XenͷΠϝʔδ • ϋΠύʔόΠβ͕ϋʔυΣΞ্Ͱ࣮ߦ • Xenىಈ࣌ʹDom0͕ىಈ • γεςϜىಈޙɼDomUͳͲ͕ىಈ ϋʔυΣΞ 9FOϋΠύʔόΠβ %PN
%PN6 %PN6 ήετ্ͷϓϩηε ήετ্ͷϓϩηε ήετ্ͷϓϩηε
ԾԽαʔόͷߏங@ͯͳ • ϋʔυΣΞϦιʔεͷར༻ͷ্ • Ϧιʔεར༻ͷޮԽ • ྫ͑ɼ • CPU͕ۭ͍͍ͯΔˠWebαʔό •
IO͕ۭ͍͍ͯΔˠDBαʔό • ಉډΛආ͚ΔΈ߹Θͤ • ෛՙͷߴ͍ͷಉ࢜ආ͚Δ • ಉ͡༻్ͷͷආ͚Δ • ॏཁͳϗετ͚͞Δ %PN ϋʔυΣΞ %PN6 8FCαʔό %PN6 %#αʔό %PN6 Ωϟογϡαʔό
ԾԽαʔόͷݱঢ়@ͯͳ લఏ ϋʔυΣΞੑೳͷ্ʹΑͬͯ%PN͋ͨΓͷ%PN6͕૿Ճ ੲࣗ࡞αʔό͕த৺ͩͬͨ োͷ࣮ྫ ಛʹ&MBTUJDTFBSDIͱಉډͯ͠ΔαʔόͰো͕ൃੜ ϋʔυΣΞϦιʔε͕༨͍ͬͯΔͷʹෛՙ͕͕͋Δ >> େ͖ͳো͕5݅ɼখ͍͞ͷ߹Θͤͯ20݅Ҏ্ ॏཁͳϗετΛकΔͨΊʹ%PN6Λଞͷ%PNʹҠͨ͠Γɽɽɽ
ͷൃੜݪҼʁ %PNͷϩά <TDIFE@EFMBZFE>TDIFE35UISPUUMJOHBDUJWBUFE େͳ࣌ؒΛඅ͢35λεΫ͕ଘࡏ͍ͯ͠Δ ݪҼͷՄೳੑ %PNͷΧʔωϧ 9FOࣗମ >>
εέδϡʔϥʹ͕͋Γͦ͏
Ͳ͏͍͏߹ʹੑೳ͕ Լ͢Δ͔ௐͯΈͨ
࣮ݧڥ • ݕূػ • ϝϞϦɿ100GB • CPUɿ16ݸɼ2.60GHz • Xen 4.4.1ʢcreditεέδϡʔϥʣ
• Debian 8 • DomU • elsΛ฿ ϝϞϦɿ40GBɼσΟεΫɿ132GB • MySQLΛ฿ ϝϞϦɿ8GBɼσΟεΫɿ10GB %PN ϋʔυΣΞ %PN6 &MBTUJDTFBSDIΛ฿ %PN6 .Z42-Λ฿ . . . .
ϕϯνϚʔΫ֓ཁ ࢦඪ ฏۉಡΈࠐΈʢύϑΥʔϚϯεʣ ॠؒಡΈࠐΈͷ࠷খʢ҆ఆੑʣ ϕϯνϚʔΫπʔϧ .Z42-Λ฿ͨ͠%PN6 (#ͷϝϞϦΛಡΉ
&MBTUJDTFBSDIΛ฿ͨ͠%PN6 (#ͷσΟεΫྖҬΛಡΉ
ઃఆ֓ཁਤ ϋʔυΣΞ 9FOϋΠύʔόΠβ %PN %PN6 .Z42-Λ฿ %PN6 &MTΛ฿ Q$16 Q$16
Q$16 Q$16 Q$16 Q$16 Q$16 Q$16 Q$16 Q$16 Q$16 Q$16 Q$16 Q$16 Q$16 Q$16
ϝϞϦϦʔυɿεϨουͱͷؔ ಉډϗετ͕͍͠ͱεϨουͷ্ঢʹͭΕͯ҆ఆੑ͕ஶ͘͠Լ͢Δ ۩ମతʹಉډϗετ͕εϨουҎ্ͰɼεϨουҎ্ͷͱ͖ ύϑΥʔϚϯε ύϑΥʔϚϯεʢಉډϗετ͕ߴෛՙʣ ҆ఆੑ ҆ఆੑʢಉډϗετ͕ߴෛՙʣ
σΟεΫϦʔυɿεϨουͱͷؔ ಉډϗετ͕͍͠ͱεϨουͷ্ঢʹͭΕͯ҆ఆੑ͕ஶ͘͠Լ͢Δ ϝϞϦͷ߹ΑΓݦஶ ύϑΥʔϚϯε ύϑΥʔϚϯεʢಉډϗετ͕ߴෛՙʣ ҆ఆੑ ҆ఆੑʢಉډϗετ͕ߴෛՙʣ
ElasticsearchΈ͍ͨͳϗετ͕ಉډͯ͠Δͱ ੑೳ͕҆ఆ͠ͳ͘ͳΔͷຊʹ͋Γͦ͏
Ͳ͏͢Εʁ
XenͷCPUؔ࿈ͷઃఆ߲ • Xenͷઃఆ߲ͰͳΜͱ͔͍ͨ͠ • εέδϡʔϥͷछྨʢcredit͔credit2͔ʣ • CPU Poolͷઃఆ • vCPUͷɼweightɼcap
• vCPUͷpinning
ϝϞϦϦʔυɿcredit2ͱൺֱ DSFEJUͷํ͕҆ఆͨ͠ੑೳΛࣔ͢ ճͷ࣮ݧΛ௨ׂͯ͡ఔύϑΥʔϚϯεԼ͍ͯͨ͠ σΟεΫϦʔυܭଌͷࡍʹຖճ%PN͝ͱࢮΜͰσʔλऔΕͳ͔ͬͨ ύϑΥʔϚϯεʢcreditʣ ҆ఆੑʢcreditʣ ύϑΥʔϚϯεʢcredit2ʣ ҆ఆੑʢcredit2ʣ
ઃఆ֓ཁਤ ϋʔυΣΞ 9FOϋΠύʔόΠβ %PN %PN6 .Z42-Λ฿ %PN6 &MTΛ฿ Q$16 Q$16
Q$16 Q$16 Q$16 Q$16 Q$16 Q$16 Q$16 Q$16 Q$16 Q$16 Q$16 Q$16 Q$16 Q$16
ϝϞϦϦʔυɿߴෛՙϗετΛผcpu_poolʹ ߴෛՙ%PN6Λผ1PPMʹҠ͢͜ͱͰύϑΥʔϚϯεɼ҆ఆੑͱʹվળͨ͠ ׂ͚ͨͩ͠಄ଧͪૣ͘ͳΔͷͱઃఆʹ͔͔Δίετ͕ߴ͍ ύϑΥʔϚϯε ҆ఆੑ ύϑΥʔϚϯεʢߴෛՙϗετผډʣ ҆ఆੑʢߴෛՙϗετผډʣ
ϝϞϦϦʔυɿDom0ʹweightΛઃఆ ߴෛՙϗετಉډͷ߹ ͦΜͳʹมԽͤͣʢ҆ఆੑଟ֎Εʣ ύϑΥʔϚϯε ҆ఆੑ weight
σΟεΫϦʔυɿDom0ʹweightΛઃఆ ߴෛՙϗετಉډͷ߹ %PNͷXFJHIUΛ૿͢ͱൺྫͯ͠ύϑΥʔϚϯε্͕ʢ҆ఆੑมΘΒͣʣ ύϑΥʔϚϯε ҆ఆੑ weight
͜Ε·Ͱͷ·ͱΊ
·ͱΊ • ElasticsearchͷΑ͏ͳϗετ͕ಉډͯ͠Δ߹ʹੑೳԼൃੜͯͦ͠͏ • ಛʹɼI/O͕େ͖͍ϗετͷӨڹେ͖͍ʢDom0͝ͱࢮΜͩΓ͢Δʣ • ϝϞϦͷ߹ੑೳྼԽ͋Δ͚ͲࢮΜͩΓ͠ͳ͍ • ElasticsearchͷΑ͏ͳI/O͕େ͖͍ϗετಉډͤ͞ͳ͍ͷ͕҆શͦ͏ •
جຊΦʔόʔίϛοτ͍͕ͤͨ͞ɼ͕ඞཁ • େن͚Ͱͳ͍I/O͕ଟ͍αʔόͳͲࡌͤΔ߹ʹDom0ʹweightΛઃఆ • େن͚ʹcreditΛɼόονͳͲͷখنDomUΛେྔʹ٧ΊࠐΉࡍʹ credit2Λબ͢Δͱྑ͍͔ • CPU PoolΛ͚ͨࡍʹޮՌ͋ͬͨ ͨͩɼઃఆʹ͔͔Δίετ͕ߴ͍ͷͰϐϯϙΠϯτͰઃఆ͢Δͱ͔ʹͳΓͦ͏