Skip to content

Instantly share code, notes, and snippets.

View mcaleavya's full-sized avatar

Allan McAleavy mcaleavya

View GitHub Profile
@mcaleavya
mcaleavya / qos.py
Created July 4, 2018 23:58
cgroup QOS using eBPF
#!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports
#
# qos implement a dynamic qos for using cgroups
# For Linux, uses BCC, eBPF.
#
# USAGE: qos.py [-h] [-qc] [--max] [interval]
# requires a file name qos_setup which can changed with qosfile
# file has format maj:min IOPS
# i.e. 8:0 40000