Skip to content

Instantly share code, notes, and snippets.

View vineethrp's full-sized avatar

Vineeth Pillai vineethrp

View GitHub Profile
/*
* All credits: Steven Rostedt <rostedt@goodmis.org>
*
* Modified version of Steven's program to run multiple deadline spinning
* threads * with specified reservation(runtime, deadline=period) and a
* sleep value * in seconds which specifies a delay before spinning.
*/
#define _GNU_SOURCE
#include <stdio.h>
#!/bin/bash
id=$(id -u)
if [ "$id" != 0 ]; then
echo "Run as root"
exit
fi
function cleanup {
echo "Exiting script, killing child processes..."
@vineethrp
vineethrp / coresched.patch
Created February 25, 2020 20:48
Proposed fix for coresched migration issue with CFS shares
diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c
index f42ceecb749f..215c6d546947 100644
--- a/kernel/sched/fair.c
+++ b/kernel/sched/fair.c
@@ -1767,6 +1767,8 @@ static void task_numa_compare(struct task_numa_env *env,
rcu_read_unlock();
}
+static inline bool sched_core_cookie_match(struct rq *rq, struct task_struct *p);
+
#!/bin/bash
set -e
#set -x
CPUS="0-11,24-35"
echo "Creating cgroups.."
sudo cgcreate -g cpu,cpuset:set1
sudo cgcreate -g cpu,cpuset:set2