Upgrade to Pro — share decks privately, control downloads, hide ads and more …

cgroup v2 and PSI

cgroup v2 and PSI

#ふくばねてす node-1

2cf373725ded741824c50fd571eda6e1?s=128

KONDO Uchio

April 08, 2019
Tweet

Transcript

  1. ࡶͰ΋͍͍ΜͩΑ 6DIJP,POEP(.01FQBCP *OD ;͘͹Ͷͯ͢OPEF ;͘͹Ͷͯ͢ͱ͸

  2. None
  3. Ϋϥ΢υωΠςΟϒ

  4. ΏΔʙ͘

  5. ;Θͬͱ

  6. ೔ʑͷੜ׆

  7. ͬͦ͜Γ Ψνൃද΋0,

  8. w ҰԠɺ,VCFSOFUFT͕࣠Ͱ͸͋Δ͕ w ,VCFSOFUFTʹؔΘΔ͜ͱͳΜͰ΋ʢ,VCFSOFUFTࣗମɺ ৮ͬͯΈͨɺӡ༻ͯ͠ΈͨɺҋͷΧελϚΠζΛͨ͠ɺ $3%΍0QFSBUPSࣗ࡞ࣗຫɺͳͲͳͲʣ w ΋ͪΖΜɺ,VCFSOFUFTʹ৐ΔΑ͏ͳ$/$'ϓϩμΫτͷ ࿩ɺ,VCFSOFUFTͱ࿈ܞͰ͖Δॾʑ΋׻ܴʂʂ ษڧձͷςʔϚ

  9. ؾܰʹ Ξ΢τϓοτͰ͖Δ

  10. ஌Γ͍ͨਓ͕ ͳΜͱͳ͘དྷͯ0,

  11. ຊ౰ͷෛՙݕ஌Λ͓ݟͤ͠·͢Α 6DIJP,POEP(.01FQBCP *OD ;͘͹Ͷͯ͢OPEF DHSPVQWGFBU14*

  12. དྷिɺ ΋͏Ұ౓དྷ͍ͯͩ͘͞ ʢΞΫϩε෱Ԭʹʣ

  13. None
  14. ͸͍

  15. DHSPVQ

  16. $POUSPMHSPVQT VTVBMMZSFGFSSFEUPBTDHSPVQT BSFB-JOVYLFSOFM GFBUVSFXIJDIBMMPXQSPDFTTFTUPCFPSHBOJ[FEJOUPIJFSBSDIJDBM HSPVQTXIPTFVTBHFPGWBSJPVTUZQFTPGSFTPVSDFTDBOUIFOCFMJNJUFE BOENPOJUPSFE man 7 cgroups

  17. $POUSPMHSPVQT  ུ DHSPVQ͸ϓϩηεΛ֊૚ Խ͞Εͨάϧʔϓʹ·ͱΊɺ༷ʑͳλΠϓͷϦ ιʔεͷར༻੍ݶ΍؂ࢹΛߦ͑ΔΑ͏ʹ͢ΔΧʔ ωϧͷػೳͰ͢ɻ ۙ౻ʹΑΔͬ͘͟Γͨ͠༁

  18. w ίϯςφͷϦιʔε੍ݶͷجຊٕज़ w %PDLFSͰDQVTNFNPSZͳͲΛࢦఆ͢Δͱ಺෦Ͱ࢖ ͏ɻ w 0$*3VOUJNFTQFDͰ΋߲໨͕͋Δ w ίϯςφͷϦιʔε؂ࢹͷجຊٕज़ w

    DHSPVQ͝ͱʹ๛෋ͳTUBU͕ݟΒΕΔ w D"EWJTPS͸DHSPVQͷ৘ใΛऔಘ͠1SPNFUIFVT޲͚ͳ ͲʹFYQPSUͯ͘͠ΕΔ DHSPVQͱίϯςφ
  19. w <DHSPVQ5FO'PSXBSE><ݕࡧ> w DHSPVQ͸-JOVY͔Βಋೖ͞ΕͨΒ͍͠ w ैདྷͷDHSPVQΛWͱͯ͠ɺDHSPVQͷ࠶ઃܭͱվྑͷ ಈ͖͕͋Γɺ-JOVY͔ΒDHSPVQWͱ໊෇͚ΒΕͨ DHSPVQྺ࢙

  20. w ࠷େͷҧ͍͸σΟϨΫτϦͷߏ଄ WWҧ͍ W WVOJpFE IUUQTHJIZPKQBENJOTFSJBMMJOVY@DPOUBJOFST

  21. w DHSPVQ໊લۭؒ಺Ͱɺ؅ཧऀ͕ΞΫηεݖΛࡉ͔͘ઃఆ ͢Δ୅ΘΓʹΧʔωϧͰ͏·͍͜ͱ੍ݶͯ͘͠ΕΔ w SPPUMFTTͰཉ͍͠΍ͭ OTEFMFHBUFΦϓγϣϯGPSW IUUQTHJIZPKQBENJOTFSJBMMJOVY@DPOUBJOFST

  22. w IUUQTHJUIVCDPNPQFODPOUBJOFSTSVODJTTVFT w ࡞ۀத SVODͰDHSPVQWʹରԠ͢Δ

  23. w IUUQTXXXMJOVYQMVNCFSTDPOGPSHFWFOUDPOUSJCVUJPOTBUUBDINFOUT -1$DHSPVQWQEG -JOVY1MVNCFST$POGFSFODF

  24. 14*

  25. w GBDFCPPLํ໘͔Β౤͛ΒΕͨΧʔωϧύον͕࢝·Γ w -JOVY͔ΒϝΠϯϥΠϯೖΓ w $0/'*(@14*Z͢ΔͳͲͯ͠༗ޮʹ 14*1SFTTVSF4UBMM*OGPSNBUJPO

  26. 14*TUBUTBSFMJLFCBSPNFUFSTUIBUQSPWJEFGBJSXBSOJOHPGJNQFOEJOH SFTPVSDFTIPSUBHFT FOBCMJOHZPVUPUBLFNPSFQSPBDUJWF HSBOVMBS BOE OVBODFETUFQTXIFOSFTPVSDFTTUBSUCFDPNJOHTDBSDF (FUUJOH4UBSUFEXJUI14* IUUQTGBDFCPPLNJDSPTJUFTHJUIVCJPQTJEPDTPWFSWJFX

  27. w ֤छϦιʔεɺ$16ϝϞϦ*0ͷϓϨογϟʔঢ়گΛऔ ಘͰ͖ΔϑΝΠϧɺQSPDQSFTTVSF΍DHSPVQ  JPQSFTTVSFͳͲ͕ར༻Ͱ͖ΔΑ͏ʹͳΔ w $16ϝϞϦ*0ͷϓϨογϟʔঢ়گ͕ɺίϯςφ୯ҐͰ Θ͔ΔΑ͏ʹͳΔɻ w ैདྷͷ-PBE"WFSBHFͳͲ͸ϗετ୯ҐͰ͔͠Θ͔Βͳ

    ͍͠ɺDQVTUBUͳͲͷࢦඪ͸୯ମͰͷར༻͕೉͍͠ Կ͕Θ͔Δͷʁ
  28. w ୯Ґ࣌ؒ౰ͨΓʹɺϦιʔεͷܽ೗͕ىҼͰλεΫʹ lEFMBZz͕ൃੜͨ͠૯࣌ؒͷύʔηϯςʔδΛܭࢉ w GVMMͷ৔߹DHSPVQͳͲʹॴଐ͢Δ͢΂ͯͷλεΫ͕ɺ TPNFͷ৔߹͋ΔλεΫ͕ɹ஗Ԇ͍ͯͨ͠ͱ͢Δ Ͳ͏͍͏஋ͳͷʁ IUUQTGBDFCPPLNJDSPTJUFTHJUIVCJPQTJEPDTPWFSWJFX

  29. ࣮ࡍ࢖͑Δʁ

  30. w 6CVOUVͷ৔߹ w ΧʔωϧΛϏϧυ͢Δʢলུʣ w ΧʔωϧύϥϝʔλΛ݁ߏ͍͡Δ w QTJͷ΄͔ɺTZTUFNE͕DHSPVQWΛ࢖Θͳ͍Α͏ʹ͢ Δඞཁ΋͋Δ •

    GRUB_CMDLINE_LINUX="net.ifnames=0 biosdevname=0 psi=1 systemd.unified_cgroup_hierarchy=1" Լ४උ
  31. ϕϯνΛ͢Δ

  32. ݁ՌͳͲ

  33. -"ͷάϥϑ

  34. w RVPUB͕খ͍͞΄Ͳ14*ͷ஋ͷ্ঢ཰͕େ͖͍ɻDHSPVQͷ $16੍ݶ͕ޮ͍ͨ݁Ռɺࠓճͷ৔߹ίΞ૬౰ΛׂΓৼΕ ͹NBYʢ੍ݶͳ͠ʣͱมΘΒͳ͍໛༷ w -"͚ͩʹ஫໨͍ͯ͠Δ৔߹ɺϗετࣗମ͕ίΞͳͷͰ ߴʑdఔ౓ͷ-"্ঢͰ͸੩؍͞Εͯ͠·͏͔΋ ߟ࡯

  35. ͍͔͕Ͱ͔ͨ͠ʁ

  36. w IUUQTVE[VSBIBUFOBCMPHKQTFBSDI R14* ৄࡉ͸ϒϩάͰϝιου

  37. w ίϯςφք۾΋DHSPVQWΛ΍ͬͯߦ͘ؾ഑͕͋Δ w ,FSOFM DHSPVQWʹͳΔͱDHSPVQ୯Ґͷ14*͕ ࢖͑Δ w ʢΈͳ͞ΜͷγεςϜͰ࢖͑Δ͔͸ɻɻɻ  w

    14*͸ίϯςφ୯Ґͷෛՙͷࢦඪͱͯ͠طଘͷ΋ͷΑΓศ རͳੑ࣭͕͋ΔͷͰɺ࣍ੈ୅ίϯςφΫϥΠυωΠςΟϒ αʔόϨεϓϥοτϑΥʔϜͰ࢖ΘΕͯߦ͘Մೳੑ͕͋ Δɻ͔΋ ·ͱΊ w ίϯςφք۾΋DHSPVQWΛ΍ͬͯߦ͘ؾ഑͕͋Δ w ,FSOFM DHSPVQWʹͳΔͱDHSPVQ୯Ґͷ14*͕ ࢖͑Δ w ʢΈͳ͞ΜͷγεςϜͰ࢖͑Δ͔͸ɻɻɻ  w 14*͸ίϯςφ୯Ґͷෛՙͷࢦඪͱͯ͠طଘͷ΋ͷΑΓศ རͳੑ࣭͕͋ΔͷͰɺ࣍ੈ୅ίϯςφΫϥΠυωΠςΟϒ αʔόϨεϓϥοτϑΥʔϜͰ࢖ΘΕͯߦ͘Մೳੑ͕͋ Δɻ͔΋ w ίϯςφք۾΋DHSPVQWΛ΍ͬͯߦ͘ؾ഑͕͋Δ w ,FSOFM DHSPVQWʹͳΔͱDHSPVQ୯Ґͷ14*͕ ࢖͑Δ w ʢΈͳ͞ΜͷγεςϜͰ࢖͑Δ͔͸ɻɻɻ  w 14*͸ίϯςφ୯Ґͷෛՙͷࢦඪͱͯ͠طଘͷ΋ͷΑΓศ རͳੑ࣭͕͋ΔͷͰɺ࣍ੈ୅ίϯςφΫϥΠυωΠςΟϒ αʔόϨεϓϥοτϑΥʔϜͰ࢖ΘΕͯߦ͘Մೳੑ͕͋ Δɻ͔΋