mirror of
https://github.com/kneutron/ansitest.git
synced 2025-01-30 05:02:54 +08:00
Add files via upload
This commit is contained in:
parent
ed4736d21b
commit
bf3d935a0a
14
proxmox/proxmox-vm-assign-cpu-cores.sh
Normal file
14
proxmox/proxmox-vm-assign-cpu-cores.sh
Normal 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
8
proxmox/psax
Normal 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
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user