Add files via upload

This commit is contained in:
kneutron 2024-02-18 16:18:50 -07:00 committed by GitHub
parent ed4736d21b
commit bf3d935a0a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,14 @@
#!/bin/bash
psax
declare -i pid # has to be a number
read -p "Enter PID of highest-RAM kvm: " pid
[ "$pid" = "" ] || [ "$pid" = "0" ] && exit 44;
taskset -p $pid
taskset -cp 6,7 $pid
# assign cpu cores 6,7 to win10 vm for better latency
# REF: https://www.youtube.com/watch?v=-c_451HV6fE

8
proxmox/psax Normal file
View File

@ -0,0 +1,8 @@
#!/bin/sh
# Displays which PROCESSOR a pid is currently running on :)
/usr/bin/uptime
COLUMNS=80 ps axw -o pid,user,ni,%cpu,psr,%mem,args --sort -%cpu|head -n 22
/usr/bin/free