Created
February 13, 2019 20:27
-
-
Save mcoffin/d9ffab5ac92abb330330ec1ecf899633 to your computer and use it in GitHub Desktop.
LoL wine cgroups scripts
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
| #!/bin/bash | |
| cd /sys/fs/cgroup/cpuset | |
| for pname in wineserver LeagueClientUx.exe LeagueClientUxRender.exe; do | |
| pid=$(pidof "$pname") | |
| echo "pidof $pname = $pid" | |
| echo $pid >> cgroup.procs | |
| done |
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
| #!/bin/bash | |
| cd /sys/fs/cgroup/cpuset | |
| if [ "$1" != "" ]; then | |
| sleeptime="$1" | |
| else | |
| sleeptime=15 | |
| fi | |
| sleep $sleeptime | |
| pidof 'League of Legends.exe' >> league_game/cgroup.procs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment