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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import operator | |
import itertools | |
import re | |
def debug(x): | |
print 'debug', dir(x), x.group() |
[bits 16] | |
org 07c00h | |
mov ax, cs | |
mov ds, ax | |
mov es, ax | |
call check_a20 | |
test ax, ax |
#!/bin/sh | |
KERNEL=$1 | |
PATCHVER=$2 | |
[ -z "$1" -o -z "$2" ] && { | |
echo "usage: refresh_kernel.sh <version> <release>" | |
echo "example: refresh_kernel.sh 3.18 3.18.30" | |
exit 1 | |
} |
#!/bin/bash | |
# source: https://cbs.centos.org/koji/rpminfo?rpmID=45050 | |
set -xeuo pipefail | |
sudo yum install -y "tex(cmap.sty)" "tex(ecrm1000.tfm)" "tex(fancybox.sty)" "tex(footnote.sty)" "tex(framed.sty)" "tex(multirow.sty)" "tex(parskip.sty)" "tex(threeparttable.sty)" "tex(titlesec.sty)" "tex(upquote.sty)" "tex(wrapfig.sty)" "texlive-collection-fontsrecommended" "texlive-collection-latex" "tex(fncychap.sty)" python-sphinx > /dev/null | |
# Determine latex search directory | |
SEARCH_DIRECTORY="$(kpsewhich -var-value=TEXMFHOME)/tex/latex/local" | |
mkdir -p "$SEARCH_DIRECTORY" | |
# capt-of.sty has no Centos 7 package |
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