Skip to content

Instantly share code, notes, and snippets.

@mcoffin
Created February 13, 2019 20:27
Show Gist options
  • Select an option

  • Save mcoffin/d9ffab5ac92abb330330ec1ecf899633 to your computer and use it in GitHub Desktop.

Select an option

Save mcoffin/d9ffab5ac92abb330330ec1ecf899633 to your computer and use it in GitHub Desktop.
LoL wine cgroups scripts
#!/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
#!/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