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/env bash | |
zero_commit="0000000000000000000000000000000000000000" | |
permit_user="gitlab-ci" | |
commit_msg_format="ci/`date +%Y%m%d`/*" | |
excludeExisting="--not --all" |
#!/usr/bin/env python | |
# encoding:utf8 | |
""" | |
https://open-doc.dingtalk.com/docs/doc.htm?spm=a219a.7629140.0.0.karFPe&treeId=257&articleId=105735&docType=1 | |
""" | |
from __future__ import unicode_literals | |
import copy | |
import json | |
import requests |
FROM maven:3.5.2-jdk-9 AS build | |
COPY pom.xml /usr/src/app | |
COPY src /usr/src/app/src | |
RUN mvn -f /usr/src/app/pom.xml clean package | |
FROM maven:3.5.2-jdk-9 AS build | |
COPY pom.xml /usr/src/app/ | |
RUN mvn -f /usr/src/app/pom.xml dependency:copy-dependencies | |
COPY src /usr/src/app/src | |
RUN mvn -f /usr/src/app/pom.xml clean 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
package main | |
import ( | |
"fmt" | |
"reflect" | |
"unsafe" | |
) | |
type private struct { | |
val string |