pv
rdfind
smem
- stress
+ #stress
+ stress-ng
swaplist
tcpdump
tmux
# Utilities
mkcd() { mkdir -p "$1" && cd "$1"; }
- sysenter() { nsenter -a -t "$(systemctl show --property MainPID --value "$1")"; }
- systrace() { strace -f -p "$(systemctl show --property MainPID --value "$1")"; }
+ stress-mem() { fac="$1"; stress-ng --vm 1 --vm-keep --vm-bytes $(awk '/MemAvailable/{ printf "%d\n", $2 * $fac; }' </proc/meminfo)k; }
+ sysenter() { srv="$1"; shift; nsenter -a -t "$(systemctl show --property MainPID --value "$srv")" "$@"; }
+ systrace() { srv="$1"; shift; strace -f -p "$(systemctl show --property MainPID --value "$srv")" "$@"; }
+ zfs-mount () { for d in $(zfs list -rH -o name "$@"); do sudo zfs mount -l "$d"; done; }
+ zfs-unmount () { sudo zfs unmount -u "$@"; }
'';
shellAliases = {
cl = "clear";
ll = "ls -al";
ls = "ls --color=tty";
mem = "ps -e -orss=,user=,args= | sort -b -k1,1n";
+ mem-top = "smem --sort rss --reverse --autosize";
s="sudo systemctl";
st="sudo systemctl status";