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
C PROGRAM TO COMPUTE NODAL FACTORS AND EQUILIBRIUM ARGUEMENTS | |
C | |
C | |
PARAMETER(NCNST=37) | |
CHARACTER CNAME(NCNST)*8 | |
COMMON /CNSNAM/ CNAME | |
REAL NODFAC,MONTH | |
DIMENSION NCON(NCNST) | |
COMMON /CNST/ NODFAC(NCNST),GRTERM(NCNST),SPEED(NCNST),P(NCNST) |
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 | |
# | |
# update-conf-file <file to update> [<file to insert> | <directory>] | |
# | |
# This script manages the insertion or update of a singleton region of | |
# a file. You can use it to insert lines into configuration files, and | |
# cleanly update them later. | |
# | |
# If a file to insert is specified, that file will be cat'd into the | |
# file to update. If a directory is specified, all files that don't |
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
#!/usr/bin/perl | |
## assumptions... | |
### 1. time samples within some correlation coefficient are candidates | |
### for a matching. this correlation coefficient should be longer than | |
### the longest sample period. | |
### 2. the nearest sample (rounded up or down) shall be the matching | |
### sample. should some samples be collected at a faster rate than |
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 | |
## Run commands on a set of hosts | |
WAIT="%%" | |
while getopts 'w' OPTION; do | |
case $OPTION in | |
w) WAIT="" ;; | |
?) usage; exit ;; |
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
#!/usr/bin/perl | |
%hosts = ( | |
"example" => "host-0..9", | |
); | |
sub usage { | |
print" | |
dsh -- run commands with ssh on several hosts simultaneous |
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
# Systemtap script to trace latency of concurrent memcached requests | |
# as they percolate through the Linux kernel. | |
# - Jacob Leverich <[email protected]> 2013 | |
# | |
# Note: You MUST call this script with "-x <TID>" where TID is the | |
# *task id* of a memcached worker thread. This is usually PID+1 of | |
# memcached. So do something like: | |
# | |
# % memcached -t 1 -d | |
# % pgrep memcached |
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/include/linux/sched.h b/include/linux/sched.h | |
index 4a1f493..ef258ef 100644 | |
--- a/include/linux/sched.h | |
+++ b/include/linux/sched.h | |
@@ -1179,6 +1179,10 @@ struct sched_entity { | |
u64 exec_start; | |
u64 sum_exec_runtime; | |
u64 vruntime; | |
+#ifdef CONFIG_CFS_BVT | |
+ u64 effective_vruntime; |