- simple program (adapted from the Internet) which calculates fibonacci sequence from multiple threads
fib-fast-1
thread only runs fib iterationsfib-slow-{2,1000}
threads run fun small number of fib iterations and then sleep for 10ms- on exit, program reports total number of iterations/work done in all threads (throughput)
- program is executed in a container with 1 cpu limit on a 32-core machine (unpinned vs pinned)
This file has been truncated, but you can view the full file.
This file contains hidden or 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
<idle>-0 [009] d.... 1125.239242: sched_switch: prev_comm=swapper/9 prev_pid=0 prev_prio=120 prev_state=R ==> next_comm=fib-slow-12 next_pid=11259 next_prio=120 | |
fib-slow-12-11259 [009] d.... 1125.239261: sched_stat_runtime: comm=fib-slow-12 pid=11259 runtime=101830 [ns] vruntime=4050709274 [ns] | |
fib-slow-12-11259 [009] d.... 1125.239274: sched_switch: prev_comm=fib-slow-12 prev_pid=11259 prev_prio=120 prev_state=S ==> next_comm=swapper/9 next_pid=0 next_prio=120 | |
fib-slow-12-11259 [009] d.... 1125.239274: sched_bandwidth: prev_comm=fib-slow-12 prev_pid=11259 prev_prio=120 prev_state=S global_runtime=94737 [us] local_runtime=0 [us] | |
<idle>-0 [009] d.... 1125.240421: sched_switch: prev_comm=swapper/9 prev_pid=0 prev_prio=120 prev_state=R ==> next_comm=fib-slow-42 next_pid=11289 next_prio=120 | |
<...>-11289 [009] d.... 1125.240441: sched_stat_runtime: comm=fib-slow-42 pid=11289 runtime=44220 [ns] vruntime=4062753487 [ns] |
This file contains hidden or 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
# cleans up and colorizes WeeChat IRC log | |
# usage ./irc-log-viewer.sh path-to-irc-weechatlog | |
awk '!/has joined #|has quit|has left #| is now known as /\ | |
{ date=$1 " " $2; nick=$3; $1=$2=$3=""; $0=$0; gsub(/^ /,"\t"); \ | |
print "\x1b[31m" date "\x1b[0m \x1b[33m" nick "\x1b[0m" $0}' $1 \ | |
| less -R -x20 |
This file contains hidden or 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
(* | |
AddCountryCode.scpt | |
===================== | |
Customization of Andreas Amann's script posted on https://discussions.apple.com/message/9169756#9169756 | |
Description | |
------------ |