Skip to content

Instantly share code, notes, and snippets.

This is a kernel 4.14.133 backport of:

[PATCH v6 1/1] sched/fair: Fix low cpu usage with high throttling by removing expiration of cpu-local slices

From Dave Chiluk's patch here: https://lkml.org/lkml/2019/7/23/673


Results of Dave's fibtest reproducer (https://github.com/indeedeng/fibtest)

On a c5.9xlarge ec2 instance:

  • CPU: 36 core Intel(R) Xeon(R) Platinum 8124M CPU @ 3.00GHz
@PaulFurtado
PaulFurtado / generate_name.py
Created November 19, 2019 03:04
A python implementation of generating pod names from the metadata.generateName field for use in mutating webhook admission controllers
import random
def generate_name(prefix):
"""
Generates a name for a resource in the same way the Kubernetes API servers
would (appending a suffix of up to 5 random alphanumeric characters).
"""
# no vowels, so "bad words" can't be formed
alphanums = 'bcdfghjklmnpqrstvwxz2456789'
diff --git a/staging/src/k8s.io/apimachinery/pkg/util/net/http.go b/staging/src/k8s.io/apimachinery/pkg/util/net/http.go
index c24fbc6921c..e499f2a18e0 100644
--- a/staging/src/k8s.io/apimachinery/pkg/util/net/http.go
+++ b/staging/src/k8s.io/apimachinery/pkg/util/net/http.go
@@ -30,6 +30,7 @@ import (
"path"
"strconv"
"strings"
+ "time"