docker-cfs-quota

command module
v0.0.0-...-ca248d6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2020 License: GPL-3.0 Imports: 5 Imported by: 0

README

docker-cfs-quota

docker container to test cfs quota fixes in the linux kernel. infos:

go code borrowed from (see readme there for more info):

run on your docker host with 200 millicpu via:

docker run -it --rm --env CFS_SLEEP=200ms --env CFS_ITERATIONS=50 --cpus 0.2 monotek/docker-cfs-quota

or in kubernetes:

kubectl run --generator=run-pod/v1 -it --rm cfs-quota-test --image=monotek/docker-cfs-quota --env=CFS_SLEEP=200ms --env=CFS_ITERATIONS=50 --limits=cpu=0.2 --requests=cpu=0.2

Default values of the go app can be changed via env vars:

  • CFS_SLEEP
    • defaults to 100ms
  • CFS_ITERATIONS
    • defaults to 25

Results:

  • If burn times are going above 5ms your kernel is throttling!

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL