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
Platform Engineering for Software Developers and Architects
syntasso
1
510
【若手エンジニア応援LT会】ソフトウェアを学んできた私がインフラエンジニアを目指した理由
kazushi_ohata
0
150
オープンソースAIとは何か? --「オープンソースAIの定義 v1.0」詳細解説
shujisado
7
730
Lexical Analysis
shigashiyama
1
150
いざ、BSC討伐の旅
nikinusu
2
780
Can We Measure Developer Productivity?
ewolff
1
150
スクラムチームを立ち上げる〜チーム開発で得られたもの・得られなかったもの〜
ohnoeight
2
350
【令和最新版】AWS Direct Connectと愉快なGWたちのおさらい
minorun365
PRO
5
750
Amazon CloudWatch Network Monitor のススメ
yuki_ink
1
200
Terraform Stacks入門 #HashiTalks
msato
0
350
iOSチームとAndroidチームでブランチ運用が違ったので整理してます
sansantech
PRO
0
130
SREによる隣接領域への越境とその先の信頼性
shonansurvivors
2
520
Featured
See All Featured
4 Signs Your Business is Dying
shpigford
180
21k
Fantastic passwords and where to find them - at NoRuKo
philnash
50
2.9k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.3k
The Language of Interfaces
destraynor
154
24k
Stop Working from a Prison Cell
hatefulcrawdad
267
20k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
47
2.1k
Side Projects
sachag
452
42k
A designer walks into a library…
pauljervisheath
203
24k
The Pragmatic Product Professional
lauravandoore
31
6.3k
Gamification - CAS2011
davidbonilla
80
5k
Mobile First: as difficult as doing things right
swwweet
222
8.9k
KATA
mclloyd
29
14k
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Λ͚ͨࡍʹޮՌ͋ͬͨ ͨͩɼઃఆʹ͔͔Δίετ͕ߴ͍ͷͰϐϯϙΠϯτͰઃఆ͢Δͱ͔ʹͳΓͦ͏