This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
id=$(id -u) | |
if [ "$id" != 0 ]; then | |
echo "Run as root" | |
exit | |
fi | |
function cleanup { | |
echo "Exiting script, killing child processes..." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | |
+ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |