We're looking at CPU bandwidth control via CFS:
Program does number of iterations, in each iteration we burn CPU in small chunks until we get 5ms of real time spent. On each iteration we also print how much
| package main | |
| import ( | |
| "fmt" | |
| "os" | |
| "os/signal" | |
| "syscall" | |
| ) | |
| func main() { |
We're looking at CPU bandwidth control via CFS:
Program does number of iterations, in each iteration we burn CPU in small chunks until we get 5ms of real time spent. On each iteration we also print how much
| #!/bin/bash | |
| apt-get update | |
| apt-get install -y git wget | |
| # Install Docker | |
| wget -qO- get.docker.com | sh & | |
| wait | |
| service docker start | |
| # Start Codespaces |