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
ハイテク休憩
sat
PRO
2
140
Storage Browser for Amazon S3
miu_crescent
1
130
Amazon Kendra GenAI Index 登場でどう変わる? 評価から学ぶ最適なRAG構成
naoki_0531
0
100
10個のフィルタをAXI4-Streamでつなげてみた
marsee101
0
160
新機能VPCリソースエンドポイント機能検証から得られた考察
duelist2020jp
0
210
OpenAIの蒸留機能(Model Distillation)を使用して運用中のLLMのコストを削減する取り組み
pharma_x_tech
4
540
KubeCon NA 2024 Recap: How to Move from Ingress to Gateway API with Minimal Hassle
ysakotch
0
200
GitHub Copilot のテクニック集/GitHub Copilot Techniques
rayuron
24
11k
開発生産性向上! 育成を「改善」と捉えるエンジニア育成戦略
shoota
1
230
バクラクのドキュメント解析技術と実データにおける課題 / layerx-ccc-winter-2024
shimacos
2
1k
AIのコンプラは何故しんどい?
shujisado
1
190
alecthomas/kong はいいぞ / kamakura.go#7
fujiwara3
1
300
Featured
See All Featured
The Illustrated Children's Guide to Kubernetes
chrisshort
48
48k
jQuery: Nuts, Bolts and Bling
dougneiner
61
7.5k
Fashionably flexible responsive web design (full day workshop)
malarkey
405
66k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
28
900
StorybookのUI Testing Handbookを読んだ
zakiyama
27
5.3k
Designing for humans not robots
tammielis
250
25k
Code Reviewing Like a Champion
maltzj
520
39k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
232
17k
BBQ
matthewcrist
85
9.4k
How STYLIGHT went responsive
nonsquared
95
5.2k
How to Think Like a Performance Engineer
csswizardry
22
1.2k
Docker and Python
trallard
42
3.1k
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Λ͚ͨࡍʹޮՌ͋ͬͨ ͨͩɼઃఆʹ͔͔Δίετ͕ߴ͍ͷͰϐϯϙΠϯτͰઃఆ͢Δͱ͔ʹͳΓͦ͏