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
SRE讀書會#3 深入剖析Kubernates_CH6 白話容器基礎(二)-隔離與限制
Search
曾義格
March 21, 2019
94
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
SRE讀書會#3 深入剖析Kubernates_CH6 白話容器基礎(二)-隔離與限制
曾義格
March 21, 2019
More Decks by 曾義格
See All by 曾義格
SRE part2 Continuous Delivery CH4 Implementing a testing strategy
tsengeagle
0
170
Featured
See All Featured
BBQ
matthewcrist
90
10k
Java REST API Framework Comparison - PWX 2021
mraible
34
9.8k
Music & Morning Musume
bryan
48
7.4k
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
300
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
600
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
1k
Lessons Learnt from Crawling 1000+ Websites
charlesmeaden
PRO
1
1.6k
WENDY [Excerpt]
tessaabrams
14
40k
B2B Lead Gen: Tactics, Traps & Triumph
marketingsoph
1
280
jQuery: Nuts, Bolts and Bling
dougneiner
66
8.6k
Automating Front-end Workflow
addyosmani
1369
210k
Transcript
隔離與限制 Cgroup
Linux Control Group • ⽤用途:限制處理理序可使⽤用的資源 • 提供的功能: • 限制 •
優先權控制 • 統計稽核 • 控制-恢復或是暫停處理理程序 • 以file system的⽅方式呈現`/sys/fs/cgroup/` • blkio • cpu • memory • net_cls • 等等...
限制cpu使⽤用 • 當前使⽤用者的限制在 `/sys/fs/cgroup/<資源>/user.slice/` • docker啟動之後,會在 `/sys/fs/cgroup/<資源>/docker` 下 建立容器的限制組, •
demo
docker • —cpu-quota • —cpu-period • —memory
問題 • lxcfs • free • top-記憶體、cpu數、cpu使⽤用率