Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
slowio/slowio-mem-control: decrease MaxMemory
exception for workstations
  • Loading branch information
david committed Mar 17, 2023
1 parent f08e26b commit eafd2c2
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions slowio/slowio-mem-control
@@ -1,11 +1,9 @@
#! /usr/bin/bash
#! /usr/bin/bash -x

case "$(hostname -s)" in
ex|pummelfee|snugglebites|bloodwing|tldr|ellie|icebear|grele|handsomejack|furoncles)
mkdir -p "$1/slowio.slice.d"
cat > "$1/slowio.slice.d/dynamic_memory.conf" <<- '_EOF_'
[Slice]
MemoryMax=4G
_EOF_
;;
esac
if `hostconfig desktop` ; then
mkdir -p "$1/slowio.slice.d"
cat > "$1/slowio.slice.d/dynamic_memory.conf" <<- '_EOF_'
[Slice]
MemoryMax=2G
_EOF_
fi

0 comments on commit eafd2c2

Please sign in to comment.