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/env bash | |
dir=$(mktemp -d /tmp/sysbench.XXXX) | |
cd $dir | |
sysbench --batch=4 --test=cpu --cpu-max-prime=20000 run | |
sysbench --batch=4 --num-threads=64 --test=threads --thread-yields=100 --thread-locks=2 run | |
sysbench --batch=4 --num-threads=16 --test=mutex run |
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/sh | |
# $$ represents the current PID | |
# Set to lowest I/O priority | |
ionice -c idle -p $$ | |
# Set to lowest CPU priority | |
renice -n -20 -p $$ >/dev/null |
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 | |
# | |
# Script to remove temporary and junk files from Windows and OS X | |
# | |
### Not set up to run as root. Advised not to do this. ### | |
#### Variables #### | |
# Files to remove (Add others, just remember to increment the |